xpay✦ Commerce
Directory
WooCommerce plugins
Magic URL Coupon for WooCommerce
Magic URL Coupon for WooCommerce
Share WooCommerce discount links: pass a coupon code via URL, display sale prices on product pages, and auto-apply the coupon at checkout.
5.0
(2 ratings)Will this break my store?
What the WordPress.org registry says about keeping Magic URL Coupon for WooCommerce running.
Tested to 7.0.2
Tested against the WordPress branch in use today.2 days ago
At least 3.0 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.7.2
Your host must be running at least this version.5.8
woocommerce
These must be installed and active first.2
Maintenance & trust
Scored on how Magic URL Coupon for WooCommerce is looked after — not on how many stores run it.
Maintenance
35 / 35WordPress compatibility
20 / 20Support responsiveness
Not enough dataMerchant satisfaction
11 / 15Listing transparency
3 / 10Ratings
5.0
2 ratingsWant to share a WooCommerce discount link that automatically applies a coupon? Magic URL Coupon lets you embed any coupon code directly in a URL — perfect for email campaigns, affiliate links, and social media promotions.
When a customer visits your store via the magic link, the coupon code is stored in a cookie for a configurable amount of time. No manual code entry needed.
Pass the coupon via the mcoupon URL parameter (customizable via the magic_coupon_url_parameter filter). While the cookie is active:
- Discounted prices shown upfront — eligible product pages display the post-coupon price automatically, so customers see exactly what they’ll pay before adding to cart;
- Custom promotional message — show a personalized HTML message under the product price, anywhere on the page via hooks, or inline via the
[magic_coupon_html_message]shortcode; - Coupon auto-applied at checkout — when the customer adds a product to the cart, the coupon is applied automatically, no code entry required;
- The coupon remains freely usable: customers can still enter it manually at any time, and this plugin will not restrict its regular usage.
Variable product support is experimental and may be moved to a premium add-on in the future.
Other (premium) plugins
Already know our other WooCommerce (premium) plugins?
- Shop as Client for WooCommerce – Quickly create orders on behalf of your customers
- Simple Checkout Fields Manager for WooCommerce – Add custom fields and manage (remove, make required or optional) core fields on the new WooCommerce Block-based Checkout
- Advanced Coupon Restrictions for WooCommerce – Create coupons for any Product Taxonomy, User details, and Order destination.
- Simple WooCommerce Order Approval – The hassle-free solution for WooCommerce order approval before payment
- Taxonomy/Term and Role based Discounts for WooCommerce – Easily create bulk discount rules for products based on any taxonomy terms (built-in or custom)
- DPD / SEUR / Geopost Pickup and Lockers network for WooCommerce – Deliver your WooCommerce orders on the DPD and SEUR Pickup network of Parcelshops and Lockers in 21 European countries
Yes. Use the magic_coupon_url_parameter filter.
Sure you can. Use the magic_coupon_html_message_action_hook filter to change the hook and the magic_coupon_html_message_action_priority filter to change the priority.
If you don’t know what we’re talking about, you should probably stop now and hire us to do it for you 🙂
You can also show it directly on the product description by using the [magic_coupon_html_message] shortcode.
You bet! Use one of the following placeholders on your message:
{product_id}will be replaced by the Product ID;{coupon}will be replaced by the coupon code;{cookie_expire_timestamp}will be replaced by the cookie expiration Unix timestamp;{cookie_validity_minutes}will be replaced by the cookie validity in minutes;{cookie_validity_hours_minutes}will be replaced by the cookie validity in hours or minutes (in thex hoursorx minutesformat), depending on the validity being more or less than one hour;
You can also add you own placeholders with the magic_coupon_html_message_replace_tags filter. See an example here.
And because you can also use shortcodes on the HTML message field, you can feed the product id, coupon, the cookie expire timestamp or validity, or any other variable you set via your own placeholders as a shortcode argument, you can do whatever you want with your custom message. Go crazy, or hire us to develop a custom solution for you.
Yes. The page output has to be changed to set the discounted product prices based on the user cookie. That’s incompatible with a server-side caching system.
We set the following constants to prevent caching by some plugins, on the moment the customer reaches the page with a coupon code:
DONOTCACHEPAGEDONOTCACHEOBJECTDONOTCACHEDB
This will ensure the page with the discounted price is not cached on that moment (and no other users will see a version of the page with the discount), but will not disable the cache that might already exist.
Anyway, we’ve experimented a bit with the WP-Optimize “Cookies which, if present, will prevent caching” setting, by entering the name of our cookie (mcoupon by default), and we had good results. Regular users see the cached page and the ones with the coupon set on the cookie see non-cached pages.
Yes.
Yes.
This is a free plugin. It’s our way of giving back to the wonderful WordPress community.
There’s a support tab on the top of this page, where you can ask the community for help. We’ll try to keep an eye on the forums but we cannot promise to answer support tickets.
If you reach us by email or any other direct contact method, we’ll assume you need premium, paid-for support.
You can report any security bugs found in the source code of this plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.
Categories
Plugin details
Tags on WordPress.org
