Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Showstopper: Different users getting the same cart token by Hidden Gears

$
0
0

Hi all,

I have a client (whose site I did not develop, but am now the developer for) who uses the AJAX API to add products to the cart, using the code nearly verbatim from https://github.com/carolineschnapp/ajaxify-cart

I've been able to repeatedly reproduce a bug that their customer service team has had reported from customers-- namely, if you add the same thing (product with exact variants) to your cart as another user with an active session who is also adding that product to their cart, then both users end up with the same cart token.

The reproduction scenario is as follows:

USER1 adds product1 with variant1a and variant 2a to their cart. They are assigned a unique cart token (verified at shopname.com/cart.json) and continue to browse the store.

USER2 adds product1 with variant1a and variant2a to their cart. They get the same token as USER1. When USER1 returns to the cart they notice the product now has a qty 2 instead of 1, even though they just put 1 in their cart.

Since the store does not pass any attempt at setting a token, only adding the product to the cart (and setting a cookie to remember the variant selection if the user returns), it would appear that there's a bug in the API or backend which sees two different users with the same cart as the same user and reassigns those two users the same token.

My question is, has anyone seen this before, and will anyone at Shopify take a look? Normal support channels defer all API related issue to the forum.

thanks!

Paolo


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>