Can you customise the cart to show the Bundle items?

Why doesn't the cart show the bundle items?

It’s possible to show bundle components beneath the bundle parent item in the cart. However, it requires some custom code implemented in your theme as our app does not make changes to your theme code.

What customers see

In the cart, a bundle is one line with its items attached, whether the bundle uses localised pricing or not. How the items appear depends on your theme or cart app: some show the bundle line alone, and some list its items under it. Checkout shows the bundle with its items. The order lists each item as its own line, grouped under the bundle.

Showing the items in your cart

Code changes in your theme are overwritten when you update your theme version, and have to be reapplied.

If you have a development partner or are confident with code we have a guide on how to expand Shopify bundles in cart here:

https://help.biscuitsbundles.com/en/articles/9612739-guide-expand-items-in-cart-update-your-theme-to-expand-your-bundle-in-cart-drawer-and-cart-page

For developers and cart apps

In Liquid the bundle is one line_item in cart.items, and its items are in item.item_components. Each of those is a line_item with its own title, variant, quantity and price. A cart page or drawer lists the bundle's items only if its code loops over item_components.

/cart.js returns the bundle as one item marked has_components: true and does not list its items. A cart drawer built only on /cart.js therefore shows the bundle line alone. A theme's cart page, or a drawer that re-renders a theme section, can list the items, because it is rendered in Liquid.

The same cart can therefore read differently in different places, while checkout and the order do not change. On the order each item is its own line item, grouped under the bundle through the Admin API's lineItemGroup field.

Did this answer your question?
😞
😐
😁