Skip to content

Conversation

@sztupy
Copy link

@sztupy sztupy commented Nov 20, 2024

This allows discounts to be set on the actual quantities which end up in the specific range, with the rest calculated on the full price (or the respective discount set up for that band)

Main caveat is that first a per-item price is calculated and then backfilled for the total, which due to rounding down to cents which could be lower than what you expect. If quantities above 100 are expected it is important to set up the pricing to cater for this difference. This caveat also applied to percent based discounts as well even before this change however, this has been added to the README to make it clear.

@sztupy sztupy force-pushed the master branch 4 times, most recently from b30be82 to 9d1f69b Compare November 20, 2024 23:02
This allows discounts to be set on the actual quantities which end up in the specific range, with the rest calculated on the full price (or the respective discount set up for that band)
@zsolt-b4b
Copy link

@tvdeyen wondering if this is something that might get into the contrib branch at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants