Solved

Why isn't my add to cart button working properly with variants?

Danish7
Shopify Partner
3 0 0

Hi, Shopify community!!
My add to cart button is not working can anyone help?
when I select add to cart it adds the product but when I change the variant it doesn't pick the variant.
can you please please tell me how to fix it?

Accepted Solution (1)
Mac
Shopify Staff
1688 176 277

This is an accepted solution.

Hi again, @Danish7!

Thank you for providing the link and for thoroughly explaining the apparent issue.

 

While testing this on my end, it appears that the add to cart button is functioning as expected. I was able to consistently change the variants and they would be added to the cart as individual items. Feel free to check out the screen-recording here that goes over this. 

 

Are you able to confirm if this issue is still persistent on your end? You can also consult your theme developer for more information. It looks like you are using a third-party theme so you can contact your theme developer troubleshoot further.

 

Kindly reply back to this thread with any questions or updates and we can continue our conversation further!

Mac | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 5 (5)

Mac
Shopify Staff
1688 176 277

Hi, @Danish7!

Thanks for reaching out in our Community forums and for sharing your concern, I’d be happy to help.

 

I understand that you are running into some issues with your add to cart button. This error can occur for many reasons. Have you made any changes to your theme code recently? To narrow it down, are you able to share the name of your theme? You can also share your store URL so that I can attempt to replicate this issue on my end. 

 

Since this issue may be affecting your sales, we would be happy to continue assisting you through live chat, email, or callback immediately. Please visit our Help Center and log in to your account to create a support request. 

 

Feel free to let me know if you have more questions!

Mac | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Danish7
Shopify Partner
3 0 0
Mac
Shopify Staff
1688 176 277

This is an accepted solution.

Hi again, @Danish7!

Thank you for providing the link and for thoroughly explaining the apparent issue.

 

While testing this on my end, it appears that the add to cart button is functioning as expected. I was able to consistently change the variants and they would be added to the cart as individual items. Feel free to check out the screen-recording here that goes over this. 

 

Are you able to confirm if this issue is still persistent on your end? You can also consult your theme developer for more information. It looks like you are using a third-party theme so you can contact your theme developer troubleshoot further.

 

Kindly reply back to this thread with any questions or updates and we can continue our conversation further!

Mac | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Danish7
Shopify Partner
3 0 0

Okay, thanks for your time mate!

 

 

Mac
Shopify Staff
1688 176 277

Hi @Danish7!

No problem at all. I'm happy I could help. 

 

If you have any other questions, feel free to follow up and let me know! Additionally, I'm always looking to help out merchants with ideas or feedback related to their stores as well! 

Mac | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog