1. Documentation
  2. Plugins
  3. WooCommerce
  4. Extensions
  5. Smart Coupons

How to set coupon code length for auto-generated coupons

Smart Coupons provide a powerful, “all-in-one” solution for gift certificates, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.

This doc article explains how you can set the number of characters for coupon code when the coupons are auto-generated.

From version 3.7.0 you can restrict the number of characters in the auto-generated coupon code. It is recommended to keep the number of characters as high to prevent duplication of auto-generated coupon code.

To set the number of characters follow these steps:

  1. Go to WooCommerce > Setting > Smart Coupons.
  2. Look for “Number of characters in auto-generated coupon code”.
    Smart Coupons code length
    Smart Coupons code length
  3. Set the number.
  4. Save the settings.


The most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment