Solved

Why is my 'Add to Cart' button not functioning properly?

umairqayyum86
New Member
4 0 0

My Add to Cart is not working on product pages. Although Add to Cart and Buy it now button is visible but unable to click it. Previously my developer disable the button 

Accepted Solution (1)
theycallmemakka
Shopify Partner
1528 344 368

This is an accepted solution.

Have you added the code i provided? The code i provided is not present on the page. Please add it to theme.liquid

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

View solution in original post

Replies 7 (7)

theycallmemakka
Shopify Partner
1528 344 368

CAn you provide link to your store?

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

Victoria
Shopify Staff
2221 152 259

Hi, @umairqayyum86.

 

Welcome to the Shopify Community.

 

You mentioned that your Add to Cart button is visible on the product pages, but it is not functional. To clarify, did the Add to Cart button stop working after the website developer disabled the button?

 

To gather further context, could you share information on the following:

 

  • A link to your website.
  • A video recording of you replicating the issue (if possible.)
  • Are customers able to replicate the issue? 
  • Have you recently installed any new apps/scripts?

 

In the meantime, could you try the below troubleshooting steps:

 

  • Try rolling back your theme code to an older date stamp, so we can identify the exact timeframe the issue took place.
  • Try adding a free theme from the Shopify Theme Store to see if the issue persists on an unedited, fresh theme.
  • If you have recently installed or updated any apps or scripts on your store, they might be conflicting with the Add to Cart functionality. You can try disabling any recently added apps or scripts one by one to identify the issue.

 

Let us know if the above options have helped. I look forward to hearing back.

Victoria | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

umairqayyum86
New Member
4 0 0

My website is Petsemporium.pk, and yes developer disable the button I did not install any app 

theycallmemakka
Shopify Partner
1528 344 368

Hi @umairqayyum86 ,

 

This seems to be a very serious issue as no user can add product to the cart. Someone added the CSS that disables the button events.

 

I have writter few code to bring ATC functionality back

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code just above </body> tag

 

 

 

<style>
.product__add__cart__button, .shopify-payment-button {
    pointer-events: auto!important;
}
</style>

 

 

If you require further help to optimize your store, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

umairqayyum86
New Member
4 0 0

nothing happened

theycallmemakka
Shopify Partner
1528 344 368

This is an accepted solution.

Have you added the code i provided? The code i provided is not present on the page. Please add it to theme.liquid

Buy me a Coffee


Enjoy Shopify for $1. Sign up now


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

umairqayyum86
New Member
4 0 0

Thanks its done