After July 2021, the 2.3.x release line will no longer receive quality updates, or user guide updates. PHP 7.3 reaches end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. We strongly recommend planning your upgrade now to Adobe Commerce 2.4.x to help maintain PCI compliance.

Configuring Coupon Codes

The information on this page is intended for Adobe Commerce 2.3 customers who are on an extended support contract. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.

The length and format of automatically generated coupon codes is controlled by the configuration. The characters can be set to all numbers, all letters, or a combination. You can insert a dash at set intervals to make it easy to read, and add a .prefix and suffix to associate the code with a specific campaign or initiative.

Customers configuration - auto-generated specific coupon codes Auto Generated Specific Coupon Codes

Format Coupon Codes

  1. On the Admin sidebar, go to Stores > Settings > Configuration.

  2. In the left panel, expand Customers and choose Promotions.

  3. In the Auto Generated Specific Coupon Codes section, do the following:

    • Enter the Code Length, including prefix, sufix, and separators.

    • Set the Code Format to one of the following:

      • Alphanumeric
      • Alphabetical
      • Numeric
    • To add a Code Prefix, enter the value that you want to appear at the beginning of all coupon codes.

    • To add a Code Suffix, enter the value that you want to appear at the end of all coupon codes.

    • To insert a Dash Every X Characters, enter the number of characters between each dash. Coupon codes with different dash patterns are considered to be different codes, even if the numbers are the same.

  4. When complete, click Save Config.