This is an info Alert.
x402 Logo
  • Product
    • Become Agent-Ready
      • Merchants
        Agentic Commerce — list your store across ChatGPT, Gemini, Claude & Perplexity
      • Publishers
        Monetize your content when AI agents read, cite, or train on it
      • SaaS Companies
        Treat AI agents as first-class customers with agent-priced checkout
    • Monetize
      • Monetize MCP Server
        Charge per call on any MCP server in 2 minutes
      • Monetize AI Agents
        Turn n8n, Zapier, Activepieces workflows into revenue
      • Agent Feed
        Pay-per-query access to licensed publisher content for your agents
  • Resources
    • xpay Ecosystem
      • xpay✦ Tools
        1,000+ pay-per-use tools for your AI agents
      • Agent-Ready SaaS Index
        25,481 SaaS scored on agent-buyability
      • SaaS Pricing Database
        Pricing pages indexed across 1,000+ categories
      • Shopify Apps Directory
        Every Shopify app, with its full review history
      • WooCommerce Plugins Directory
        Every WooCommerce plugin, scored on how well it is maintained
      • GitHub
        Open source repositories
    • Agent Building
      • Agent Frameworks
        AI frameworks for building multi-agent systems
      • x402 Integration
        AI frameworks with x402 payment integration
      • Networks
        Blockchain networks supporting x402
    • Company
      • About xpay✦
        Our mission, products, and protocols
      • Blog
        Latest insights and updates
      • Docs
        Complete xpay documentation
  • Pricing
  • Blog
  • Docs
Get Started
  1. xpay✦ Commerce

  2. Directory

  3. WooCommerce plugins

  4. 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.

100+ active installs
5.0
(2 ratings)
Free on WordPress.org
View on WordPress.orgSupport forum
Will this break my store?

What the WordPress.org registry says about keeping Magic URL Coupon for WooCommerce running.

WordPress compatibility
Tested to 7.0.2
Tested against the WordPress branch in use today.
Last updated
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.
Requires PHP
7.2
Your host must be running at least this version.
Requires WordPress
5.8
Requires other plugins
woocommerce
These must be installed and active first.
Contributors
2

100+ active installsWordPress.org reports installs in bands, not exact counts.
Maintenance & trust

Scored on how Magic URL Coupon for WooCommerce is looked after — not on how many stores run it.

Solid
Not enough public feedback to put a confident number on this one. Little public feedback — score rests mostly on release activity. What we can see is below.

Maintenance
35 / 35
Updated 2 days ago.
WordPress compatibility
20 / 20
Tested to WP 7.0.2 (current).
Support responsiveness
Not enough data
Only 0 support thread(s) — not enough to judge.
Merchant satisfaction
11 / 15
5.0/5 across 2 rating(s).
Listing transparency
3 / 10
Provides: description
1 of 5 measures had too little evidence to score. They are left out of the total rather than counted as zero — otherwise a plugin would be marked down for being small rather than for being poorly kept.Measured 2026-08-04 from the WordPress.org plugin registry.
Ratings

5.0

2 ratings
5★2
4★0
3★0
2★0
1★0
Every rating WordPress.org holds for this plugin, not a sample. Written reviews live in the plugin's WordPress.org reviews forum.

Want 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

Can I change the URL parameter name from `mcoupon` to something else?

Yes. Use the magic_coupon_url_parameter filter.

Can I show the HTML message somewhere else on the product page?

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.

Is it possible to add dynamic information to the HTML message?

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 the x hours or x minutes format), 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.

Can this plugin have issues with caching plugins?

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:

  • DONOTCACHEPAGE
  • DONOTCACHEOBJECT
  • DONOTCACHEDB

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.

Is this plugin compatible with the new WooCommerce High-Performance Order Storage?

Yes.

Is this plugin compatible with the new WooCommerce block-based Cart and Checkout?

Yes.

I need help, can I get technical support?

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.

