We're on Plus and have a customized checkout.liquid wherein we offer an in-checkout product upsell. This works by using cart.js endpoints to add the product/variant to cart. However, we noticed when creating and redirecting to checkouts created using the Storefront API, cart.js still updates the *main site cart* and not the checkout cart (i.e. line items).
I don't see in the docs how to change the checkout/cart contents for the *current* checkout. Any insight is appreciated.
I don't believe this is possible. Check out this similar forum thread: https://community.shopify.com/c/Shopify-APIs-SDKs/How-do-I-use-the-AJAX-API-in-a-headless-Shopify-Re...
Callum | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution