PrestaShop 1.7.5.X: Problem on cart total when using discounts

PrestaShop 1.7.5.X: Problem on cart total when using discounts

PrestaShop 1.7.5.X versions allowed us to reproduce a bug in the cart total calculation when using discounts.

Specifically, the problem reproduces if two (or more) discounts are used at the same time, such as:
- a percentage discount 
- a specific amount discount
- a product is offered as a gift 

In this case, the total displayed on PrestaShop, before checkout, will be different from the total displayed by PayPal during checkout.


In the example, a shopping cart with two products for a total amount of €136.80 euros including VAT.
In the same shopping cart, two discounts have been added :
- a discount of €5
- a gift product worth €42

PrestaShop displays a total of €91.34. 
But the correct total is 136.80-5-42 > €89.80

PayPal, on the other hand, calculates the total correctly at checkout.



The calculation difference between PayPal and PrestaShop can create "payment error" in PrestaShop 1.7.5.X.

This problem does not affect all versions of PrestaShop and the bug is fixed by PrestaShop from version 1.7.6.

We encourage you to upgrade your PrestaShop to newer versions to avoid this problem.
    • Related Articles

    • Problem of Rounding with Prestashop

      PrestaShop allows you to configure the price of articles in the catalog by specifying up to six digits after the comma.  It will therefore be possible to specify a price such as €9.123456. The PayPal module, on the other hand, processes prices by ...
    • Shoppingfeed Prestashop module developper guide

      Generalities Source: 00-overview/00-module_overview.md Some useful links : The Shopping Feed API documentation ...Which shouldn't be necessary since we're using the Shopping Feed PHP SDK. This module will replace the shoppingfluxexport module since ...
    • Documentation YounitedPay PrestaShop module

      Please find under this link the documentation of the module Younited Pay for PrestaShop
    • Problem: points earned by customers are not awarded

      Some merchants are experiencing anomalies with the allocation of points. The points are attributed by the module, automatically, after the purchase. At this stage, the points are not usable and remain pending validation. Only validation will allow ...
    • Module PrestaShop Axeptio - documentation

      User guide of PrestaShop module Axeptio - documentation