Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Cart/AJAX Issue

Cart/AJAX Issue

SW_L
Visitor
3 0 0

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!

Replies 4 (4)

Visely-Team
Shopify Partner
1843 210 488

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.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
SW_L
Visitor
3 0 0

@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

Visely-Team
Shopify Partner
1843 210 488

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?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
SW_L
Visitor
3 0 0

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