Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi there, I am currently trying to figure out what is going on with one of our online stores.
Every time a customer adds an item to the cart, the wrong variant (size) is being added.
This is on a wholesale site we have set up and we have never encountered an issue with our main store so I can't really seem to troubleshoot this.
Hello @DevinFortyNine ,
Most of the time it happens because of the JS conflict.
Can you share your store URL so I can check and confirm?
Thanks
We are experiencing the same issue.
Every time a customer adds an item to the cart, the wrong variant (size) is being added.
Hello @cleanherbalsAU ,
You can DM/share the store URL, so I can check and let you know the issue.
Thanks
Ignore this, after refreshing my DevTools window was cutting off text.
Issue is a conflict.
On change of the variant you can see this error in the browser console
Uncaught TypeError: _.map is not a function
To fix it:
Revert the changes you did recently.
or
Uninstall the apps you installed recently.
or
Call a developer to check the JS and fix it.
I'm a developer too but you can pick anyone you want. Developer contact found in the signature.
Yes you can drop an email to discuss further.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025