Magento 2 Special Promotions: For an e-commerce business to flourish, it is quite necessary to inculcate effective marketing strategies which lay a strong influence on the customers.
Having said this, promotions and are one of the most renowned marketing strategies which are known to generate good traffic and real sales for an E-Commerce site.
Thorugh Magento 2 Special Promotions, the admin of the site can allow 16 special promotion rules such as “The Cheapest, also for Buy 1 get 1 free”, “Most Expensive”, “Get $Y for each $X Spent” etc.
These promotion rules or actions are applicable to both cheapest and expensive items in the form of fixed or percentage discounts.
As customers are more inclined to the online site which offer discounts, therefore, this module will help increase customer traffic for a site.
It shall also help promote the business amongst the customers thereby increasing the sales conversions for the site.
- The user must ensure that all the rules are inactive if the module is being disabled.
- The admin of a store has the leverage to allow additional promotion rules.
- The promotions are applicable to both the cheapest or most expensive items.
- These promotions are in the form of fixed or percentage discounts.
- The discounts can be applied to the products in the form of coupons.
- The admin can create promotions for group items as well.
- Discounts are applicable to a product set.
- The admin also allows an Each N-th discount where discount shall be applicable after the N-th item.
- This module facilitates the Buy X Get Y in its extended form.
Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder.
You need to transfer this app folder into the Magento2 root directory on the server as shown below.
After the successful installation, you have to run these commands in the Magento2 root directory.
First command – php bin/magento setup:upgrade
Second command – php bin/magento setup:di:compile
Third Command – php bin/magento setup:static-content:deploy
For translating the module language, navigate through src/app/code/Webkul/SpecialPromotions/i18n and edit the en_US.csv file.
Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.
Then upload it to the path src/app/code/Webkul/SpecialPromotions/i18n where the Magento2 is installed on the server. The module gets translated into the Arabic Language. It supports both RTL and LTR languages.
Configuration: Special Promotions
On successfully installing the module, the admin can configure the permissions for the Special Promotion Module by navigating through Stores > Configuration > Special Promotions.
Under the Skip Settings option, the admin needs to configure the following fields:
- Items with Special Price- The admin may set this field as ‘Yes’ or ‘No’ in order to skip the product with Special Price.
- Configurable Items if child Special Price- The admin may enable or disable this field so as to skip the configurable item if its child bears a special price.
- Items with Tier Price- The admin sets this field as ‘Yes’ or ‘No’ to skip the products with tier pricing.
Adding Promotional Rules
Standard Settings for all Promotions:
The admin will configure the Rule Information fields as shown in the image below. These fields are common for all the Special Promotions.
The description of the Rule Information fields are as follows:
Rule Name: The name of the Rule which the admin configures.
Description: The Description of the rule for a better understanding of the customers.
Active: The admin may set the status of the Rule as Active and or Not Active.
Websites: The admin may choose the Website.
Customer Groups: The admin may choose any or all of the given customer groups.
Coupon: The admin may add a coupon code to provide additional discounts to the customers.
Uses Per Customer: The admin may define a specific limit for the usage of the coupon, by each customer.
From and To: The validity of the coupon after which the coupon shall expire.
Priority: The admin may set the priority of the Rule.
Public in RSS Feed: The admin may enable this feed for the customers to subscribe in order to get notified about the new products or deals and offers.
Let us study the Special Promotions in detail.
The admin shall configure the Promotions under the Actions section as shown in the image below.
Action 1: The Cheapest, also for Buy 1 and Get 1 Free
The admin chooses “The Cheapest, also for Buy 1 get 1 free” which implies that the discount is applicable on the cheapest product.
- Apply: The admin chooses the Promotion Rule against the Apply field.
- Discount Amount (in %): The discount which the admin offers under The Cheapest, also for Buy 1 get 1 free promotion rule.
- Maximum Qty Discount is Applied To: The maximum quantity of items on which the discount shall apply.
- Discount Qty Step (Buy X): For instance, if the admin sets 3 against this field, the discount will apply to every third product in the cart i.e. 3, 6, 9 and so on.
- Apply to Shipping Amount: If the admin enables it, the discount will apply to the shipping amount as well.
- Discard Subsequent Rules: The admin enables this option so as to deactivate the rules with lower priority.
- Free Shipping: The Admin can set this field as No or a respective option given in the dropdown list.
- Calculate discount Based On: The admin set a base price according to which the discount is tabulated.
- Max. Amount of Discount: The maximum limit of the discount amount which shall apply to a cart.
- Skip Items with Special Price: The admin may set this option As Default, Yes, No or Skip if Discounted.
In the frontend, the customer can even opt to use the coupon code (Test 1) for any Action so as to take the leverage of the discounts which the store offers.
The action, “The Cheapest, also for Buy 1 get 1 free” will be applicable as shown in the image below.
Action 2: Most Expensive
It is similar to the “The Cheapest, also for Buy 1 get 1 free“, but the discount is applicable to the product which is most expensive in the cart. The “Most Expensive” action is effective on the item having more price or which is expensive as shown in the image below.
Action 3: Get $Y for each $X Spent.
For instance, in the image shown above, $1 is off on every $10 spent.
Buy X Get Y (X and Y are different products)
Under this promotion, the admin offers some discount on a second product (Product Y) if a customer purchases a product (Product X).
For instance, on buying a cellphone, the customer gets a 70% discount on its insurance.
Action 1: Percent Discount: Buy X get Y Free
This promotion best describes rules such as ‘Buy Yoga Mats and get Yoga Video CD on 20% discount’. The admin configures the fields as shown in the image below.
Action 2: Fixed Discount: Buy X get Y with $5 Off
In the same way as above, using the “Fixed Discount: Buy X get Y with $5 Off”, the admin allows a fixed amount of discount, unlike the percentage discount.
Action 3: Fixed Price: Buy X get Y with $7.45 Off
In a similar way, through the action, “Fixed Price: Buy X get Y with $7.45 Off” the admin configures a fixed price for Product Y, unlike the percent discount.
The “Each N-th” action implies that the discount is applicable on each n-th product present in the cart.
For instance, “Get 50% off on each 4th product” present in the cart.
Action 1: Percent Discount: each 2-nd, 4-th, 6-th with 10% Off
The admin can configure the rule, Get 10% off on each second product in the cart as shown in the image below.
This discount which implies under “Percent Discount: each 2-nd, 4-th, 6-th with 10% Off” action is applicable on the item bearing a minimum quantity of “2” because the admin defines each N-th as 2 while configuring the rule.
Let’s understand how it works.
For the product “Clamber Watch”, the customer chooses the quantity as 6 which abides by the Each N-th rule. The discount will be applicable as follows-
Initially, it picks the product “Push it Messenger Bag” which has a quantity as 2. The quantity is divided by 2 i.e. 2/2 bearing the result as 1. Therefore, a discount shall be applicable to one of the “Push it Messenger Bag”.
The discount shall be applicable as 50% of 45= 22.5.
Further, it divides the quantity 6 by 2 (6/2=3) which means that the discount shall be applicable to 3 of the Clamber Watches (product 2).
Thereafter, the discount percent which the admin defines for the rule is 50% which shall be applicable on 3 Clamber Watches i.e.- 50% of 54= 27*3=81- a discount of $81 shall be applicable on the Clamber Watch.
Therefore, the total product applicable shall be $22.5+$81=$103.5 as shown in the image below.
Action 2: Fixed Discount: each 3-rd, 6-th, 9-th with $10 Off
Similarly, using the “Fixed Discount: each 3-rd, 6-th, 9-th with $10 Off”, the admin allows a fixed amount of discount, and not the percentage discount.
Action 3: Fixed Price: each 5th, 10th, 15th for $67
Following the similar way, through the action, “Fixed Price: Each 5th, 10th, 15th for $67” the admin can configure a fixed price for each N-th item and not the fixed amount of discount.
Each Product After N￼
The “Each Product After N” implies to promotional rules like 25% off on all products after the 4th item. Also, the discount will be applicable to products having the lowest/ cheapest price.
Action 1: Percent Discount: each 1st, 3rd, 5th with 10% 0ff after 5 items added to the cart
The admin configures the “Get 10% off on any product after the 5 items are added to the cart” promotion as shown in the image below.
The customers can take the leverage of the Each Product after N discount as shown in the image below.
The workflow for this discount rule is as follows:
Initially, it tabulates the Total Quantity which is 10. It divides the total quantity of items by the value which the admin assigns to the After N i.e. 5 which bears a result- 10-5=5.
Thereafter, it divides the result by the Each Product Step value i.e. 1 resulting in 5 which is the number of products on which the discount shall be applicable.
The sorting for the products in the cart will be as-$45,$45,$45,$54,$54,$54,$54,$54,$54,$92. It picks the items with the lowest price i.e. $45, $45, $45, $54 and $54.
The discount of 50% is applicable on each $45 which bears a result 22.5 and for each and the discount of 50% is applicable on each $54 resulting in 27.
The discount is applicable on the first five products for in a sorting order i.e. 22.5*3= 67.5 and 27*2=54 resulting in a total discount of $121.50.
Action 2: Fixed Discount: Each 3rd, 7th, 11th with $15 0ff after 5 items added to the cart
Using the “Fixed Discount: Each 3rd, 7th, 11th with $15 0ff after 5 items added to the cart”, the admin allows a fixed amount of discount and not the percentage discount.
Action 3: Fixed Price: each 5th, 7th, 9th for $89.99 after 5 items added to the cart
Similarly, using the “Fixed Price: each 5th, 7th, 9th for $89.99 after 5 items added to the cart”, the admin allows a fixed price for the item and not the fixed amount of discount.
Each Group of N
“Each Group of N” action implies that the discount is applicable to a group of products. For instance, “Get 6 Yoga Mats for a $150”.
Action 1: Fixed Price: Each 5 items for $50
The admin can configure the “Fixed Price: Each 5 items for $50” as shown in the image below.
Let’s understand the “Fixed Price: Each 5 items for $50” rule.
The discount will be applicable as per the Discount Quantity which the admin defines for the Rule. For instance, the admin defines the Discount Quantity Step as 3.
The cart holds 5 products in total, therefore, the discount will be applicable only once on the products with the lowest products- $36, $36, $45, $45, $45.
The lowest price products on which the discount shall be applicable are $36, $36 and $45. The sum of all three bears a result- $36+$36+$45=$117.
The fixed price discount is $50 therefore, $117-$50=$67 as shown in the image.
Action 2: Percent Discount: Each 5 items with 10% off
Following the same procedure, the “Percent Discount: Each 5 items with 10% off” the admin can give a percentage discount for a group of items rather than giving the fixed price for a group of products.
Under Product Set, the admin of a store can allow discount on a product set such as Get a shampoo, conditioner, and serum for $150.
Action 1: Percent discount for product set
The cart must include the products bearing the SKU which the admin defines while configuring the rule.
The total price of all the products is- $49+$45+$36+$39=$169 but the discount will be applicable to the products bearing the admin defined SKU i.e. $49+$45+$36=$130.
Therefore, a total discount 50% shall be applicable i.e. 50% of $130=$65 as shown in the image below.
Action 2: Fixed Price for product set
In the same way, using the “Fixed Price for Product Set”, the admin can allow a fixed price of the item rather than a percent discount.
That’s all for the Magento2 Special Promotions Module. Still, have an issue feel free to add a ticket and let us know your views to make the module better webkul.uvdesk.com
Current Product Version - 2.1.0
Supported Framework Version - 2.0.x, 2.1.x, 2.2.x, 2.3.x