[OFBiz] Users - Promos: PPIP_PRODUCT_QUANT forces PPC_EQ
Ashish Hareet
Ashish.Hareet at cpbinc.com
Tue Jun 28 15:00:38 EDT 2005
David,
Just the reason I was looking for. I knew, some big reason exists,
wasn't sure what though. Thanks for clearing that up.
Si,
Although your suggestions is what needs to be achieved, the existing promos framework is
well suited for tiered pricing. We don't need any new screens or such, just add some code.
Assume that we have a condition - TIER_PRODUCT_QUANT - that honors the user
selected operator & does not consume the qualifying products/quantities/amounts, etc.
All you'd have to do is define each tiers as individual rules with associated actions
Rule 1: qty >= 1 && qty <= 5
Rule 2: qty >= 6 && qty <= 10
.....
And we can let the OfBiz code take care of the actions. AFAIK, the only place a code
change is required would be in ProductPromoWorker.checkCondition.
Thanks for your feedback(David & Si)
Ashish Hareet
-----David Wrote-----
Before getting into this too much, you may want to consider what it
would mean to have anything other than equals for this... For
example, if it was greater than a certain amount then and it
"consumed" the qualifying amount then you would consume everything...
In other words, this implies that quantity or greater, but it only
consumes the given quantity...
Adding flexibility is fine, but it helps if it has meaning, and in
this case I'm not sure what that would be.
-David
More information about the Users
mailing list