Am 14.02.2013 um 13:38 schrieb Pascal Robert <[email protected]>: > Hi guys, > > In a shopping cart, how would you apply discount based on business rules? For > example, if someone buy a quantity of 3 of the same item, you apply discount > X, or if an item is ordered before a certain date, you apply discount Y. > Yes, I can do that all in code, but that's not very flexible. > > Any ideas?
Add an abstraction layer for shopping cart items and add virtual items to the cart that contain the calculated rebate? Maik _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
