Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buy Button JS Cart Not Syncing Or Using Main Store's Cart #853

Closed
rpaschoal opened this issue Sep 7, 2023 · 2 comments
Closed

Buy Button JS Cart Not Syncing Or Using Main Store's Cart #853

rpaschoal opened this issue Sep 7, 2023 · 2 comments

Comments

@rpaschoal
Copy link

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

@giograf
Copy link

giograf commented Feb 26, 2024

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).

@rpaschoal
Copy link
Author

We ended up not using the cart function and capturing the productId and adding it to the cart via JS SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants