Overview #
WooCommerce Coupon Code Generator plugin allows coupon codes to be generated when new coupons are added. It allows you to select algorithms based on which coupon codes will be generated and also limit the length of the coupon codes based on your requirement.
Enabling Checkout Fees #
To enable and use the WooCommerce Coupon Code Generator plugin, you should first download and install Booster for WooCommerce.
1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > CART & CHECKOUT > Coupon Code Generator.
The Coupon Code Generator Module Options page will be displayed.
2. In the Coupon Code Generator section, check the box for Enable Module field.
3. Scroll down to the end of the page and click Save changes.
The WooCommerce Coupon Code Generator plugin will be enabled for your site.
Configuring Coupon Code Generator Settings in WooCommerce #
You can configure settings to generate coupon codes when new coupons are added using this option. You can select algorithms based on which coupon codes will be generated and also limit the length of the coupon codes based on your requirement.
1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > CART & CHECKOUT > Coupon Code Generator.
The Coupon Code Generator Module Options page will be displayed.
2. In the Options section, check the box for Generate Coupon Code Automatically – Enable field.
3. Select the algorithm based on which you want coupon codes to be generated from the Algorithm dropdown list.
4. Enter the length of the characters of the coupon code in the Length field.
Note:
- The value set in the Length field will override the length of the algorithm selected.
- However, the value set in the Length field will be ignored if it is set above the maximum length for the selected algorithm.
- If you want to use the full length for the selected algorithm, then set the Length value to zero.
The table below shows examples of original coupon codes and coupon codes if Length is set to 6:
Algorithm | Original Coupon Code Example | Coupon Code Lenght=6 |
Hash: crc32length = 8 | 1dbd3a02 | 1dbd3a |
Hash: md5length = 32 | 947bcdf35cb5fc14fcc6682f9449f680 | 947bcd |
Hash: sha1length = 40 | 988cb6ef2540aeef1971e7c9d013adc6bbf31213 | 988cb6 |
Random letters and numberslength = 32 | nbi01wmg6u3qox99mbz2mrmkqgzrk4g4 | nbi01w |
Random letterslength = 32 | kgkntmxcaqsmwzhwnjpttddgsewaeugb | kgkntm |
Random numberslength = 32 | 38209630105674188634395332625902 | 382096 |
5. Click Save changes.
The WooCommerce coupon code generator will be configured.