Add to Cart button doesn't work once I select a product variant

Add to Cart button doesn't work once I select a product variant

Mr_Splinter
Visitor
2 0 0

I've just built a new store and everything looks great, except for one detail; when I'm in the product page and I click Add to Cart without selecting a variant first it works properly, but once I select a variant it becomes disabled. I can't get around this; I've looked for solutions online, I've searching through the theme's code but I jsut can't find the error... Can anyone give me some help please??

PS: Also when I Add to Cart without selecting a variant it works, but it loads for a long time and I have to refresh the page for it to be properly added to the cart and I can actually see the product there.

 

https://e66f30-61.myshopify.com/

Replies 3 (3)

PaulNewton
Shopify Partner
7075 629 1484

Hi @Mr_Splinter 👋 There's two main console errors:

  1. Uncaught ReferenceError: Shopify is not defined
  2. Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'product')

Typically this can be the result of either prior theme customizations, or apps, "performance" apps or services, etc or from an app uninstall

If you have theme backups try those.

If you changed theme code try file rollbacks

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code#roll-b... 

 

If you need theme repair services then contact me by my email for services, or if you have access private message by clicking here (sloooower).
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Mr_Splinter
Visitor
2 0 0

Thanks for the quick response already, I just don't now exaclty what to do... There was no changes to the original theme code, and I don't think I've installed and uninstalled any app... Do you have any suggestions to repair this problem? How can I solve those 2 points you mentioned above??

 

@PaulNewton 

PaulNewton
Shopify Partner
7075 629 1484

If you don't know when the problems started and have no backups and you don't know web development you need to hire someone.

 

Contact me for services , contact in forum signature

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org