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