Cart Transform API: Bundle Components Not Visible When Store Uses Shopify Scripts

We’re using the Cart Transform API and noticed some unclear behavior with Shopify Scripts.

While the documentation mentions that bundle components are not readable in the cart when using Scripts, we’d appreciate clarification on what exactly this means:

  • Are they not accessible from cart.js?
  • Are they not accessible from Liquid?

Current observations:

  • Without Scripts: Bundle components are visible and properly formatted in cart
  • With Scripts: Bundle components not readable in the cart
  • Technical note: line_item.item_components returns null when Scripts are enabled
  • Cart Transform API works as expected otherwise

Two key questions:

  1. Has anyone encountered this interaction between Shopify Scripts and Cart Transform API? Is there a known workaround?
  2. Is there any roadmap to make cart components consistently available in liquid templates, regardless of Scripts being enabled?

Any detailed insights about the documentation’s ‘not readable’ statement or potential solutions would be greatly appreciated.

Link to the mentioned documentation:
https://help.shopify.com/en/manual/products/bundles/scripts

1 Like

When the Shopify script is used, the bundle feature cannot be activated. I think this is a hard limit. You can only NOT use the cart transform for a bundle

Another way is to ask the merchant to upgrade from the Shopify script to checkout extensibility

Hey Benny.

This was used to be a hard limit. But not anymore. Bundles do work with Scripts while they DO NOT work with checkout.liquid

You can learn more about it here:
https://help.shopify.com/en/manual/products/bundles/scripts

1 Like