The PrestaShop cart is not working: why nobody can buy and how to fix it

The PrestaShop cart is not working

Few faults cost so much and are so hard to see. The shop loads, the products show, traffic comes in, and nobody can buy. Often the owner finds out days later, when a customer writes or when someone notices that no orders have come in. And “the cart does not work” is really five different problems, fixed in different places. Half of them are not code: they are configuration.

Below you will find how to tell which one is yours, what causes it and what to check first.

Which of the five is yours

What happens What it usually is Where to look
You click “Add to cart” and nothing happens A JavaScript error, almost always from a module, the theme or the cache The browser console
It adds it, but the cart shows empty The session is not saved: cookies, domain, HTTPS or a cache serving stored pages The shop address and the cache
“No carrier available” No carrier covers that country, weight or amount Carriers, zones and ranges
No payment method appears No method is allowed for that country, group, currency or carrier Payment > Preferences
Error when confirming the order The payment module, or something that fails when creating the order Error logs and the payment module
The five symptoms of a PrestaShop cart that does not work
Diagnosis.

Is this happening to you right now?

Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.

We reply within 24 working hours.

How to test it like a customer

Before touching anything, place an order the way a customer would, because you, logged into the back office and with a full browser cache, do not see what they see:

  1. Open a private window, without being logged into the back office.
  2. Test from a mobile phone on mobile data, not on the office wifi.
  3. Place the full order with an ordinary customer address: one in your main market, another in any special territory you sell to (in Spain, the Canary or Balearic Islands), and one in another country if you sell abroad.
  4. Note at exactly which step it stops and what message appears.

On a computer, open the browser tools (F12) and watch the Console tab while you click the button. If an error appears in red, copy it: it says which file is failing.

The button does nothing

It is almost always a JavaScript error: a file that does not load or that clashes with another. Usually it started after installing or updating a module, changing something in the theme or enabling file combining and compression in Advanced Parameters > Performance.

Try in this order: clear the cache from that same screen, briefly disable JavaScript file combining and test again. If it works, the problem is a file that does not get on with compression. If not, disable the last module that was installed or updated. If the fault started with an update, you have the full procedure in PrestaShop broken after updating.

It adds it, but the cart shows empty

The product gets added, but when you go to the cart there is nothing. The cart lives in the visitor’s session, and if the session is not saved, every page is a new visitor with an empty cart.

  • The address does not match. With or without www, with or without https. If one page redirects to the other version, the session gets lost on the way.
  • A full-page cache (from the hosting, a CDN or a module) serving everyone the same stored page, including the empty cart. Cart and checkout pages must not be cached.
  • An expired certificate or a mix of pages with and without HTTPS.

“No carrier available”

This is configuration. PrestaShop only offers carriers that cover the zone of the customer’s address and that have a weight or price range that includes the order. If an order weighs more than the last range, or the country is not in any active zone, none appears.

Look in Shipping > Carriers, at each carrier: the zones it covers, the ranges and what it does when an order falls outside a range. And in International > Locations, check that the customer’s country and state are active and assigned to a zone. Special territories, such as the Canary Islands, Ceuta and Melilla for Spanish shops, are usually in a separate zone and are easy to forget.

No payment method appears

Also configuration. In Payment > Preferences you decide which method each customer sees, by currency, customer group, country and carrier. If the customer falls into a combination with no method ticked, none appears. We explain it in detail in payment methods in PrestaShop.

The order gives an error when confirming

Here it is usually technical: the payment module, a cart rule with a problem, a product that has run out of stock at the last moment with the shop set not to sell out-of-stock items, or an error creating the order. Look at Advanced Parameters > Logs at the time of the attempt and the server error logs. If the customer paid and the order does not appear, it is the case of the payment that does not come back from the bank.

A JavaScript error in the browser console
What a failing add to cart button looks like.

Other causes that block purchases without warning

  • A minimum order amount set in Shop Parameters > Order Settings that nobody remembered.
  • The terms of service checkbox that does not appear because of a theme fault, and without ticking it you cannot continue.
  • Out-of-stock products with the shop set not to allow out-of-stock orders, when the stock figure is wrong and the product is actually in the warehouse. We explain it in stock mismatches in PrestaShop.
  • A minimum purchase quantity on the product page.
The order in which to test a PrestaShop cart
From the simplest to the most technical.

What changes when it works

What changes when the PrestaShop cart works and is monitored
A fault is caught in hours, not days.

When the cart works and someone keeps an eye on it, a fault like this is caught in hours, not days. The simplest way to monitor it is the most boring one: a complete test order after every change to the shop (a module, an update, a new carrier) and an alert if a whole working day goes by without orders.

What breaks if you get it wrong

  • Testing only from your computer logged into the back office. You see the shop the staff see, not the one customers see.
  • Enabling full-page caching without excluding the cart and checkout. Each customer sees someone else’s cart, or an empty one.
  • Removing weight ranges so “a carrier always appears”. You end up charging the cheapest shipping on orders that cost you three times as much.
  • Allowing out-of-stock orders to get out of trouble. You sell what you do not have.
  • Installing another checkout module to fix it. If the fault was configuration, now you have two problems.

And if the cart works but the shipping price does not match what the courier charges you, the problem is in the ranges and zones: we explain it in shipping costs in PrestaShop.

When you cannot do this yourself

You can check the customer test, the zones, the carriers’ ranges and the payment restrictions yourself from the back office. Finding which file breaks the button, which cache is holding on to the session or why the payment module fails when creating the order needs someone technical. It is part of PrestaShop maintenance: a test order after every change and a same-day response when nobody can buy.

Is this happening to you right now?

Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.

We reply within 24 working hours.

Frequently asked questions

Why can nobody buy in my PrestaShop shop?

The most common causes are an add to cart button that does not respond because of a JavaScript error, a cart that empties because of the cache or the domain, no carrier for the customer’s address, no payment method appearing or an error when confirming the order.

How do I test the cart the way a customer would?

In a private window or from a mobile on mobile data, without being logged into the back office, with an ordinary customer address, noting at exactly which step it fails. Testing from your computer with the back office open hides many errors.

Why does PrestaShop say “no carrier available”?

Because no carrier covers the zone of the customer’s address, the weight or amount of the order does not fall within its ranges, or the carrier is not assigned to the customer’s group. It is checked in each carrier’s settings.

Why does no payment method appear at checkout?

Usually because of the payment modules’ restrictions: country, currency, customer group or carrier. It can also be a payment module that is out of date after a PrestaShop or PHP update.