ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David E. Jones" <jone...@hotwaxmedia.com>
Subject Re: Help to set up a promotion
Date Thu, 01 Mar 2007 18:10:37 GMT

If such a rule concerns more than a single product, you can't use  
price rules.

Just remember: price rules happen pre-cart, promotions happen in-cart  
(using all items in the cart, and are totally recalculated when the  
cart changes).

-David


On Mar 1, 2007, at 10:04 AM, Jacques Le Roux wrote:

> Jacopo,
>
> Quick answer : perhaps as it concerns products and not order you  
> should
> better use prices rules ?
>
> Jacques
>
> ----- Original Message -----
> From: "Jacopo Cappellato" <tiz@sastau.it>
> To: <user@ofbiz.apache.org>
> Sent: Thursday, March 01, 2007 3:08 PM
> Subject: Help to set up a promotion
>
>
>> Hi all,
>>
>> I'm having hard time to set up the following promotion:
>>
>> "If product A and product B are to the cart, then apply a 20%  
>> discount
>> to product A and a 20% discount to product B"
>>
>> Example:
>> product A: unit price $100
>> product B: unit price $200
>>
>> if they are both added to the cart:
>> product A: unit price $100, adjustment $20, line amount = $80
>> product B: unit price $200, adjustment $40, line amount = $160
>>
>>
>> I tried to implement it with one promo with two conditions:
>>
>> cond 1: "X Quantity of Product", "Is", quantity=1 for "Rule  
>> Product"=A
>> cond 2: "X Quantity of Product", "Is", quantity=1 for "Rule  
>> Product"=B
>>
>> and one action:
>>
>> action: "X Product For Y% Discount", quantity=1, amount=20 for  
>> "Action
>> Product"=A,B
>>
>> The problem is that:
>>
>> a) the above promotion is never applied
>> b) if I use one condition (instead of the two above) the 20% discount
> is
>> applied to one of the product only and the amount is then splitted  
>> and
>> assigned to the two items in the cart!!!
>>
>> Here is an example of it:
>>
> https://demo.hotwaxmedia.com/catalog/control/EditProductPromo? 
> productPromoId=10000
>>
>> You can test it by creating an order and adding product "A" and  
>> "B" to
>> the cart.
>>
>> I've also tried to setup two different actions or to setup two
> different
>> promotions with the same rules but one action each (one for A, and  
>> one
>> for B), but without success.
>>
>> Any hints?
>>
>> Thanks,
>>
>> Jacopo
>


Mime
View raw message