Prestashop: Multiple free shipping vouchers give order total error - The discount is incorrect

Created on 4 Jan 2019  路  3Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
in cart class
public function getOrderTotal
when using the flag Cart::ONLY_DISCOUNTS
the returned value will sum up the free shipping vouchers two times.
So if a customer has two free shipping vouchers and use both at the same time, the value returned from this function will be the shipping cost x 2.

To Reproduce
Create two vouchers for free shipping.
Add both vouchers to the cart.
check the return value of the call to this function on the cart.

Screenshots

Additionnal information
PrestaShop version: 1.7.4.4
PHP version: 5.6

1.7.6.2 Bug Cart rules Discounts FO Minor To Do

Most helpful comment

Issue https://github.com/PrestaShop/PrestaShop/issues/11722 is now fixed, but the PR does not fix this issue, so I reopen it :)

All 3 comments

Hi @Prestaworks,

I manage to reproduce your issue with PS1.7.5.0, it is added to our debug roadmap.
Your ticket is a duplicate of #11722
So, I close it.
Thanks!

Duplicate of #11722

Issue https://github.com/PrestaShop/PrestaShop/issues/11722 is now fixed, but the PR does not fix this issue, so I reopen it :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wikao2 picture wikao2  路  3Comments

matks picture matks  路  3Comments

vincent-dp picture vincent-dp  路  3Comments

marionf picture marionf  路  3Comments

itisco picture itisco  路  3Comments