# Frequently Bought Together Function (Bundle Products)

<figure><img src="/files/vs01qTWUrkfpMFkuTUlx" alt=""><figcaption></figcaption></figure>

There are 2 options for you to choose which products are used in the Frequently Bought Together:

* Using Related Product.
* Using Product ID.

**01. Using Related Product**

To show **Frequently Bought Together** on Product Detail, In the Admin panel -> Go to **Products** -> **View** -> click button **Choose a product you want to apply Frequently Bought Together** -> **Custom Fields**.

To pull products from your Related Products, create the following custom field:

&#x20;   \+ Custom Field Name:  **\_\_bundle**

&#x20;   \+ Custom Field Value:  **related products**

{% hint style="info" %}
\* Note:

* The first product will always be the Product of the page you are on. The next products will be pulled from this product's first Related Products.
* You can either let BigCommerce select a Product's Related Products randomly or you can manually choose which products to display.
* Refer this link: <https://support.bigcommerce.com/s/article/Setting-Up-Related-Products> for your reference about Related Products.
  {% endhint %}

**02. Using Product ID**

To pull products from your Related Products, create the following custom field:

&#x20;   \+ Custom Field Name:  **\_\_bundleid**

&#x20;   \+ Custom Field Value:  **the number of your product id**. Example: 100,101,102 (they are Product ID), use the comma to separate them

<figure><img src="/files/fq0ojcYRBEgN8OJGRbyR" alt=""><figcaption></figcaption></figure>

**How do I get Product ID of a product?**

* Please follow this instruction image:

<figure><img src="/files/EAust0mJmHgpbFfQZlAa" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When you are happy with your changes, don't forget click **Save** and **Publish** to repackage the edited theme.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://halosoft.gitbook.io/bc-nimo-documentation/product-detail-page/frequently-bought-together-function-bundle-products.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
