Shopify Bundles product inventory quantity is always 0

Shopify Bundles product inventory quantity is always 0

Mark04
New Member
13 0 0

Hi,

 

We have some custom code to display the inventory status of each product on the product page and on the collection page (in stock, available for back-order, out of stock, etc.). This works nicely, except for products that are bundled with the Shopify Bundles app. On these bundles, the inventory_quantity is for some reason always 0, causing them to show as if their not in stock. 

Scherm­afbeelding 2025-01-20 om 16.29.29.png

 

The current way we check this is with product.selected_or_first_available_variant.inventory_quantity.  Is there a different way to check the inventory of a bundled product or the products inside the bundled product? I cannot find anything about this.

Replies 2 (2)

Mark04
New Member
13 0 0

Ok so this gets really weird: when viewing our site in the Shopify Editor, everything work perfect. The quantity of the bundel is the quantity of the product with the lowest quantity, which is the correct behavior. But when viewing the live version of the site, all the quantities are 0.

 

When console logging product.selected_or_first_available_variant.inventory_quantity it shows the correct value's in the editor:

 

Scherm­afbeelding 2025-01-21 om 15.55.17.png

 

But on the live website, they are all zero:

Scherm­afbeelding 2025-01-21 om 15.56.12.png

 

Could anyone explain to me what causes this and how to fix this? Would be much appreciated!

Mark04
New Member
13 0 0

Anyone?