Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
When you select any size and then add to cart then the cart automatically shows the first default product instead of what the customer selected. Help... how do I fix this?
Example: I wanted a large dog harness so I select large and add to cart. In my cart it shows I selected small when I selected large.
Solved! Go to the solution
This is an accepted solution.
Hello @mckennahurcomb ,
It happens because of a JS conflict. And conflict comes when you install/uninstall apps or add custom JS code or by mistake remove any code.
To fix it:
1) Try to revert the changes you did recently.
2) Try to find the conflict and fix it. You can check the conflict in browser console.
Thanks
This is an accepted solution.
Hello @mckennahurcomb ,
It happens because of a JS conflict. And conflict comes when you install/uninstall apps or add custom JS code or by mistake remove any code.
To fix it:
1) Try to revert the changes you did recently.
2) Try to find the conflict and fix it. You can check the conflict in browser console.
Thanks
What should I do if an app service provider made the addition for me and I am unsure of what JS they changed?
What should I do if an app service provider made the addition for me and I am unsure of what JS they changed?
Let them know about the issue which you are facing after they made customization in your store.
@GuleriaI am also having the variable not working in cart issue and can't figure out why. Would you be able to help me? https://tartar-berlin.com. Thanks for your time!
@Gulerianevenmind! Seems like I am getting it to work. Although I still see a lot of issues in the inspector. Do you know how I could solve these?
Dear Guleria,
We encounter the same problem however, there were no apps (de)installed around the time it happened and we also didnt change anything in the code. It happened spontaneously. Any ideas how we can best approach this problem in our specific situatio?
In Canada, payment processors, like those that provide payment processing services t...
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