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
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 :)
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 :)