Why is the wrong product variant being added to my cart?

Hiya,

I’m having an issue with my cart it seems, where customers are selecting a particular variant but what is getting added to the cart is the first variant in the list - not the one they have chosen.

Does anyone have a tip for how to fix this? Let me know if you need any other info to help solve this. I’m using the theme Debut and the problem only started happening randomly in the last couple of days.

Best,

Heather

1 Like

Probably you are having a script error. There is a dropdown that is controlled by scripts that determines which variant to add to cart.

Paste below code to the devtools console, when you change an option paste it again it should be changed. If not, it is time to find why it hadnt changed.

document.querySelector('form[action="/cart/add"] [name=id]').value

Thanks Malipetek I will give that a try :slightly_smiling_face:

Paste below code to the devtools console,