I am sure others have done something similar to this so hopefully someone with more knowledge responds.
This is just off the top of my head, but Take a look at the following entities: visit, visitor, userLoginHistory, RecurrenceRule, and RecurrenceInfo, and the other price/promo entities Perhaps you will need an EECA on the userLoginHistory or visitor entity with a service that determines the uniqueness of a userLogin(looks at a window of logins...don't want the same customer logging in and out over and over to get the promo). This attribute is stored in the session. You can customize the promo java events so that this attribute is used at if the productpromorule and related entities require it. -CJ that looks in the qualifies(unique userLogin per X amount of visits or userLogins...etc..don't want the same customer logging in and out over and over to get the promo) to receive the promotion. Then you would have to customize the promotion event code/etc. It actually sounds like a really good promo feature to have. ian tabangay-2 wrote: > > Hi. > I would like to ask for suggestions on how I could define the following > product promotions on ofbiz: > > Give product A to every nth customer. Otherwise, give them product B > > Examples: > - Give a free gallon of ice cream for every 10th customer and a box of > cones for the others > - Give a 20% discount for every 20th customer and a raffle coupon for the > others for every $100 worth of sales > > Another variation of this type of promo would be: > > Give product A to the nth customer every x hours > > Example: > - Give a free ice cream for the first customer after every hour > > Thanks in advance. > > > ~ ian > > -- View this message in context: http://www.nabble.com/Question-on-how-to-do-this-in-Product-Promo-tp22509822p22526900.html Sent from the OFBiz - User mailing list archive at Nabble.com.
