Re: Ofbiz Promotions

2011-09-22 Thread pierre.gaudin
Hi On 22/09/2011 07:44, deb.pa...@tcs.com wrote: Hello All, I have started exploring the Promo, Section but could not find the solution for below case.I am trying to implement the below case in Promotions. I reckon this may have been addressed or already existent. Case Study1:For every 2

Re: Ofbiz Promotions

2011-09-22 Thread deb . panda
Thanks for the prompt response... I already tried emptying the Use Limit per Order. Even for 4 products, it gives only 1 qty of gift rather that 2. I am working on the Stable version... Just walking through the condition, If we keep the below condition, :X quantity of product is greater than 2

Service to Empty an Entity?

2011-09-22 Thread Sam Hamilton
Hi, Can anyone point me in the direction of an example of a service that would empty the all the data from an entity, I know how to do this in Postgres with 'delete from entity_name_goes_here' but not sure where to start looking for a similar feature in OFBiz? Thanks Sam smime.p7s

Re: Ofbiz Promotions

2011-09-22 Thread deb . panda
Correction below on the conditon The condition is X quantity of product is greater than or equal to 2 My query is how is the system going to calculate BASED ON THE ABOVE CONDN, multiples of 2. Even if 4,6,8 quantites are there in the cart, it would give only 1 gift... how do I apply multiples

Re: Service to Empty an Entity?

2011-09-22 Thread David E Jones
You can do a delegator.removeByCondition with a null condition (should work, haven't tried it), or the equivalent in simple-method. There is also a delegator.removeAll(entityName) method… looks like just the dangerous sort of operation you seek. -David On Sep 22, 2011, at 12:24 AM, Sam

Re: Ofbiz Promotions

2011-09-22 Thread David E Jones
Did you try X Quantity of Product == 2? Also, make sure you have enough of the GWP Product in stock. -David On Sep 22, 2011, at 12:28 AM, deb.pa...@tcs.com wrote: Correction below on the conditon The condition is X quantity of product is greater than or equal to 2 My query is how is the

Re: Service to Empty an Entity?

2011-09-22 Thread Sam Hamilton
Thanks David - will have a hunt around for examples of those. Cheers Sam On 22 Sep 2011, at 15:24, Sam Hamilton wrote: Hi, Can anyone point me in the direction of an example of a service that would empty the all the data from an entity, I know how to do this in Postgres with 'delete

Re: Ofbiz Promotions

2011-09-22 Thread Mukesh
Currently the system is not supported the multiples of in actions based on the condition for such kind of promotion, you will have to customize the code or you can add the multiple conditions/actions like this, Cond1 : X quantity of product is greater than or equal to 2 X quantity of

Re: Product pricing and info

2011-09-22 Thread Tim Stoel
What specifically were you interested in? Thanks, Tim Stoel From: Jennifer Liddell jenniferlidd...@shellfab.com Reply-To: user@ofbiz.apache.org user@ofbiz.apache.org Date: Thu, 22 Sep 2011 12:30:51 -0400 To: user@ofbiz.apache.org user@ofbiz.apache.org Subject: Product pricing and info