Where do I report security vulnerabilities found in this plugin?

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
Discounts & coupons
Plugin details
Version2.3
Last updated2026-08-02 5:52pm GMT
Added2018-11-23
Requires WordPress5.8
Tested up to7.0.2
Requires PHP7.2

Tags on WordPress.org
coupons
marketing
promotions
woocommerce
Alternatives
Other plugins in the same categories.
Loyalty Points Rewards and Referral for WooCommerce – WPLoyalty
3K+ installs
5.0(283)
YayPricing – WooCommerce Dynamic Pricing & Discounts
3K+ installs
5.0(71)
Discount Rules for WooCommerce
100K+ installs
4.9(1,342)
Advanced coupon for WooCommerce
900+ installs
5.0(18)
Auto Coupons for WooCommerce
4K+ installs
4.9(16)
Discount Rules and Dynamic Pricing for WooCommerce
10K+ installs
4.7(247)
x402 Logo

The agent-readiness stack for the AI shopping era — helping merchants, publishers and SaaS companies get discovered, cited and transacted with by ChatGPT, Perplexity, Claude, Gemini and the custom shopping agents underneath them.

CompanyAgentically Inc. (d/b/a xpay✦)1875 Mission St, Ste 103San Francisco, CA 94103, United Stateslegal@xpay.sh · privacy@xpay.sh
or ask your AI app
Company
About xpayAgency PartnersGitHubDiscordllms.txt
DevelopersDocumentationAPI ReferenceSDKs & LibrariesQuickstart GuideOpenAPI Spec
Stay Updated
Occasional product updates and agent-readiness playbooks from xpay (Agentically Inc.) — typically a couple of emails a month. Double opt-in: we email you a link to confirm before sending anything, and every email has one-click unsubscribe.
Social
  • For Publishers
    • News
    • Finance
    • Dev / Tech
    • Travel
    • View all verticals
  • Agent Feed
    • AI Search Engines
    • RAG Builders
    • Browser Agents
    • Vertical Research
    • Browse full catalog
  • Agent-Ready Index
    • SaaS Pricing Database
    • Agent-Ready SaaS Index
    • Verified band
    • AI & ML
    • Sales & CRM
  • Products
    • Pricing Widget
    • Monetize MCP Server
    • Paywall
    • Smart Proxy
    • Monetize AI Agents
    • xpay x402 Facilitator
  • Agentic Economy
    • Timeline
    • Resources
    • Manifesto
    • Stack
  • Agentic Commerce
    • Get listed
    • ChatGPT Ads
    • How ChatGPT Ads work
    • ChatGPT Ads · Apparel
    • ChatGPT Ads · Health & Beauty
    • xpay Listings · Amazon + Google
    • Pricing
    • Free audit
    • Shopify
    • WooCommerce
    • Apparel & Accessories
    • Health & Beauty
    • Overview
  • Commerce Index
    • Shopify apps directory
    • Agentic Commerce Ready Index
    • Methodology
    • Pet brands · WooCommerce
    • Pet brands · Shopify
  • Marketplace
    • 🛍️ xpay.deals — agentic storefront for deals
  • Protocols
    • Overview
    • x402
    • MPP
    • UCP
    • ACP
    • AP2
    • TAP
    • A2A
  • Agent Frameworks
    • Overview
    • LangChain
    • CrewAI
    • Claude MCP
    • AutoGPT
    • LangChain vs Mastra
    • LangGraph vs Pydantic AI
  • Company
    • About xpay
    • Blog
    • Docs
    • GitHub
  • Free prompts
    • Ecommerce prompts
    • Email marketing prompts
    • Product description prompts
    • Facebook ad prompts
    • Skincare prompts
    • Supplement prompts
    • Wine prompts
    • Electronics prompts

© 2025 Agentically Inc. All rights reserved.
Privacy PolicyTerms of UseAcceptable Use Policy