Discussions

Rules subtotal Discount only when specific SKUs are in cart

Can someone point me in the right direction?

I have read and watched Randy's videos here.
http://www.drupalcommerce.org/node/461

What I want to do is a little different though.
I want subtract an amount from the subtotal only if specific SKUs are in the cart.

For example 3 items that are $100 each total $300, but show a discount of $50 applied on a "Discount" line above the total of $250.

I found the way to apply a Tax or VAT as a percentage, but how can I do a flat amount?

I am trying to read through all the various things on here and can't find anything yet.

Jeff

Posted: Mar 27, 2012

Comments

Jeff Purtle on March 27, 2012

I have this almost done now using the following for Rules:

Event:
Calculating the sell price of a product

Conditions:
Order contains a particular product
Parameter:
Order: [commerce-line-item:order], Product SKU:
I entered the three SKUs with a quantity set for >= 1.

Actions:
This where I am stuck. I want to subtract from the total and not from the unit price.
I want it show the subtotal, then a line below it with the discount amount, then the total.

How do I do that?