> For the complete documentation index, see [llms.txt](https://halosoft.gitbook.io/ella-7-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://halosoft.gitbook.io/ella-7-documentation/product-page/product-bundle.md).

# 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.

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

## 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.**
3. Please enter correct **Namespace and Key** as we noted below.

<figure><img src="/files/9UMNJLuCReWomYWTmjHE" alt=""><figcaption></figcaption></figure>

```
Name: Grouped Sub Product or any name.
Namespace and key: custom.grouped_sub_product
Select content type: List - Product
```

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

### How to insert content for Product Metafields? <a href="#how-to-insert-content-for-product-metafields-1" id="how-to-insert-content-for-product-metafields-1"></a>

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.

<figure><img src="/files/9rDWuG2ivy9N45Yjf479" alt=""><figcaption></figcaption></figure>

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

{% 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 %}

## 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: custom.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)

## 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/nAmOPz6zih9mkqNP3vka" alt=""><figcaption></figcaption></figure>
