• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Business rules and filtering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Business rules and filtering


  • Subject: Re: Business rules and filtering
  • From: Maik Musall <email@hidden>
  • Date: Thu, 14 Feb 2013 13:52:46 +0100

Am 14.02.2013 um 13:38 schrieb Pascal Robert <email@hidden>:

> 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Business rules and filtering
      • From: Pascal Robert <email@hidden>
References: 
 >Business rules and filtering (From: Pascal Robert <email@hidden>)

  • Prev by Date: Business rules and filtering
  • Next by Date: Re: Business rules and filtering
  • Previous by thread: Business rules and filtering
  • Next by thread: Re: Business rules and filtering
  • Index(es):
    • Date
    • Thread