10 Real World Examples of Shopping Cart Price Rules

“Well I don’t really need this now, but I don’t want to miss this sale!”

Have you ever said this before? Probably. Most people have. If a product is on sale, a person is more likely to purchase something because “look how much I’m saving on it! What a steal!“. Magento‘s shopping cart price rules support a variety of different sale scenarios designed to impress your customers and boost your sales.

In this post, I’ll go over 10 real world examples of shopping cart price rules in order to explain the functionality behind creating sale campaigns in Magento. Much of it consists of standard “IF” logic, but don’t worry, it’s spelled out in plain English, so programming experience is not necessary. IF you can read this sentence THEN you will be able to create a shopping cart price rule. I’ll break down each rule into the sections “Rule Information”, “Conditions”, and “Actions”.

These components represent the different sections seen while editing each rule in Magento’s backend. “Rule Information” is where you specify Rule Name and Description, whether or not the rule requires a specific coupon code or not, date range the rule applies to, and how many times a customer can use the rule and how many times the rule can be used in total. “Conditions” is where you specify whether or not a rule will apply to the cart at all. “Actions” is where you specify the details of how the sale will be applied, including which products in the cart the sale will apply to. It is important to note that Magento will process each product in the cart individually to determine its sale eligibility.

Before we jump into shopping cart price rules, take your eCommerce store to the next level by downloading our free eBook with all the Magento Transactional emails:





Download ebook: Magento Transactional Emails





#1. “Free shipping for cart over $50”

CONDITIONS:

Clicking on the green plus signs, open up a variety of options for you to create your sale logic. For this example, we want to apply the rule only if the cart total is equal to or greater than $50. The statement we want to create would look like this:

if ALL of these conditions are TRUE:
Subtotal equals or greater than $50

The underlined fields can be clicked on and edited that way.

ACTIONS:

The only field we need to change in here is “Free Shipping”, which we will set to “For matching items only”. Simple!

2. Buy 1 Get 1 Free (for products in a specific category)

CONDITIONS

For this one, we will be creating a product sub-selection in order to only apply the rule if the correct number of products from a given category are in the cart.

If ALL of these conditions are TRUE:
If total quantity is 2 for a sub-selection of the items in cart matching ALL of these conditions

Category is [SELECT CATEGORY FROM LIST]

ACTIONS

For the apply field we’ll be using “Buy X get Y Free (discount amount is Y)”. Now we just need to set the “Discount Amount” to 1 and the “Discount Qty Step (Buy X) to 1. As you can see, the statement would then read as Buy 1 get 1 Free. Very straight forward. Then for the bottom section we will need to set up another IF statement in order to specify which products we are going to be apply the sale to.

if ALL of these conditions are true:
Category is [SELECT CATEGORY FROM LIST]

If you click on the list graphic, you can select from the list of categories in your store.

3. 20 % OFF (certain SKUs)

ACTIONS

The function we need to apply is “Percent of product price amount” and the discount amount is “20”. The rule application logic we need here is:

If ALL of these conditions are TRUE:
SKU is one of [comma,delimted,sku,list]

Like the category list, we can also click the list graphic to choose multiple SKUs. Note that we need to use “is one of” in order for the rule to apply to any of the items in the list.

4. 20% off first order – With coupon code

For this rule, you will want your store to have guest checkout disabled in order for you to ensure that each customer can only redeem this promotion once.

RULE INFORMATION:

In the “Coupon” drop-down, select “Specific Coupon” in order for the coupon code option to show up. Whatever you enter into the “Coupon Code” field, the customer will need to enter on the cart page in order to apply the coupon. Lastly for this section, we need to set the Uses per Customer field to 1.

ACTIONS:

The actions here are rather straightforward: Apply needs to be set to “Percent of product price discount” and Discount Amount 20%.

5. 10% Off Entire Store (excluding certain categories)

ACTIONS:

Apply: Percent of product price discount, and Discount Amount: 10.

If ALL of these conditions are TRUE:
Category is not [SELECT CATREGORY FROM LIST]

6. $10 Off Products of a Certain Colour

This could be useful if you wanted to have a Saint Patrick’s day sale and apply a discount to all your site’s green clothing. Although you could also use this same setup for any drop-down attribute for a product.

First we would need to make sure that the attribute is set to show up in promotion rules. To turn this on, we need to go to Catalog > Attributes > Manage Attributes. Select the attribute and set “Use for promo rule conditions” to yes, and save the attribute.

ACTIONS:

Apply: Fixed amount Discount, Discount Amount: 10 and

If ALL of these conditions are TRUE:
Color is [SELECT COLOR VALUE FROM DROPDOWN]

7. $10 Off Whole Cart (including shipping) When Purchasing Promo Item

CONDITIONS:

If ALL of these conditions are TRUE:
If an item is FOUND in the cart with ALL of these conditions true:
SKU is one of [comma,delimted,sku,list]

ACTIONS:

Apply: Fixed amount discount for whole cart, Discount Amount: 10, Apply to shipping amount: Yes.

8. Free Shipping for Specific Provinces

CONDITIONS

For specific Postal Codes:

If ALL of these conditions are TRUE:
Shipping Postcode is one of [comma,delimited,postalcode,list]

Or in a more general case, for specific states or provinces:

If ANY of these conditions are TRUE:
Shipping State/Province is [SELECT STATE/PROVINCE FROM LIST]

We aren’t able to use the “is one of” logic on the above, so if we change the “ALL” to an “ANY” in the opening statement, we can repeat the second line as many
times as we need to for different regions.

9. Free Shipping for Credit Card Transactions

CONDITIONS:

If ALL of these conditions are TRUE:
Payment Method is Credit Card

10. Buy 2 SKUs get 1 of the SKUs 10% Off – Limit to 1 Product Receiving Discount – Specific Customer Segment

First a customer segment needs to be created, by going to Customers > Customer Segments and clicking “Add Segment”. For this example, lets create a segment for customers in a specific customer group. Similar to the shopping cart rule set up, under Conditions, we can create:

if ALL of these conditions are TRUE:
Customer Group is [SELECT CUSTOMER GROUP FROM LIST]

Once we save the segment we can set up our rule.

CONDITIONS:

If ALL of these conditions are TRUE:
If total quantity is 2 for a sub-selection of items in cart matching ALL of these conditions
SKU is one of [comma,delimted,sku,list] if Customer Segment matches [CUSTOMER SEGMENT ID]

ACTIONS:

Apply: Percent of product price discount, Discount Amount: 10, Maximum Qty Discount is applied to: 1 and

If ALL of these conditions are TRUE:
SKU is one of [comma,delimted,sku,list]

There you go. It’s that easy. Now you have no excuse; go make some sales and make money!