Magento Open Source, 1.9.x

Magento 1.x Security Patch Notice
For Magento Open Source 1.5 to 1.9, Magento is providing software security patches through June 2020 to ensure those sites remain secure and compliant. Visit our information page for more details about our software maintenance policy and other considerations for your business.

Auto-Generated Coupon Codes

Batches of discount coupon codes can be formatted and generated automatically. Coupon codes can also be exported, and incorporated into other applications. For example, you might use a series of auto-generated coupon codes to produce printed coupons with unique codes.

Generated Coupon Codes
  • Field Descriptions




    Code Length


    Defines the length of the coupon code, excluding the prefix, suffix and separators.

    Code Format


    Defines the coupon code format. Options:


    Any combination of letters and numbers.


    Letters only.


    Numbers only.

    Code Prefix


    A value appended to the beginning of all coupon codes. Leave blank to omit the prefix.

    Code Suffix


    A value appended to the end of all codes. Leave blank to omit the suffix.

    Dash Every X Characters


    An interval where a dash (-) can be inserted into all coupon codes. If you do not want to use a dash, leave the field blank.

    Coupon codes that differ by only a dash are considered to be different codes.