Payment buttons grayed out when select variants in product page

Topic summary

Payment buttons (Add to Cart and PayPal) become disabled after selecting product variants (size/thickness) on the product page.

One participant suggests checking if the PayPal button is provided by an app; if so, theme-level fixes may not apply and the app provider should be contacted. They advise adding code in the theme.liquid file near the closing tag, but no specific code was supplied.

Another participant reports the site is throwing an error that prevents enabling the call-to-action (CTA) buttons. A screenshot is referenced as evidence, indicating the error is central to understanding the issue.

Recommended actions: back up the current theme code and revert recent changes; if there are no customizations, pull the latest version of the theme and publish. Also inspect the browser console for errors and verify any app integrations controlling payment buttons.

Key terms: CTA = call-to-action buttons (e.g., Add to Cart, PayPal). theme.liquid = main Shopify theme template file.

Status: no confirmed resolution yet; troubleshooting and potential rollback are advised, discussion remains open.

Summarized with AI on January 10. AI used: gpt-5.

Hello dear friends

I have a very strange problem with my store’s payment buttons.

Payment buttons gray out when select variants in product page.

see the page: https://drabangshop.com/products/latex-mattress

when you select size or thickness, the payment buttons (add to card and PayPal) automatically gray out.

what is could be? please help dear guys.

thank you

1 Like

Hi @drabangshop

Is the payment button paypal are app?

Check this one. But If there is an app on the buttons there is possibilities this code wont work. You need to contact the app provider.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “theme. Liquid” file. Find the tag and paste the code below


And save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi @drabangshop

Your website is throwing an error, therefore it blocks the functionality of enabling CTA.

Please refer to the below screenshot for reference

The best solution would be to take a backup of the existing code and revert the recent changes done in the theme.

If no customization is done on the theme please take the latest pull of the theme and make that live.