Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hello,
I'm working with a developer to create a slide out cart feature on our website but we're running into an issue where it doesn't add the most recent item when 'add to cart' is clicked. See comments below from developer:
The slide out cart also changes the way product is added to the cart, from regular form submit to ajax request. The issue happens after the product is added to the cart. When we try to retrieve the cart(via ajax), sometimes recently added product is missing.
Our thorough investigation concluded that there are several apps that interfere with the theme and between themselves.
There are 190 total requests when those apps are blocked https://take.ms/2tkc4, and 570 requests when they're not https://take.ms/ETkEq (see bottom left corner).
We're also using the following 3 apps that touch the cart/checkout process:
- In Cart Upsell by Awesome Software
- Beautiful Abandoned Cart Recovery
- GemPages Drag & Drop Page Builder
Does anyone have any suggestions for how to fix this? Thank you!
Can you share a preview URL to your store with the work-in-progress implementation? Looks like live site has the old approach in place.
@Visely-Team wrote:Can you share a preview URL to your store with the work-in-progress implementation? Looks like live site has the old approach in place.
Yes! Here you go: https://vluvhz0at4sw8025-22399823.shopifypreview.com
Tried to reproduce it with no luck, products are being added to the cart each time. Maybe it happens for specific product? or maybe when you try to add to cart before the page loads completely?
@Visely-Team wrote:Tried to reproduce it with no luck, products are being added to the cart each time. Maybe it happens for specific product? or maybe when you try to add to cart before the page loads completely?
I've attached a screen recording of it. It looks like it adds fine when the cart is already open on the side, but if you do not have it open it does not add on the first click.