Skip to main content

Cart Price Rule Vs Catalog Price Rule in Magento2

Catalog and Cart Price Rules in Magento2




Magento2 provides different ways to showcase the promotions on your store. It can be for managing discounts, free shipping, coupon codes discounts etc. 


In this tutorial, we are going to discuss Magento2 promotions - Cart price rules and Catalog price rules


Cart price rule vs Catalog price rule


Catalog price rule


Catalog price rules are used to apply basically a discount on the products of your store. These rules get applied to category and products pages only.  Whenever we apply a discount on a product it shows on the catalog pages with the discounted price. 


Catalog price rules auto applied to those products which meets the condition of the rule. As if we have applied a 10% discount on women’s category then it will be auto applied to all the products of that particular category.  Catalog price rule already gets applied before adding a product to the cart. 


We can add catalog price rules under Marketing > Promotions > Catalog price rule. 


We can add the new rule by clicking Add new rule


To create a new rule we have to fill these fields according to our requirements, 

 

Role Name will be the name of the role. 

Description defines the description of the role. 

Status is used to set that this rule is active or not. 

Websites are used to choose the website on which you want to apply this rule. 

Customer Group is to choose the customer groups on which the rule will be applied. 



From - To is to set the period of the rule when it will be active. 

Priority is used to set the priority of rule among different rules, the lower the number, then higher the priority. 1 will be applied before 2.

Conditions - This section is used to set the conditions of the rule. There are multiple options to apply. 

  • If we’ll select ALL of these conditions then all the conditions under the one condition have to be true to apply the rule and if we select ANY  then from 2-3 conditions if there is even one condition that matches the product then the rule will be applied to that product. 

  • We can also choose that all the conditions should be TRUE or FALSE to apply to rule. 

  • We can combine different conditions using the Conditions combination. 

  • We can apply discounts on the basis of price, SKU, category, attribute etc. 

Action is used to decide how the price should be applied. 

  • We can apply a discount on the final price percentage, final price to discount value, as percentage of original etc. 












Cart Price Rule


As it says, the promotion will be applied to the shopping cart page of your store. Cart price rule applies whenever a customer goes to the shopping cart page to checkout or the customer will apply the coupon code on the shopping cart page.Using cart price rule we can apply discount on products,  we can provide free shipping and buy-one-get-one free promotions.   


Cart price rule applied after adding product to the cart. The discount shows up after subtotal on the shopping cart page. Bothe the rules have some basic configurations same but cart price rules also have some advanced configurations for free shipping, coupon codes etc.

 Let's discuss the configurations of cart price rules. 



Here we have the same basic configurations like cart price rules. 


In the cart price rule we can also add the coupon codes. 

We have to mention the coupon code or if we want to generate coupon codes we can select Use Auto Generation.

Set Coupon quantity that how much you want to generate. 



Using Apply dropdown we can select different ways to apply the discount and also buy one get one free. 

We can also apply free shipping to products using the conditions section. 


Manage coupons is used whenever we auto generate the coupons then we can manage those with this section.



If we don’t apply any condition in the cart or catalog price rule. The rule will be applied to all the products. 


Save and Apply Rule


After creating the rule you have to save the rule and then click on Apply rule to apply the rule on your store.

Comments

Popular posts from this blog

Magento2 CLI

Magento2 CLI  Back after a long break! Starting again with this blog because I found it the most important to understand if we are doing the magento development as magento commands play the most important role here. It really helps us a lot if we know that lĺwhich command we need to run on this action or after any changes.  Let’s start with the basic commands that we use a lot of times during our development.  cache:clean or cache:flush php bin/magento cache:clean Or  php bin/magento  cache:flush Both of these commands are used to clean the cache of Magento2 so that your new changes can be reflected to your store.  Using cache:clean it deletes all the enabled cache of magento2. Disabled caches are not affected with cache:clean but if you are doing cache:flush then it purges all the cache storage of magento wherever its enabled or disabled or it even deletes all the third party cache along with the magento cache.  If you are doing any changes in admin configuration, layout xml file, u

How EAV Model Works in Magento2?

                         How EAV Model Works in Magento2?  EAV Model stands for Entity-Attribute-Value is a very important concept of magento2 to understand how the attributes of entities are stored and works in magento2.  EAV Model is described as :-  Entity - Entity refers to the data items such as customers,orders,catalog,category etc.  Attribute - Attributes of the entities like price is an attribute of the product(entity) is referred here is an attribute. Value - A value of the attribute as $20 is a value for price attribute is referred here is a value.  Use of EAV Model EAV(Entity-Attribute-Value) is used to create new attributes of entities such as products, categories etc. With the use of eav models we don’t need to change the structure of the core tables of attributes thus it increases the scalability of the system.  Let’s have a look at how eav works in Magento2 -  Eav model used many several tables to store the data of the entity attributes. The top most table for the e

Plugins in Magento2

Plugins in Magento2 Unlike Magento1, Magento2 introduces a whole new concept of Plugins or Interceptor. A plugin or interceptor is used to change the behaviour of the method of any class without affecting the actual class. This is a very powerful way to customize the core classes of Magento2.  Plugins are one of the customization methods in Magento2. In plugins, there is a design pattern called “Interception” which means “Inserting code dynamically without changing original class behaviour” and this is what plugins exactly do in Magento2. Plugins modify the behaviour of a plugin class function by intercepting a function call and adding code before, after and around that function’s call.  Plugins are used with public methods only.  Declaring Plugins To declare plugins in Magento2, we have to create di.xml according to the specific area.  Create di.xml inside Vendor/Module/etc for global.   < config >     < type name = "{ObservedType}" >       < plugin name