> For the complete documentation index, see [llms.txt](https://halosoft.gitbook.io/halo-docs/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/halo-docs/products/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.

![](/files/bGXNepBacpUYVbyuRwmw)

## Setup Product Bundle

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

1. From your Shopify admin, go to **Settings** -> **Metafields**.
2. Click **Products → Add Definition.**
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](/halo-docs/page/bulk-editor-page.md) to edit multiple products.
{% endhint %}

## Setup Discount Rate For Product Bundle

### Create A Collection

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

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** -> **Metafields**.
2. Click **Products → Add Definition.**
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](/halo-docs/page/bulk-editor-page.md) 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 Bundle.**

![](/files/xdXMbrVfhxWXAICe8n8F)
