Skip to content
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

Add support for volume pricing based on pricing bands #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

1 participant