Coupon Code Generator extension icon

Coupon Code Generator for Magento 2

Create unique, personal coupon codes from rules and deliver them straight to customers, so codes are not shared on coupon sites.

Marketing Magento 2.4.x Open Source & Adobe Commerce Adobe Marketplace approved $59 USD

Why choose Coupon Code Generator?

Coupon Code Generator creates personal, single-use coupon codes instead of one shared code that ends up on coupon websites. Codes are generated from rules that use Magento's own cart price rule conditions, with your own code format, expiry and usage limits. They can be generated in bulk from the customer grid, sent automatically after a newsletter sign-up or an order, emailed to customers, and listed on a My Coupons page in the account.

Coupon Code Generator: Newsletter account settings (screenshot 1 of 15)Coupon Code Generator: Next order settings (screenshot 2 of 15)Coupon Code Generator: My coupons (screenshot 3 of 15)Coupon Code Generator: Cart coupon applied (screenshot 4 of 15)Coupon Code Generator: Cart coupon expired (screenshot 5 of 15)Coupon Code Generator: Coupon email (screenshot 6 of 15)Coupon Code Generator: Overview (screenshot 7 of 15)Coupon Code Generator: Rules grid (screenshot 8 of 15)Coupon Code Generator: Usage code format (screenshot 9 of 15)Coupon Code Generator: Generate coupons (screenshot 10 of 15)Coupon Code Generator: Customers grid (screenshot 11 of 15)Coupon Code Generator: Customer tab (screenshot 12 of 15)Coupon Code Generator: Admin order (screenshot 13 of 15)Coupon Code Generator: Manage coupon codes (screenshot 14 of 15)Coupon Code Generator: General email settings (screenshot 15 of 15)
1 / 15

Key features

  • Coupon Generator Rules
  • Custom Code Format
  • Individual Expiration Dates
  • Usage Limits
  • Generate Coupons Page
  • Bulk Generation from the Customers Grid
  • Customer Coupon Codes Tab
  • Admin New Order Coupons
  • Automatic Newsletter Coupons
  • Next Order Coupons
  • Coupon Email
  • Manage Coupon Codes Grid
  • Rule Usage Statistics
  • My Coupons Page

At a glance

Module nameMage2Expert_CouponGenerator
Composer packagemage2expert/module-coupon-generator
SettingsStores › Configuration › Mage2Expert › Coupon Code Generator (14 options)
Admin menuMarketing › Coupon Code Generator › Generate Coupons
Marketing › Coupon Code Generator › Manage Coupon Codes
Marketing › Coupon Code Generator › Manage Rules
Per store view settingsYes
APIREST: 3 endpoints
PHP8.1, 8.2, 8.3, 8.4, 8.5

Installation

After purchasing on the Adobe Commerce Marketplace, install it with Composer using your Marketplace access keys:

composer require mage2expert/module-coupon-generator
bin/magento module:enable Mage2Expert_CouponGenerator
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Skip setup:di:compile and static-content:deploy if your store runs in developer mode.

Configuration reference

All 14 options under Stores › Configuration › Mage2Expert › Coupon Code Generator, grouped as they appear in the admin.

General Settings 1
SettingDescription
Enable ModuleWhen disabled, the Coupon Code Generator menu is hidden, no coupons are generated automatically and coupons created by the generator can't be applied to the cart.
Email Settings 3
SettingDescription
Email Sender 
Email TemplateEmail template chosen based on theme fallback when "Default" option is selected.
Send Coupon Email Copy ToComma-separated. Each address gets a blind copy (BCC) of every coupon email.
Customer Account 2
SettingDescription
Show "My Coupons" in Customer AccountLists the coupons generated for the customer, with their discount, expiry date and status.
Include Used, Expired and Deactivated Coupons 
Coupon for Newsletter Subscribers 3
SettingDescription
Generate Coupon on SubscriptionEach new newsletter subscriber gets one personal coupon. A subscriber who unsubscribes and subscribes again doesn't get a second one.
Coupon Generator Rule 
Email the Coupon to the Subscriber 
Coupon for the Next Order 5
SettingDescription
Generate Coupon After an OrderThe customer gets one coupon per order once the order reaches one of the selected statuses.
Coupon Generator Rule 
Order Statuses 
Minimum Order Grand TotalIn the base currency. 0 means any amount.
Email the Coupon to the Customer 

Developer reference

REST API

MethodEndpoint
POST/rest/V1/mage2expert/coupongenerator/coupons/generate
GET/rest/V1/mage2expert/coupongenerator/coupons/:entityId
GET/rest/V1/mage2expert/coupongenerator/coupons

Frequently asked questions

How much does Coupon Code Generator cost?
Coupon Code Generator costs $59 USD as a one-off purchase on the Adobe Commerce Marketplace.
Which Magento and PHP versions are supported?
Magento Open Source and Adobe Commerce 2.4.x. It is developed and tested on Magento 2.4.8, and supports PHP 8.1, 8.2, 8.3, 8.4, 8.5.
Where do I configure Coupon Code Generator?
In the Magento admin under Stores › Configuration › Mage2Expert › Coupon Code Generator. It has 14 options, grouped into 5 sections.
Can I switch it off without uninstalling it?
Yes. Set "Enable Module" to No under Stores › Configuration › Mage2Expert › Coupon Code Generator. Your settings and data are kept.
Can the settings differ per store view?
Yes. Many options can be set per website and store view, so multi-store and multi-language setups can behave differently.
Does it have an API?
Yes: 3 REST endpoints. See the developer reference above for the full list.
Can it be customised for my store?
Yes. As the developer of Coupon Code Generator, I can adapt it to your workflow or build related features. Email me with what you need.
Available for new projects

Have a Magento project in mind?

Tell me about your store and what you need. I reply to every enquiry within one business day.

Adobe Certified Expert

Adobe Commerce Developer certification, verified on Credly.

15+ years of Magento

From Magento 1 to Magento 2.4.x, Adobe Commerce and Hyvä.

62 Marketplace extensions

Each one reviewed and approved by Adobe.