How to create Coupon Codes in Magento 2


In the Cart Price Rule, Coupon Code is created so that the buyer at your store will get the discounted price. The Coupon Code can be generated a single or in bulk for a specific customer group or anyone depending on your purpose. Coupon can be sent to others via email, or included in newsletters, catalogs, and advertisements such as banners on the website.

To use the coupon, the customers will insert the code in the cart, then the discount value is applied immediately. Magento 2 also supports a quick response code - QR code that customers can scan on their smartphone. After that, they are lead to a page on your website to get more information about the promotion.

Create an Specific Coupon

This method is implemented in the Cart Price Rule settings.

  • On the Rule Information tab, under General Information, transfer Coupon to Specific Coupon.
    • Enter the Coupon Code in the manual way.
    • Limit the times of using the coupon in the Uses per Coupon and User per Customer. Leave them empty if no limination.
      • Uses per Coupon sets the number of times the coupon code is used.
      • Uses per Customers sets the number of times the coupon code is used by the same customers.
    • If there are many cart price rule at the same time, should set the active time and priorty to manage well.
  • Save to activate the coupon code.

Publish a Mass of Coupons

This method is implemented in the Cart Price Rule settings.

  • On the General Information page, mark the Use Auto Generation checkbox to publish the a mass of coupon codes after saving the rule.
  • Under Cart Price Rule, choose Manage Coupon Codes tab and do the following:

    How to create Coupon Codes Manage Coupon Codes

    • Set the Coupons Qty to the quantity of coupons you want to publish.
    • Insert the number for the Code Length, the length excludes the prefix, suffix, or separators.
    • Select the Coupon Format from the following type: Alphanumeric, Alphabetical, and Numeric.
    • Insert the Code Prefix - the begining part of the code if need.
    • Insert the Code Sufix - the end part of the code if need.
    • Set the Dash Every X Character to make the codes eaiser to read. For example, the number 3 is insert into that field, the codes will look like: xxx-xxx-xxx.
  • Click on Generate button to release multiple coupon codes and they are shown on the table below.

How to create Coupon Codes Coupon Codes List

Ref: Magento 2 User Guide

Mageplaza One Step Checkout helps reduce the abandonment rate as well as increase the conversion rate dramatically. Mageplaza Layered Navigation brings a list of filters to help your customers search and get the favourite products in the shortest way. Mageplaza Social Login (FREE) supports 11+ types of social networks.

It comes to the end of tutorial: How to create Coupon Codes in Magento 2.

Please leave comments if you have any questions, feedbacks.

Comments for How to create Coupon Codes in Magento 2

You also may like these Magento 2 Extensions

One Step Checkout

18 reviews

Layered Navigation

11 reviews

Store Locator

2 reviews

Shop By Brand

no review

Zoho CRM

no review


10 reviews

Better Blog

7 reviews


7 reviews