Introduction
Unagui First Order Coupon for WooCommerce allows you to get more sales by capturing leads and offering exclusive first-order coupons. It automates the creation of discount coupons valid only for the first purchase, preventing returning customers from abusing welcome discounts.
Requirements
- WordPress 5.8 or higher
- WooCommerce 5.0 or higher
- PHP 7.4 or higher
- Elementor Pro (for lead capture form)
Installation
- Download the plugin ZIP file
- Go to WordPress Admin → Plugins → Add New
- Click Upload Plugin and select the ZIP file
- Click Install Now and then Activate
Configuration
After activation, go to Unagui Plugins → First Order Coupon in the WordPress admin menu to configure the plugin.
General Settings
| Setting | Description |
|---|---|
| Coupon Prefix | Text prepended to the generated welcome coupon code. (default: "FIRSTORDER-") |
| Discount Type | Choose between Percentage Discount or Fixed Cart Discount. |
| Discount Amount | The percentage or flat rate discount amount. |
| Coupon Expiry (Days) | Number of days the generated coupon remains valid before expiring. |
Privacy & GDPR Configuration
The plugin includes built-in compliance tools to ensure your lead capture forms adhere to privacy laws such as the GDPR.
| Setting | Description |
|---|---|
| Enable Privacy Checkbox | Require users to accept the privacy policy before submitting the form. (Enabled by default) |
| Privacy Policy Page | Select the page to link to. If none is selected, the checkbox will not be displayed. |
| Checkbox Label | Use {privacy_policy} to insert the link to the policy page. |
Usage
Elementor Pro Form Integration
The plugin integrates seamlessly with Elementor Pro Forms to generate dynamic coupons upon form submission.
- Create a new form using Elementor Pro.
- Set the form name to
unagui_lead_formin the form settings. - Ensure the form has at least one valid Email field.
- When a user submits the form, the plugin generates a unique coupon and sends it to their email address.
Coupon Restrictions
The plugin automatically restricts the generated coupons to first-time customers only. It checks the customer's email or user ID during checkout to ensure they have no previous completed or processing orders.
You can also manually apply this restriction to any other WooCommerce coupon by checking the "First Order Only" box in the coupon's "Usage Restriction" tab.
Integrations
In the free version, the generated coupon is sent directly to the customer's email address using the default WordPress mail server configuration (wp_mail()). It is fully compatible with external SMTP plugins (e.g., WP Mail SMTP).
FAQ
Can customers use the coupon multiple times?
No, the generated coupon is configured with a single use limit (1) and is restricted to customers with no processed or completed orders in your store's history. Furthermore, the coupon is strictly restricted to the email address entered in the lead capture form.
How can I display the lead capture form without Elementor Pro?
You can use the native shortcode [unagui_lead_form] to display a beautiful AJAX-powered form on any page or widget.
Is the plugin GDPR compliant?
Yes. The plugin includes an optional (enabled by default) privacy policy consent checkbox for the lead capture form, and integrates with the native WordPress tools to suggest privacy policy texts for your legal pages.
Support
For support and feature requests, please visit unagui.es or contact us at support@unagui.es.