Add to Cart button won't work after I change variant

Add to Cart button won't work after I change variant

VaultCo
New Member
5 0 0

Hello, I've searched through a lot of similar questions about this and none have seemed to fix the problem

I have got a Problem with my Add to cart button. If i switch the variant (colour or size) of the Product, the add to cart button gets grey and i cannot click it anymore. Just After refreshing the site i can click on add to cart but only for the firsst variant. If i press another variant, i cant click it again.

Website link - thevaultcompany.ca

Replies 8 (8)

Guleria
Shopify Partner
3947 791 1122

Hello @VaultCo ,

Sometimes it's working, sometimes it's not.

And same with errors sometimes it throws errors in console sometimes it's not.

Actual case is a JS conflict.
You need to revert the change you did in global.js or product template recently. Also check the apps which you installed/uninstalled recently.
btw if nothing works then you need to go with a developer to fix it.

 

Regards
Guleria

 

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
VaultCo
New Member
5 0 0

Hi @Guleria, I understand this, but unfortunately, I do not have coding experience. Would you be willing to help me out with this?

Guleria
Shopify Partner
3947 791 1122

@VaultCo  Yes sure, I provide services. Please drop an email to discus it further.

You can find email in signature below. 

Regard
Guleria

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

Bundler-Manuel
Trailblazer
560 26 67

Hey @VaultCo  check out the marked reply here https://community.shopify.com/c/technical-q-a/cant-click-add-to-cart-after-switching-variants/m-p/20...

Just as I thought, you might have to remove some code due to the switch.

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.
VaultCo
New Member
5 0 0

Hi @Yabiola, I understand this, but unfortunately, I do not have coding experience. Would you be willing to help me out with this?

VaultCo
New Member
5 0 0

Hi @Bundler-Manuel , I understand this, but unfortunately, I do not have coding experience. Would you be willing to help me out with this?

VaultCo
New Member
5 0 0

How do we start? Do you want me to share Collaborator link so that you can check our theme code?

TheUntechnickle
Shopify Partner
182 18 19

Well, I could clearly see there is an error related to VariantChange in your global.js. I'm sure we'll be able to fix it. Attaching the screenshot for your reference.

TheUntechnickle_0-1735529132753.png

 

Please share your collaborator code so that we can send you a store access request and fix this.

Thanks,
Shubham | Untechnickle

 

Oh, and there’s something brewing behind the scenes that’s redefining customer experience. Curious? It’s time to Revize your store. Don’t say we didn’t warn you. 