ATC button not responding

Hi, the atc button on any of the PDPs is not working, it shows “please select a variant” when its already selected. So then you have to click on the variant selector, click on the existing variant and then it works… it just presents unecerssary friction and negatively influences my CVR, thanks for all the help!

Hey @Amadej_Pristovnik

Tested it, and the console tells the whole story. Your add to cart isn’t actually unresponsive, it’s being stopped on purpose because no variant id is reaching the request. The POST to /cart/add comes back as 422 (Unprocessable Content), which means Shopify is rejecting it for missing a valid variant id, and your theme’s own script (custom.js line 222) catches that and logs “Preventing submission, missing id parameter,” so the button looks dead.

The root cause is in the theme code, not a Shopify setting: your size selector isn’t passing the chosen variant’s id into the add to cart form, so the request fires without it and the hidden id field comes through empty. The fix lives in product-form.js / custom.js, where the variant picker needs to set that id to the current variant on page load and whenever the option changes. Right now it never gets set, which is why even the single “adjustable” option fails.

It’s a quick fix once you’re in the code, but it does need a dev since it’s the theme’s JavaScript rather than anything in the admin. Happy to jump in and get it working again so people can actually check out

Best,
Moeed

Hi @Amadej_Pristovnik .

The variant is not being registered by JS load.

Add a script to auto-trigger a change event on the default variant.

Share your theme name, and I will write the exact fix!

Your cart drawer opens by default and unable to close


Keep in mind that there is a code in your HTML which unsets the variant id input.
Seems to be rendered as part of the simple variant picker code…

// Override the value of value attribute ( to make no selected option by default)
if (!false) variantIdInput.value = "";

Since it’s rendered in Liquid rather than being a part of js file, I’d say that there must be a setting to control this.

Sometimes it is done to make your product image show rather than variant image.


Frankly, I’d consider getting a better written and better supported theme.
It is unstructured, still uses jQuery and has terrible pagespeed metrics.

There is no real support and no easy updates, the site looks shady and promised “discord community” is literally empty and social media has not updates in a year…

No issues since very beginning in July 2025? :slight_smile:

I just opened your website and see a different issue rather than the Cart button.
The cart drawer is not being closed. Not sure, whether it’s from the app or from the theme itself.