# Product Bundle

**Product bundle** helps customers add additional products besides the main product. They will get a discount when adding to cart all products in the bundle. This is also a way to boost your sale.

![](/files/N5IQSYcalcs8aYKR9aO1)

{% embed url="<https://www.youtube.com/embed/pf5Kl7FA2Ms>" %}
Instruction video
{% endembed %}

## 01 - Set up Product Bundle

### **Create a Metafield for Bundle:**

1. From your Shopify admin, go to **Settings** -> **Custom data**.
2. Click **Products → Add Definition.**

<figure><img src="/files/6etYFOJcCdWRYStEwFLv" alt=""><figcaption></figcaption></figure>

3. Please enter correct **Namespace and Key** as we noted below.

```
Name: Grouped Sub Product or any name.
Namespace and key: c_f.grouped_sub_product
Select content type: Text
```

![](/files/2DFmuRhoqORCXs4dsQZY)

### How to insert content for Product Metafields?

1. From your Shopify admin, go to **Products -> All products**.
2. Find and choose the product that you want to edit.
3. In the **Metafields**, please enter the handle of sub products for "**Grouped Sub Product**" field.

![](/files/HDlH0XsTCFsKB3SqKRp0)

{% hint style="info" %}
To get handle of sub products, please go to Admin -> Products -> choose the product you want to add in bundle -> Scroll down at the bottom to see **Search engine listing preview** -> click **Edit website SEO** -> copy **Product handle**. [Learn more](https://shopify.dev/api/liquid/basics/handle).
{% endhint %}

{% hint style="info" %}
You can use [Bulk Editor](broken://pages/KL6PTNrFZtms98ZiKvSF) to edit multiple products.
{% endhint %}

## 02 - Set up Discount Rate For Product Bundle

### Create A Collection with a group of products:

1. From your Shopify admin, go to **Products -> Collections**.
2. Create a collection which ***contains all of products in the bundle you created*****.** The name of this collection will be: **BUNDLE-xxxxxxxxx** (with **x** will be ***product ID of main product in bundle***).

![Create a collection which contains all of products in the bundle you created](/files/xcJr982jOZGgRayob5kA)

![Product ID of main product in bundle](/files/HkwvT0zC8mkI7afbGONp)

### Create A Discount for Bundle

1. From your Shopify admin, go to **Discounts. ->** Click **Create discount**.
2. Create a discount for the bundle collection you just created. The name of this discount will be: **FBT-BUNDLE-xxxxxxxxx** (with **x** will be ***product ID of main product in bundle***).

![](/files/vLZ8cSLZBVu8b2PeMfaG)

![](/files/78STQzc4QWBl6m9yRlCG)

### **How to add a new Metafields?**

1. From your Shopify admin, go to **Settings** -> **Custom data**.
2. Click **Products → Add Definition.**

<figure><img src="/files/6etYFOJcCdWRYStEwFLv" alt=""><figcaption></figcaption></figure>

3. Please enter correct **Namespace and Key** as we noted below.

```
Name: Bundle Discount Rate or any name
Namespace and key: c_f.bundle_discount_rate
Select content type: Number
```

![](/files/c1Dpvwe2m2IL9YXPwR21)

### How to insert content for Product Metafields?

1. From your Shopify admin, go to **Products -> All products**.
2. Find and choose the product that you want to edit.
3. In the **Metafields** area, please enter discount value which you just created for "**Bundle Discount Rate**" field.

![](/files/o8aPq2ya6qxPJ7vgmBBO)

{% hint style="info" %}
You can use [Bulk Editor](broken://pages/KL6PTNrFZtms98ZiKvSF) to edit multiple products.
{% endhint %}

## Customize Product Bundle

1. From your Shopify admin, go to **Online Store** -> **Themes**.
2. Find the theme that you want to edit, and then click **Customize**.
3. Choose **Products** from the dropdown window.
4. Click **Product information ->** scroll down to **Product bundle**.

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


---

# 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/ella-documentation/product-page/product-bundle.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.
