Shipping costs in PrestaShop: why they are calculated wrongly and how to stop losing money

Shipping costs in PrestaShop

Badly configured shipping costs do not break the shop: the shop keeps selling. That is why they last for months. A 40-kilo order paying the same as a 2-kilo one, free shipping applied to islands where it costs you 30 euros, products with no weight that always go out at the lowest price. Each one is a little margin lost on every order, and nobody sees it until someone adds up the courier’s invoices.

Below you will find how PrestaShop calculates shipping, where it usually goes wrong, what happens with special territories such as the Canary Islands, Ceuta and Melilla for Spanish shops, and how to check it.

How PrestaShop calculates shipping

PrestaShop does not have “a shipping price”. For each order, it follows these steps:

  1. The zone. It looks at the country and state of the delivery address and finds which zone they belong to (in International > Locations).
  2. The carriers for that zone. It only offers carriers that have that zone enabled.
  3. The range. For each carrier it finds the weight or price range the order falls into, and its rate for that zone.
  4. Out of range. If the order weighs or costs more than the last range, it does whatever the carrier is set to do: apply the highest range or disable that carrier.
  5. Handling charges and free shipping. It adds handling charges if the carrier has them, and removes shipping if the free shipping conditions in Shipping > Preferences are met.

All of this is configured in Shipping > Carriers, carrier by carrier.

How PrestaShop calculates shipping costs
Zone, carrier and range.

Where money is lost

Mistake What happens How it shows
The last range is too short and “applies the highest” A 60-kilo order pays the same as a 10-kilo one Courier invoices higher than what was charged
Products with no weight They weigh zero, so the whole order falls into the first range Bulky orders with almost free shipping
Free shipping with no zone limit It also applies to islands or abroad Free shipments that cost you more than the margin
Rates not updated The courier raises prices and the shop does not A small loss on every order, all year round
An active carrier you no longer use The customer chooses it because it is the cheapest Orders you have to send with another, at your expense

The rule for ranges: the last one should cover the biggest order you could receive, and for orders outside that range the carrier should be disabled. Better that the customer cannot choose that carrier than shipping them 60 kilos at the price of 10. If that leaves no carrier available, the cart will not move forward; we explain it in the PrestaShop cart is not working.

How many products have no weight

In Advanced Parameters > Database > SQL Manager, this query lists active products with zero weight (change ps_ to your table prefix if it is different, and 'en' to your back office language code):

SELECT p.id_product, p.reference, pl.name
FROM ps_product p
JOIN ps_product_lang pl
  ON pl.id_product = p.id_product
 AND pl.id_lang = (SELECT id_lang FROM ps_lang WHERE iso_code = 'en')
 AND pl.id_shop = p.id_shop_default
WHERE p.active = 1
  AND p.weight = 0
  AND p.is_virtual = 0
ORDER BY p.id_product

If many appear and you use weight ranges, that is your leak. Note: combinations can have their own additional weight, but it is added to the product’s. If the product weighs zero, so do all its variants.

The SQL query to find PrestaShop products with no weight
In the SQL Manager.

The Canary Islands, Ceuta and Melilla

This section applies to shops in Spain, and the same logic applies to any territory outside your country’s VAT area. Here the problem is not just shipping. For VAT purposes, the Canary Islands, Ceuta and Melilla are not territories where Spanish VAT applies: the tax applies on the mainland and the Balearic Islands, and the Canaries, Ceuta and Melilla are excluded. A sale from the mainland to those territories is generally treated as an export, and exports are exempt from VAT (in Spanish). The shipment also goes through customs, and there may be local taxes at the destination.

What this means in PrestaShop:

What Where it is configured
That the Canaries, Ceuta and Melilla are in their own zone International > Locations, in the states
Their own shipping rates for that zone In each carrier
That mainland VAT is not charged to those addresses International > Taxes, in the tax rules, by state
That free shipping does not apply, if it does not pay off Carrier and cart rules
Who pays customs and how the customer is told Terms of sale and product page

If you charge mainland VAT to a customer in the Canaries, they pay twice: your VAT and their destination’s tax. How each specific case is taxed must be confirmed by your accountant; the shop has to be ready to apply what they tell you.

Shipping configuration for the Canary Islands, Ceuta and Melilla in PrestaShop
Zone, rates and taxes.

How to check it

  1. Choose three real orders from recent months: a small one, a large one and one to an island.
  2. Compare what the shop charged for shipping with what the courier invoiced you for those same shipments.
  3. Place test orders with addresses on the mainland, on islands and in another country, with a light cart and a heavy one, and note which carriers appear and at what price.
  4. Repeat it every time the courier changes its rates.

