How to Create Coupon Codes in Magento 2
Coupon codes in Magento 2 are some of the most-effective ways to encourage customers to purchase a product and boost sales during the holiday season. Magento 2 supports creating discount codes from the backend. In this blog post, I have provided complete steps to create coupon code in Magento 2.
Magento 2 admin can generate and get the promo codes from the cart price rules in the backend for coupon marketing. The customers can apply the code during the checkout step to avail of the discount offer. Take the discounts and coupon codes functionality of your store to the next level using our Magento 2 Coupon Code Link extension. It creates links for the discount codes that auto-applied coupon codes on the checkout page.
Easy Steps to Create Coupon Code in Magento 2
Go to Marketing > Promotions > Cart Price Rules and create a new cart price rule by clicking on the button on the top right corner & configure the following settings.
- Rule Name: Enter the name of the cart price rule.
- Description: Enter custom description for the cart price rule.
- Active: Enable the cart price rule for the discount code from here.
- Websites: Select the applicable websites for the cart price rule.
- Customer Groups: Select the applicable customer groups to limit the usage of discount coupon codes.
Set the conditions and actions, and save the cart price rule. Next comes the main part of creating coupon codes.
You may also like to read:
- How to Programmatically Add Custom Discount in Magento 2
- How to auto apply coupon codes in Magento 2
- How to Setup Discount with Minimum Purchase in Magento 2
- How to Get All Coupon Codes of Particular Cart Price Rules in Magento 2
Magento 2 allows creating the coupon codes through the cart price rules. The admin can generate the promo codes either manually or auto-generate them in mass.
Both of the methods are described below in detail.
Manually Create Coupon Code
In order to manually create coupon code in Magento 2, select scroll down on the create/edit cart price rule page, and follow the below mentioned steps:
- Coupon: Specific Coupon
- Coupon Code: Enter custom promo code for availing the discount. Note: Keep the ‘Use Auto Generation’ box unchecked.
- Uses per Coupon: Enter the maximum number of times the coupon can be used in the store.
- Uses per Customer: Limit the customers to use the coupon code only a specific number of times.
- From – To: Set a date range to activate the coupon code in your store.
- Priority: Enter the priority of the cart price rule.
Once you have created the discount code in Magento 2, set the conditions, and actions and save the cart price rule to activate the promo code. Read more about Magento 2 cart price rule.
Auto-Generate Coupon Codes in Bulk
In order to auto-generate bulk coupon codes in Magento 2, tick the Use Auto Generation checkbox and scroll down to the Manage Coupon Codes section. Configure the following settings:
- Coupon Qty: Enter the number of promo codes you want to generate.
- Code Length: Specify the length of the coupon code.
- Code Format: You can select the discount code format from the following:
- Alphanumeric
- Alphabetic
- Numeric
- Code Prefix: Set the prefix that you want to set for the coupon codes.
- Code Suffix: Set the coupon code suffix.
- Dash Every Characters: Add dashes in the coupon code after a specific number of characters.
After entering all the details, click on the Generate button to create coupon code in Magento 2. The generated coupon codes will be listed in the Manage Coupon Codes grid after the cron job.
Summing Up
Creating promo codes with discounts is possible using the cart price rules in Magento 2. I hope this complete guide will help you create coupon code in Magento 2 manually and automatically. In case you still have any queries or doubts, feel free to comment. I would be happy to help! 😇
If you think this post has added some value to your knowledge, do not forget to share it with your Magento friends via social media. 😃
Thanks for reading! 🍀
Magento 2 Coupon Code Link extension makes it easy to apply coupon code using a link instead of manually typing the code.
Shivbhadrasinh Gohil
Shivbhadrasinh is the Co-founder & Chief Marketing Officer at Meetanshi. He leads the marketing team and is the person behind the marketing & branding success of the company. Being a seasoned digital marketer, he has been consulting online businesses for growth since 2010 and has helped 100+ clients with digital marketing success.
He loves sharing tips and insights about the latest digital marketing trends aimed at helping online business owners.
2 Comments
Can I create coupon for a particular customer or email id??
Hello Syed,
By default, there is no such functionality.
You can use the below extension in order to fulfill such:
https://meetanshi.com/magento-2-custom-promo-conditions.html#gallery-2
Thank you