Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Replace website cart cookie with another cookie

Replace website cart cookie with another cookie

pushkarsingh
Shopify Partner
2 0 0

I have a bot service that open in IFrame where in I let users to add/remove products to cart(using REST APIs) and inventory is handled by Shopify. At the backend I get cart token. Now I want the items added in my cart should also be in sync with the Shopify website. I researched and found that by replacing cart cookie with any cart token we can update all the items in the cart, but every time I have to do a hard refresh of the webpage for cart items to get updated on the website. How can I achieve this without page refresh?

Replies 0 (0)