> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://ebayintegration-dpl.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How does bundle inventory sync work in eBay Integration - DPL?

| This article explains, in simple words, how eBay Integration - DPL calculates the inventory of a bundle and sends it to eBay.

## __What is a bundle?__

A bundle is a single product made up of other products, called **components**. Bundles are usually created in Shopify using a bundle app.

For example, a **Coffee Gift Set** bundle contains:

- 1 Mug
- 1 Bag of Coffee
- 2 Spoons

There are no separate bundle settings in our app. The bundle quantity is calculated automatically from the inventory of its components.

## How is bundle inventory calculated?

The app counts how many **complete** bundles can be packed, and sends that number to eBay. It follows three simple rules:

1. **The component that runs out first decides the number.** If you have plenty of mugs but only 3 bags of coffee, you can only make 3 gift sets.
2. **Each location is counted separately.** A bundle is only counted when all of its components are available at the **same** Shopify location. A mug at one location and a bag of coffee at another location do not make a complete bundle.
3. **The bundles from all connected locations are added together.** The app counts the bundles each connected location can make, and the total is sent to eBay.

## Example 1: All locations are connected in the app

Let's say your Shopify store has two locations, **Warehouse A** and **Store B**, and both are connected in the app.

| Location | Mug (1 per bundle) | Coffee (1 per bundle) | Spoons (2 per bundle) | Bundles it can make |
| ---- | ---- | ---- | ---- | ---- |
| Warehouse A | 10 | 4 | 6 (enough for 3) | **3** |
| Store B | 2 | 8 | 10 (enough for 5) | **2** |

- **Warehouse A** can make 3 bundles, because the coffee and spoons run out first.
- **Store B** can make 2 bundles, because the mugs run out first.

**Quantity sent to eBay: 3 + 2 = 5 bundles**

## Example 2: Only one location is connected in the app

Now let's say only **Warehouse A** is connected in the app, and **Store B** is not.

| Location | Connected in app? | Bundles it can make | Counted for eBay? |
| ---- | ---- | ---- | ---- |
| Warehouse A | Yes | 3 | Yes |
| Store B | No | 2 | No |

**Quantity sent to eBay: 3 bundles**

The inventory at Store B is ignored, even though it could make 2 more bundles.

## __How to choose which locations are synced to eBay__

![](https://storage.crisp.chat/users/helpdesk/website/-/d/2/3/8/d23846d655466800/image_i53pxq.png)

1. Open **eBay Integration - DPL** from your Shopify admin.
2. Go to **Settings** and open the **Location Settings** tab.
3. Under **eBay Inventory Sync Setting**, click **Manage Locations**.
4. In **Select eBay inventory locations**, tick the locations you want to sync, or tick **Select all locations**.
5. Click **Save**.

|| Note: Only inventory from connected locations is synced to eBay. This applies to all your products, including bundles.

## __How to increase your bundle quantity on eBay__

- **Restock the component that runs out first** at each location. In Example 1, adding more coffee and spoons at Warehouse A will increase the bundle quantity.
- **Keep all components of a bundle at the same location**, so they can be counted as complete bundles.
- **Connect every location that holds bundle stock** in **Location Settings**.

## __Good to know__

- If your bundle has variants, the quantity of **each variant** is calculated separately.
- If a component has negative inventory at a location, it is counted as **0**.
- Components that do not track inventory in Shopify are ignored in the calculation.