-
Notifications
You must be signed in to change notification settings - Fork 33
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
Set amount to the subtotal when the discount amount exceeds the subtotal #200
Set amount to the subtotal when the discount amount exceeds the subtotal #200
Conversation
5ae13a1
to
f40dc6c
Compare
Not sure, if we should make that behavior configurable? WDYT? |
That sounds like a good idea. I would implement the current behavior as the default, with an option to switch to the new calculation. Additionally, I would apply the change only to the fixed amount and deprecate the old method of calculating cart discounts with fixed amounts. |
please just update the english translation file. the rest is translated via poeditor, see also https://pimcore.com/docs/platform/Pimcore/Multi_Language_i18n/Admin_Translations/#adding-your-own-admin-languages-since-v636 |
991fd9a
to
fad0b13
Compare
thanks again! |
The cart discount reduces the total cart price, including price modifications like shipping costs. This behavior differs from percentage discounts, which only apply to the subtotal and do not affect additional costs.
This is fixed by setting the discount amount to the subtotal when the discount amount exceeds the subtotal.
Resolves: #199