-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
"Price by ranges" doesn't calculate "above xx km/kg" correctly when there is no Distance or Weight condition set #2307
Comments
First of all, there is a bug that @alexsegura needs to correct.
Second of all, when you use I hope this makes sense. Although it still needs some testing and trying out more combinations of pricing. Let me know how it goes and we can work it out together than I can add this example to the docs. |
I think the first kg/km bug (created here: #2306 ) is a bug that doesn't affect calculation, but not sure about the back end reason why. I did see the docs before posting, but we are unable to set it at always true (distance/weight>0) because we include 2km and 20kg in our base price. Our base prices are based on how far in advance an order is placed (the top two conditions), and I initially thought that should work for the "base" price part of it. Here's what we did set for pricing that does work: While I'm not sure of the exact implementation, it seems like the main thing is that It would be helpful to have it work in conjunction with other conditions too, and allow for km pricing in Zone A to be $1/km, but Zone B is $2/km, as an example. Edit: Based on how this works currently, maybe update the docs to state that "any condition using |
Alright, I see. Yes, the @joel-shiftdelivery were you using this setup to charge a base price based on the |
I'd suggest editing the title of this issue to something more specific to the issue at hand. |
As I've thought about it more, I agree that's probably the case and it is just a minor tweak to the calculation that's not programmed.
Yes, we used the same pricing setup/structure under the previous system as well without issue.
Done, thanks. |
Really this is a "we need to redesign how pricing works" issue that is much larger than this particular issue |
Describe the bug
When using "Price by Ranges" and that pricing condition does not include Distance or Weight, the pricing does not accurately take into account the "above xx km/kg" portion of the string, and instead calculates every interval below that as negative.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Even is a distance or weight condition isn't selected as one of the conditions, "Price by ranges" should always take into account the "above x kg/km" and only calculate when the kg/km is higher than specified.
Desktop (please complete the following information):
Additional context
The "above" portion of the string does seem to calculate correctly if you do not have a corresponding Distance or Weight condition chosen.
The text was updated successfully, but these errors were encountered: