Book a Demo

Targeted Email-Based Coupon Code Module for Magento 2
This Targeted Email-Based Coupon Code Extention for Magento 2 allows store owners to restrict coupon usage to specific customer emails or domains. By adding a new Email Condition inside Magento’s native Cart Price Rules, it ensures that discount codes are only applied by approved recipients, no leaks, no misuse.
This extension is ideal for running email-based promotions such as VIP offers, loyalty rewards, or early-access sales. It’s lightweight, secure, and works immediately upon installation without the need for additional configuration or custom development.
Key Features
-
Adds a new Email Condition in Cart Price Rules
-
Supports individual email IDs and domain-level restrictions
-
Prevents coupon misuse by enforcing email validation
-
Compatible with both frontend and backend order flows
-
Seamless integration into the Magento marketing panel
-
No UI changes or external configuration needed
Screenshots




Request Customization

Who Is This For?
This extension is designed for Magento users who need more precision and security in how their promotional codes are distributed. Whether you're running exclusive offers or protecting high-value campaigns, this tool makes email-based coupon targeting easy and effective.
-
Magento Store Admins
Ideal for store managers who want to run private sales, limited-access offers, or targeted email campaigns that only reach a select group of customers. This extension provides the control needed to ensure promotions aren’t misused or leaked. -
Marketing Teams
Perfect for marketers using email promotions as part of loyalty programs, early-access sales, or invite-only deals. It enables clear segmentation and rule-based targeting; no manual checks required. -
eCommerce Developers
For technical teams and developers, this extension removes the need for custom coupon validation code. It integrates directly with Magento’s Cart Price Rules, simplifying development workflows and ensuring future compatibility. -
Businesses Offering Exclusive Pricing
Whether you’re managing targeted email lists, partner-specific discounts, or restricting access to certain customer groups, this extension ensures your rules are enforced securely at checkout.


Advantages of Using This Extension
The Targeted Email-Based Coupon Code Module for Magento 2 delivers practical, security-driven benefits that support personalized promotions while safeguarding your discount strategies. It’s purpose-built for Magento users who value control, precision, and campaign integrity.
-
Secure Discount Distribution
With this extension, your coupon codes are protected from being shared or misused. By allowing only verified email addresses or approved domains, it ensures that discount usage remains exclusive to the customers you intended. This is especially useful for limiting one-time deals, preventing code leaks, or controlling partner-based promotions. -
Built for Targeted Email Marketing
The module is perfectly aligned with your targeted email marketing strategy. Whether you’re segmenting VIP customers, loyal buyers, or early-access subscribers, this tool allows you to connect promotions directly to targeted email lists, improving both engagement and offer security. -
No Backend Complexity
There’s no need to build custom rules or manage a separate dashboard. The email-based condition is added directly into Magento’s native Cart Price Rules interface, meaning everything stays clean, streamlined, and easy to manage, even for non-technical admins. -
Ideal for VIP or Private Offers
Run campaigns with confidence for early adopters, beta testers, influencer partnerships, or whitelisted buyers. This extension supports Magento 2 VIP coupon extension scenarios where exclusivity is key, without affecting the rest of your store’s functionality. -
Frictionless Marketing Integration
Designed to complement your email-based promotions Magento workflow, it enables fast setup with minimal steps. Just configure the condition, assign the emails, and let the system handle the validation, all without disrupting ongoing marketing efforts or needing external tools.

Magento Compatibility
This extension is fully compatible with Magento’s latest platforms and aligns with core development standards for performance and stability.
-
Magento Open Source 2.3.x – 2.4.x
-
Built and tested on Magento 2.4.7
-
Compatible with PHP 7.4 and above
Why Choose This Extension?
This Targeted Email-Based Coupon Code Plugin for Magento 2 is designed to help merchants run secure and personalized promotions without needing extra tools or development work. Here’s why it stands out:
-
Enforces Email-Specific Coupon Restrictions
Ensures discount codes are only applied by customers whose email addresses or domains match your configured rules, giving you full control over usage eligibility. -
Adds Email Condition to Cart Price Rules Without Code
The extension seamlessly integrates into Magento’s native Cart Price Rules. Admins can set up email-based restrictions directly from the UI without writing a single line of code. -
Simplifies Discount Control Using Built-in Logic
There’s no need for external scripts or custom workflows. It leverages Magento’s core logic, making it easier to manage and more stable to operate across updates. -
Requires No Third-Party Tools
All logic is self-contained. The validation is done within Magento’s default structure, ensuring that the rule performs consistently during both frontend and backend order placements. -
Optimized for Targeted Email Campaigns
Whether you’re running VIP offers, referral incentives, or one-time promo blasts, this module is ideal for teams managing targeted email marketing and customer-specific outreach. -
Protects Coupons Across All Checkout Paths
Whether the order is placed from the storefront or manually from the admin panel, the extension enforces Magento restrict coupon by email conditions without exceptions, reducing misuse.

Installation Guide
This extension is designed for a hassle-free setup experience. Once uploaded, it integrates directly with Magento’s core functionality and requires no extra configuration or customization. Whether you’re a developer or a store admin, you can install it in minutes by following the simple steps below.
Requirements:
-
Magento 2.4.x
-
Composer must be installed on your server
Step 1: Upload the Module Files
Place the module files in the following directory of your Magento installation:
“app/code/Askantech/EmailCondition”
Make sure the folder name is case-sensitive and exactly matches the path shown above to ensure Magento recognizes the module correctly.
Step 2: Run Setup Commands
Navigate to the root of your Magento installation via SSH and execute the following commands one by one:
“php bin/magento module:enable Askantech_EmailCondition
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush”
These commands will register the module, upgrade the database schema, recompile necessary files, and deploy static content to ensure the module is fully operational.
Step 3: Verify Installation
To confirm the module was successfully installed and is enabled, run the following command:


How It Works
This extension works entirely within Magento’s native promotional rule system. Once installed, it adds a new Email Condition option to the Cart Price Rules configuration panel, enabling you to precisely control who can use specific coupon codes. No custom development, no complex integrations; just smarter, more secure rule management using Magento’s own interface.
Here’s how to apply it:
-
Go to your Magento Admin Panel
Navigate to: Marketing → Cart Price Rules -
Create or Edit a Rule
You can either create a new promotion or edit an existing one where you want to apply email restrictions. -
Configure the Email Condition
In the Conditions tab, select the newly added Email Condition. You’ll be able to define one or more specific customer email addresses or email domains (e.g., vipuser@example.com or @trustedpartner.com). -
Save and Activate the Rule
Once you save the rule, the email validation is applied automatically. The discount will only trigger when the logged-in customer’s email matches the configured condition.
This ensures real-time coupon validation at checkout, meaning unauthorized users will not be able to apply the discount, protecting your promotions and maintaining campaign integrity.
Technical Specifications
Seller Name
Askan Technologies Private Limited
Current Version
1.0.0
Last Updated
April 16, 2025
Magento Compatibility
Magento Open Source 2.3.x – 2.4.x
Platform Type
Stable Build
Supported Browsers
Chrome, Firefox, Safari, Edge, Opera
Categories
Sales, Promotions
License Type
Open Software License 3.0 (OSL-3.0)
Support
support@askantech.com
Frequently Asked Questions
Have questions about how the Targeted Email-Based Coupon Code Module works? Here are some of the most common queries answered to help you understand its features, functionality, and integration, all before you get started.
Can I assign a coupon to multiple email addresses?
+Does this work for guest users?
+Where do I configure the email condition?
+Will this affect my existing coupon rules?
+Is there any configuration needed after installation?
+Does it change anything on the storefront?
+Is it compatible with Magento 2.4.x and PHP 7.4+?
+