How to calcualte Multiple Product discount and Order header level discount?

Hi,

Does anyone know how to set up a discount to use a set of products existing in the basket as a condition for a discount? Let me explain using.

PsuedoCode:

===========
These products must all be in the basket:
302556
302557
302558
302698

For the shopper to receive an order-level discount of 10 $
=========================================

I've examined the documentation and cannot figure out a way to do this. I'm sure that Commerce Server must be able to do it. I am doing it by using Codition Expression (Catalog Expresssion).

IF productid = 302556 AND
productid = 302557 AND
productid = 302558 AND
productid = 302698

But this seems to try to apply to each line item, and as each line item only ever has one productid. it never applies.

I also want some help "How to calculate Order Level discount" for this.

[2072 byte] By [SachinSaxena] at [2008-2-11]
# 1

Hi Sachin,

As you note, a Condition Expression is evaluated for each line item so you can't use ANDs. A common solution I've seen to work around this issue is to use custom code to set a profile property when all of the items are in the basket. You can then use the custom profile property as an eligibility requirement for your discount.

Thanks,
David

DavidLott-MSFT at 2007-9-4 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 2

Hi Sachin,

You may also want to explore Cris' bundling solution and see if it can be adapted to your needs: http://blogs.msdn.com/crisag/archive/2006/09/13/An-Approach-to-Implement-Combos-with-Commerce-Server-2007.aspx

Thanks,
David

DavidLott-MSFT at 2007-9-4 > top of Msdn Tech,Commerce Server,Commerce Server 2007...