Quantity Discounts For Single Line Items

I'm having trouble attempting to configure a discount for a client. The client wants to apply an item-level discount (in the form of X% off the item) if the customer buys Y quantity of that item. For example, if I have 4 or more of any item in my basket, I will get 10% off those items. The only way to set this up seems to be to select "Any Product" from both the Buy and Award dropdowns. However, in doing that, the discount will also apply to someone buying 1 each of 4 different line items/products, which is what the client does not want to happen.

This seems like a straightforward discount concept, but I can't find a way in the Marketing Manager to get it to apply correctly.

If anyone has set this type of discount up before and knows the right combination of options to use, I'd greatly appreciate it. Also, if someone from Microsoft knows anything about whether this kind of discount is possible, that would be very helpful as well. I saw a previous thread (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1264914&SiteID=1) that was very similar to what I described above, and it seemed like the answer from Microsoft was leaning towards the idea that it's not possible in this release.

Thank you.

[1731 byte] By [RobWright] at [2008-1-9]
# 1

I haven't tested this but you might want to try the following:
Create a simple discount called it test or something and set the following properties:
Buy (Product): "X"
Minimum: Quantity = 1
Receive (award): "X"
Get: Percentage off = 10
Award Limit: 4
Then set a targeting context "Quantity of four". In the Marketing Manager create an expression on the Quantity and assign it to the discount test and set it's value to 4. Create a pipeline component and iterate through the line items and if the quantity is set to four then set the targeting context "Quantity of four" to 4.
One caveat is that you will not be able to use the "Any Product" as the buy condition.
Good luck,
-Max

MaxAkbar at 2007-10-2 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 2

I see where you're going with that, but here's the problem... the client does not want to have to specify a product or list of products for the buy or award conditions. The idea is that it would just be a simple discount to reward customers who buy a larger quantity of an item, regardless of what that item is.

So are you confirming what I was afraid of: that the discount system doesn't support this type of discount without specifying products?

Thanks for getting back to me, Max!

RobWright at 2007-10-2 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 3

Max got me thinking. You could create a product property called "QuantityInBasket". Then write a custom pipeline component to at the end of the ProductInfo section to populate that property correctly. Your Condition and Award expressions could target QuantityInBasket directly.

You could still run into some issues around "Buy 4 get 10% off" and if you buy 6 A and 6 B, should you get 10% on everything?Or just the first 4A and 4B. But hopefully this will get you started.

-David

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

David,

Well, she ain't perty, but she gets the job done. Your solution worked.

Thanks to both you and Max for pointing me in the right direction. Any chance that discount situations like this could be seen in a future service pack or version of Commerce Server? Smile

You guys rock! Thanks again!

-Rob

RobWright at 2007-10-2 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 5

Rob,

Changing the discount engine probably won't happen in an SP - espeically if there is a workaround. But this is a scenario we'll look at closer in future releases. Glad you got it working - I'm sure others would appreciate it if you wrote up your solution in a blog or posted it here Smile

-David

DavidLott-MSFT at 2007-10-2 > top of Msdn Tech,Commerce Server,Commerce Server 2007...