What changes when it is right

What changes when PrestaShop shipping is set up properly
Each order pays what it costs.

Each order pays the shipping it costs, free shipping applies where it pays off and island customers see a correct price from the start. And you stop discovering losses when the courier’s invoice arrives.

An example of a well-built weight rate

For a shop shipping on the mainland with a carrier that charges by weight band, an organised rate in PrestaShop could look like this:

Weight band Price to customer Note
0 to 2 kg €4.95 The band most orders fall into
2 to 5 kg €6.95
5 to 10 kg €9.95
10 to 20 kg €14.95
20 to 30 kg €19.95
Over 30 kg No service So orders that cannot be shipped this way are not accepted

Three decisions behind it:

  1. The last band closes the rate. If it does not exist, PrestaShop may apply the last price to any weight, and an 80-kilo order goes out at the 30-kilo price.
  2. The prices cover the carrier’s real cost in each band, plus packaging. If you want to subsidise shipping, do it with a free shipping rule above an amount, not by lowering the rate.
  3. Zones with a different cost have their own rate: islands and special territories do not go in the mainland table.

Free shipping without losing money

Free shipping sells, but badly configured it is where most margin is lost. Before enabling it:

  • Calculate the minimum amount with your own numbers: the average shipping cost and the average margin of an order. The threshold has to leave margin after paying for transport.
  • Limit it by zone. Free on the mainland does not mean free on the islands.
  • Exclude heavy or bulky products with their own carrier or a handling surcharge.
  • Check how it combines with vouchers. If the voucher takes the order below the threshold, decide whether free shipping still applies or not.
  • Review every quarter the real cost of free shipping against the sales it brought.

What changes with PrestaShop 9.1: several carriers in one order

Until now, in PrestaShop each order went with a single carrier. If a customer bought a piece of furniture and a cushion, or a product in stock and another made to order, the shop had to choose: one carrier for everything or splitting the order.

PrestaShop 9.1 includes an experimental shipments feature that ends the “one order, one carrier” limitation: it lets you split and merge shipments within the same order. It is enabled in Advanced Parameters > New & Experimental Features.

Two warnings before using it:

  1. It is experimental. PrestaShop states that these features are still maturing and should be tested away from the shop that is selling.
  2. The PrestaShop team itself acknowledges open issues: for example, that checkout may show the name and lead time of a single carrier even though the price adds up several. They explain it in their introduction to the feature.

If your shop needs to split orders between carriers, it is worth testing it on a copy and following how it develops, but not building your logistics on it yet.

What breaks if you get it wrong

  • Deleting ranges to simplify. You end up with one price for everything, and you pay for the large orders.
  • Setting free shipping for the whole country without excluding the islands.
  • Changing the tax rules for special territories yourself without talking to your accountant.
  • Giving all products a weight at once with a made-up value. The ranges start charging wrongly in the other direction.
  • Disabling the carrier out of range without having another that covers those orders. Nobody can buy.

In short

  1. PrestaShop calculates shipping by weight or amount, by zone and by carrier.
  2. Products with no weight go out at the lowest band’s price.
  3. Each rate closes with a last band so impossible weights are not accepted.
  4. Islands and special territories get their own rate and carriers.
  5. Free shipping is calculated with the real cost and limited by zone and product.

When you cannot do this yourself

Reviewing zones, ranges and rates, and comparing them with the courier’s invoices, is something you can do. Adding weights to hundreds of products without errors, configuring tax rules for special territories, connecting the shop with the courier so rates do not go out of date or calculating shipping by volume when weight is not enough needs someone technical. It is part of PrestaShop maintenance (in Spanish).

Want to know whether this affects your shop?

Leave us your URL. We review it and tell you what we find and what it is costing you, with no commitment.

We reply within 24 working hours.

Frequently asked questions

Why does PrestaShop charge shipping wrongly?

The most common causes are products with no weight, weight bands that do not cover every order, badly assigned zones, carriers not limited by zone and free shipping rules applied where they should not be.

How do I set free shipping above an amount in PrestaShop?

In the shipping settings you can enter an amount above which shipping is free, and you can also do it with a cart rule. You need to check which zones and carriers it applies to.

How is shipping to the Canary Islands configured in PrestaShop?

With a dedicated zone for the Canaries, carriers that work there with their own rate and the appropriate tax configuration, because mainland Spanish VAT does not apply in the Canaries.

Can PrestaShop charge shipping by volume?

Out of the box, PrestaShop calculates by weight or by amount, and lets you limit carriers by package dimensions and weight. To charge by volume or volumetric weight you need a carrier module or custom development.