Syncing carts between liquid theme and shopify custom storefront

Hey I have an online shop hosted at root domain but also part of the shop there is a configurator is hosted on a custom storefront on a subdomain. Now I faced a problem where the carts between these instances are not synct. If the user is on the root domain puts items in the cart, then switches to the custom storefront make their personalized configuration of the product, then checks out he only has the personalized configuration in his cart not the items he added in the liquid theme. Are there possible solutions to make both carts sync? Thank you guy ❤️
1 Reply
Julia
Julia2y ago
I had the same challenge with magento integration. I fixed it by making sure the vsf cookies use the root domain (with a leading dot), so in the middleware config:
cookiesDefaultOpts: {
httpOnly: false,
secure: true,
domain: '.yourdomain.com',
},
cookiesDefaultOpts: {
httpOnly: false,
secure: true,
domain: '.yourdomain.com',
},
Want results from more Discord servers?
Add your server