Categories

Featured templates

Magento 2. How to create and manage cart price rules

Roger Cunningham February 7, 2017
Rating: 5.0/5. From 4 votes.
Please wait...

Cart price rules can be used to apply discounts to items in the shopping cart based on a particular set of conditions. Discounts are applied automatically as soon as the specified condition has been met or the valid coupon code has been entered.

The status of the rules can be changed or applied to a specific date range.

Let’s add a new rule:

Step 1:Adding New Rule

  1. On the left sidebar, tap Marketing, under Promotions pick the Cart Price Rules, and, on the top right corner, click Add New Rule;

    magento_2._how_to_create_and_manage_cart_price_rules
    • The configurations include the following options: Rule Information, Conditions, Actions, Labels;

      magento_2._how_to_create_and_manage_cart_price_rules_2
  2. Under the Rule Information, give your rule a name and put some description if necessary;

  3. The rule can remain in an inactive status while it is being created. If the status Active is set to YES, the rule will go into activity immediately;

  4. Establish the scope for the rule, e.g. specify the website (if you are running multistore) and customer group;

    • Select a Website for which the promotion should be activated;

    • Specify the customer group the discount applies to. In case you would like the promotion to work only for the registered customers, leave "NOT LOGGED IN" option unselected;

  5. Magento allows Coupon Association with the promotion rule. To assign a coupon code to the rule, set Coupon option to "Specific Coupon" and do the following:

    • Insert a numeric/alphanumeric or alphabetical coupon code which customer later uses during the checkout to receive a discount. Enable Use Auto Generation checkbox to publish multiple coupon codes once the rule is saved;

    • Determine the number of times the coupon can be used:

      • Uses per Coupon field specifies the number of times the coupon can be used before expiration. Leave the field blank if there is no limit;

      • Uses per Customer field specifies the number of times the coupon code can be used by one single registered customer who belongs to the selected customer group above. The setting does not apply to guest customers who belong to the "NOT LOGGED IN" customer group. Leave the field blank if there is no limit;

      Learn more about Coupons below.

  6. The calendar fields can be used to determine From and To date range for the discount;

  7. Set the priority for the rule in relation to other Active cart rules. Number 1 is the highest priority;

  8. Include the rule into the listings of Public RSS by setting option to YES;

    magento_2._how_to_create_and_manage_cart_price_rules_3
  9. Click Save and Continue.

Step 2:Define Conditions

This step describes how to configure the conditions for the rule. The order is qualified for the promotion once the set of conditions are met.

  1. Click Conditions tab on the left. You will see a default statement:

     If ALL of these conditions are TRUE : 

    The statement has two bold links, which have a set of options for that part of the condition.

    • Click ALL link and select ALL or ANY option;

    • Click TRUE link and select TRUE or FALSE option;

    • Leave the condition unchanged if you would like to apply the rule to all products.

  2. Click Add, small + sign appearing on the left, the new field "Choose a condition to add" will show up prompting to complete a condition; magento_2._how_to_create_and_manage_cart_price_rules_4

    Conditions for the promotions can be based on Regional Price Rules and Shopping Cart Totals cart attributes ;

    The following attributes can be used to create regional price rules:

    • Shipping Post Code;

    • Shipping Region;

    • Shipping State/Province;

    • Shipping Country;

    The rules can be based on Shopping Cart Totals by using the following attributes:

    • Subtotal;

    • Total Items Quantity;

    • Total Weight;

    magento_2._how_to_create_and_manage_cart_price_rules_5

    The rules can also be assigned to specific product categories, attributes or attribute sets. Let’s complete a condition and qualify a product category for a discount;

    • Choose Product Subselection from the select menu;

    • On the first part of the condition, click "more" (...) link to specify the number of items followed by the logical operator tool, e.g. is, is not, equals or less than, etc;

      magento_2._how_to_create_and_manage_cart_price_rules_6
    • Click Add, small + sign to complete the condition that is based on Category;

      • Choose Category under Product Attribute menu;

      • Click "more" (...) link to display input field, then click Chooser icon to display category tree;

        magento_2._how_to_create_and_manage_cart_price_rules_7
      • Mark the category checkbox you would like to use as a condition for cart price rule. The condition can be based on any product category that is a child of store’s Root Category;

    • Select attribute to base the condition on product attributes ;

      Note! Use for Promo Rule Conditions option must be set to YES for specific attribute in Stores/Attributes/Product/<your_attribute>/Storefront Properties to make the attribute appear under attribute selection.

      magento_2._how_to_create_and_manage_cart_price_rules_8
  3. The process can be repeated as many times as needed to describe the condition for the promotion qualification;

  4. Click Save and Continue.

