"Add to Cart" is disabled with variant change

Hi,

So I’ve been having an issue with my add to cart button working on specifically 7 products, not the other 43 products on my website.

The product starts at the default size, however if you change the size, the add to cart goes grey, size says null, and it seems like its unable to be purchased.

I use the theme from Debutify , but that shouldn’t affect the base function of the Add to Cart feature on the store. I also used TIMESACT in the past to use the preorder feature on those 7 products. However, I have deleted all the products off the site due to them being readily available to purchase, and disabled the app. That could be influencing it as well. I’m not sure.

Any advice on what I should do to make this fully functional again? It would be very much appreciated.

Thank you,

Andres

Can you share the link to the website please? This would make it a little bit easier for me to see what the problem is and to see it in action. Thanks!

Yes, http://aestheticsclub.net

Thanks. To start, could you give me an example (a link is good) of a product where this issue is happening, and then the same for where it’s working normally?

Yes absolutely.

Here is the link for one of the seven products that don’t allow it.
https://aestheticsclub.net/products/zeus-lever-belt?variant=43968226984214
Here’s one of the products that is working correctly.

https://aestheticsclub.net/collections/hoodies/products/fatal-beauty-hoodie?variant=43875808608534

I see the issue now. You mentioned that you used an app for the preorder feature for those 7 products. That could potentially be the issue.

How long ago were you using this app?

A few months ago. Timesact was the name. I reinstalled it, and tried deactivating it. But no luck on getting it functional again. It basically changes the add to cart option to pre order. I have since changed that option. I want it back to add to cart on those 7 products. Would you know how to reenable it in the code, or delete the code Timesact put on my theme?

Hey @andrescc ,

The variants appearing null on some products is due to the fact that you added double quotes to the variant option.

Double quotes are symbols in the programming language that we use and it is conflicting with each other.

The correct character is the double prime (″) to represent inches. It is very similar to the double quotes, however, it is tilted to the left a little.

Please replace the double quotes with double prime.

debutifytechsup_0-1686607303615.png

It instantly fixed the add-to-cart problem. Also makes sense why just those products had issues. Thank you so much! Very happy I got this figured out.

1 Like