Login  Register

Re: Promo items

Posted by Adam Heath-2 on Apr 29, 2010; 6:31pm
URL: http://ofbiz.116.s1.nabble.com/Promo-items-tp2073637p2076013.html

Robert Morley wrote:
> We have not implemented promos to date, but can you comment on how the
> promo adjustments would be created for a quantity like 1.542?  I would
> agree rhat having a single adjustment for the order item line (per
> promo) would make the most sense.

You misunderstand.  Add stock for 5000 items for a PROMO_GWP.  Add
enough stock for the parent item too.  Then add a quantity of 'two
thousand' on the original product.  Watch ofbiz fall over.

I think you are interpetting the ',' as a '.'.

>
> Bob
>
> On 2010-04-28, at 1:16 PM, Ean Schuessler <[hidden email]> wrote:
>
>> The OFBiz promo code processes product quantities as singletons. If a
>> large quantity of an item is added to the cart (ie. 2,000) and there is
>> a promo for that product then the result is both a large quantity of
>> promo adjustments as well as a long processing time for the cart. For
>> some industries large order quantities are perfectly reasonable but the
>> current OFBiz design will fail.
>>
>> Does anyone have any perspective on this issue? One possible solution
>> would be to remove the part of the promo design that reduces promo items
>> to singletons. I realize that introduces other challenges but they seem
>> to be deterministic. The singleton processing approach seems like an
>> effort to keep the implementation simple.
>>
>> --
>> Ean Schuessler, CTO
>> [hidden email]
>> 214-720-0700 x 315
>> Brainfood, Inc.
>> http://www.brainfood.com
>>