For the complete documentation index, see llms.txt. This page is also available as Markdown.

Shopify Functions

Add useIgCart()

  • Use the useIgCart() hook if your site uses the Storefront Cart API.

  • The wrapCustomAttributes helper is only needed if you're performing shipping tests or need line item properties added to ATC requests.

Add useIgCartAttributes() (optional)

If you build carts manually (for example, via cartCreate or cartLinesAdd), use useIgCartAttributes() for the attributes payload that should be included in your cart requests.

Last updated