Step 3: Set Actions

  1. The action configurations describe how exactly the prices are updated once the conditions are met. Set Apply to one of the following options to determine the type of calculation that is applied to the purchase:

    Percent of the product price discount:

    The cart total price is updated by substracting a specified percentage of the original price. The discount will apply to each individual item in the cart that is qualifying for a promotion;

    Fixed amount discount:

    The cart total price is updated by substracting a fixed discount amount. The discount will apply to each individual item in the cart that is qualifying for a promotion;

    Fixed amount discount for whole cart:

    Discounts the entire cart total by substracting a percentage value;

    Buy X get Y free:

    Defines a specific total quantity the shopper must purchase (X) to receive another quantity (Y) free of charge ;

  2. Enter numeric discount amount without units;

  3. In the Maximum Qty Discount is Applied To field, insert the value which defines the maximum quantity of the same product which can qualify for a discount in the same purchase;

  4. Specify the total in Buy X get Y Free field the customer must purchase to qualify for a promotion;

  5. Set Apply to Shipping Amount option to YES to substract the discount from both Cart Subtotal and Shipping Amounts;

  6. Enable Discard Subsequent Rules option to prevent customers from receiving multiple discounts for the same product;

  7. Enable Free Shipping for the condition:

    No:

    Free shipping option unavailable;

    For matching items only:

    Free shipping option is available only for the items which match the conditions specified in the rule;

    For shipment with matching items:

    Free shipping available for any shipment method that ships matching items;

    magento_2._how_to_create_and_manage_cart_price_rules_9
  8. Click Save and Continue.

Step 4: Labels

The label of the rule can be specified for both All Store Views and each individual store. The label appears on the shopping cart page below subtotal. Labels are used to identify the discount.

  1. Scroll down to Labels and click arrow-down icon to expand the section;

  2. Enter the label text into Default Rule Label for All Store Views;

  3. If you are running multiple stores, enter the label text for each individual store under Store View Specific Labels;

    magento_2._how_to_create_and_manage_cart_price_rules_1.0
  4. Click Save.

Managing Coupons

This field is accessible only if cart rule has been saved and Use Auto Generation option is enabled under primary Rule Information area. Tap Manage Coupon Codes section to expand.

You will now have access to advanced configurations of Coupon Codes.

  1. Specify the number of coupons in Coupon Qty field;

  2. Specify the number of characters in Code Length field;

  3. Select Code Format:

    Alphanumeric:

    Consists of both letters and numerals;

    Alphabetical:

    Consists of letters only;

    Numeric:

    Consists of numerals only;

  4. Specify Code Prefix and Code Suffix to be added at the beginning and at the end of the code. These fields are optional;

  5. Specify the number of characters separated by dash character in Dash Every X Characters. The option makes the code easier to read;

    magento_2._how_to_create_and_manage_cart_price_rules_1.1
  6. Tap Generate button. Magento will generate a list of codes which will appear below.

    magento_2._how_to_create_and_manage_cart_price_rules_1.2

We suggest that you have Magento cache temporarily disabled or refreshed once the rule has been created and applied. Refer to the following link to learn how to manage Magento 2 cache.

Feel free to check the detailed video tutorial below:

Magento 2. How to create and manage cart price rules

And don’t forget to browse our brand new Magento Templates that extend the functionality of your website.

Ecommerce Themes for Magento
This entry was posted in Magento Tutorials and tagged cart, magento2, price, rules. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket