New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculate carrier price on the real order price (develop) #4402
Conversation
Calculate the carrier price with the REAL price customer is gonna pay, so have to use the BOTH_WITHOUT_SHIPPING const. By now the Discount is not use in the calculation. For exemple if you have a specific carrier price range for order > 50€ => free shipping. If the customer buy an 60€ item and use a -20% discount, customer gonna pay 48€ AND have the free shipping. I think it's not the expected functionment
Thank you for this new PR @axometeam! Note: this is a recreation of @MrManchot's #2324 PR for the |
is there a reason that this is still not fixed in current stable 1.6.1.5? |
I think PrestaShop totally adbandon 1.6 😞
|
Rest assured that v1.6 is nowhere close to be abandoned: as you can see here, the 1.6.1.6 milestone is almost ready to ship, and we are already preparing for the 1.6.1.7 milestone. About this PR: it was initially made by @MrManchot in #2324, based on the |
Thank you @maximebiloe for making #5698, a port of the initial PR for the |
Can we copy this in 1.6.1.x for 1.8??? It's very nasty bug that I discovered few days ago and this pull request seems to fix it. *I tried to make a pull request (as you may see) but I failed miserably... is there some GUI based client that can do everything? |
Hello @axometeam, Sorry for the very late reply. Regards |
Hello @maximebiloe I'm not sure to understand, the commit already use the Cart::BOTH_WITHOUT_SHIPPING constant Regards |
Oh sorry, my bad ^^ It seems ok to me then. But when I run the tests in local it's still red. Regards |
Hey @axometeam, thank you for your contribution. I cherry-picked your commit here so you won't have to rebase. |
Calculate the carrier price with the REAL price customer is gonna pay, so have to use the BOTH_WITHOUT_SHIPPING const.
By now the Discount is not use in the calculation.
For exemple if you have a specific carrier price range for order > 50€ => free shipping. If the customer buy an 60€ item and use a -20% discount, customer gonna pay 48€ AND have the free shipping.
I think it's not the expected functionment