Admin can set Variation discount on the product variation.
Note: Please read this documentation carefully because implementation of this rule is slightly different from other Discount rules. Pay attention to the “Offer Name” because of this name admin can apply the rule on the selected Variable Product as we discuss below.
For making this discount rule select Discount Rules tab.
Now choose Variation Rules.
Now click on Add New Rule .
Make rules according to your choice.
Fill the Rule, Restrictions, and Validity tabs accordingly.
This rule can be shown in the table and also it can be editable by clicking on the plus sign on the column of Rule no of each rule row. After clicking you are able to see the Actions buttons for EDIT and DELETE a rule as given below image.
Now you have to give permission to your rule to give a discount on the product you have chosen.
Click on the Setting Tab.
Check the Variation Rule as shown below.
After checking these rules, Choose among First Match Rule, Best Match Rule, or All Match Rule and click the Save Rule button to implement the rule on the admin site as given image below.
Till here you created the variation discount rule. For the selection of the variable product you have to go to the product panel and use the filter for the variable product, after applying the filter you get the list of variable products then click on the edit button to which you want to apply the discount as shown in the image below.
After this, you have to click on the variation tab and then on edit to expand the selected product.
Now select the shortcode (i.e. [VARIATON] ) which is the same name as the offer name when you created the rule.
Here all the rules are listed in the form of a shortcode in Available Rules, apply the shortcode in the Product Variation Offer field to give a discount on that variable product as shown in the figure below.
The discount can be shown in the cart if the products are added to the cart as in the given picture below.
Now whenever you want to disable this discount rule, you don’t have to delete it, just go to Setting Tab and uncheck this rule.