Prestashop: Add to Cart not working

A bug in your online store immediately means fewer sales.
Are you experiencing a problem adding products to the shopping cart in your Prestashop store?
As an e-merchant, you probably already know that a missing or inactive button will lead to shopping cart abandonment.
And it could even have repercussions on your image.
So, if the “Add to cart” button doesn’t work on your Prestashop e-commerce site, you need to find an effective solution as soon as possible. problem with prestashop add to cart button

The add to cart button has disappeared: how to solve this problem?

Internet users visit your store with a very specific aim in mind: to find an item they like.
As soon as your customer is convinced by the relevance of your product sheet, his first reflex is to look for the “Add to cart” button.
So it’s in your interest to make this button visible at a glance.
However, it sometimes happens that the “Add to cart” button disappears from the site.
In other cases, this module is visible from your dashboard, but not when you log in as a customer.
There are many possible causes for this problem.
Here are a few possible solutions for re-displaying this button on your sales site.

Disable catalog mode

Prestashop allows you to present your products without the shopping cart module.
In fact, if you don’t want to take orders temporarily, you can switch to catalog mode at any time.
You may have inadvertently activated this option.
Make sure you have checked “Yes” for catalog mode.
If so, simply deactivate it and the “Add to cart” button will reappear on your Prestashop e-commerce store.
Here’s how to do it:

  • Go to “Preferences
  • Select the “Products” section
  • Change catalog mode to “No

Reset add-to-cart module

If, after deactivating catalog mode, your add-to-cart button still doesn’t appear, remember to reset this module.

Disable Ajax shopping cart

If the “Add to cart” button doesn’t appear in your store, try disabling the Ajax shopping cart.
Although the Ajax shopping cart is an asset to the aesthetics of your store, its activation tends to generate a malfunction.
Here’s how to disable it:

  • Go to your back office, then to “Modules”.
  • Click on “Basket block v1.x”.
  • Disable Ajax shopping cart

Downgrade your Prestashop version

You can also resolve a shopping cart bug by downgrading your version.
However, don’t forget to back up your database and FTP.

Clear cache

Another possible method of displaying an add-to-cart button is to clear the cache.
To do this with Prestashop version 1.6 or 1.7, follow these steps:

  • Log in to your back office
  • Log in to your Prestashop store
  • Go to the “Advanced settings” tab, then to the “Performance” section.
  • Click on the “Empty cache” option

After these actions, all you have to do is refresh your e-commerce store page. Prestashop add to cart button not displayed

The add to cart button remains at 0 after a click: what can be done about it?

It’s also possible that the add-to-cart button is indeed displayed on your site, but it’s not working properly.
For example, after a click, the popup clearly indicates that the product has been successfully added.
However, the number of items in the shopping cart still shows 0.
This could be due to a migration from Prestashop 1.6 to 1.7.
Here again, there are several possible ways to solve the problem:

Disable IP geolocation

To do this, follow these instructions:

  • Log in to your back office
  • Go to “International”, then “Geolocation”.
  • Disable IP geolocation

Activate debug mode

To activate debug mode on Prestashop 1.7 :

  • Log in to your back office
  • Go to “Advanced settings
  • Click on “Performance
  • Change debug mode to “Yes”.
  • Record your actions

Once you’ve finished debugging, don’t forget to set debug mode to “No”. prestashop add to cart not working

Inactive add to cart button: what to do?

When you click on the add to cart button, it may not respond.
This is another recurring problem encountered by Prestashop users.
Here are a few things you can do about it:

Check if your products can be ordered

Before you start thinking about a bug, check that your customers have the option of placing their order.
In particular, check that you have ticked the “Available for sale” box.
And don’t forget to deactivate inventory management.

Clear cache

To resolve an inactive button, you can also clear the cache, especially when you’ve just upgraded.
The procedure is the same as that described earlier in this article.

Activate SSL throughout the site

If the add-to-cart button does not react after a click, please activate your SSL by following the steps below:

  • Go to the “Configure” tab, then “Shop settings”.
  • Click on “Enable SSL for the entire site”.

To conclude on the malfunctioning of the “Add to Cart” function in Prestashop

The “Add to cart” button on your e-commerce site plays a vital role in your customers’ purchasing process.
A malfunction of this module has a direct impact on your sales.
If none of the solutions recommended in this article work, don’t be discouraged.
Consider hiring a professional to help you.
As an e-commerce site developer, I can help you resolve a broken add-to-cart button on Prestashop.
Please don’t hesitate to contact me so that I can quickly identify the source of your problem and provide the most appropriate solution.