Buy Button JS Cart Not Syncing Or Using Main Store's Cart
Closed this issue · 2 comments
Hi there,
I am using the Buy Button JS to create a customized shopping experience and everything is working as expected except when it comes to the state of the Cart.
When adding products to the Cart using the Buy Button JS, the items are not showing up on the store's theme cart. I was hoping they would be in sync, but it seems a new Checkout ID/Cart Instance is created instead making the carts go out of sync.
Example: 2 items on the BuyButtonJS Cart, but 0 showing on the Cart on the navigation of my test store
Is this by design or is the Buy Button JS supposed to keep the store's cart in sync? What am I missing?
Thanks
Hello,
It's the same story here.
It would be useful if the cart on two channels (online store and buy button) could be shared. In our case, the client owns a brand site (built on Drupal) and an ecom (built on Shopify), we want to keep the cart visible on both sites at all times, so that the experience would be smooth regardless of the page the customer is on (there'd always be a quick way to check out and follow the state of the cart).
We ended up not using the cart function and capturing the productId
and adding it to the cart via JS SDK