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)