Magento 2 Coupon URL: Apply Discount Codes by Link Automatically
SKU: AUTOCOUPONURL1
- apply the code by URL parameter or short path
- cookie remembers the code with an empty cart
- banner in the cart, removal possible at any time
- QR code download and reporting per link and source
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 coupon URL: apply a discount without the customer typing
With Magento 2 coupon URL from Mironsoft you attach a code parameter or a short campaign path to any shop URL. The visitor clicks the link in the newsletter, in the ad or on the printed QR code, the module remembers the coupon in a cookie and applies it as soon as a cart exists. In the cart the code is visible, the customer has nothing to type. Magento 2 coupon URL runs on Alpine.js in the Hyvä theme and needs no extra library.
Code in the link
A parameter such as ?coupon=SUMMER or a short path such as /deal/summer applies the coupon.
Cookie memory
The code stays stored until the cart is filled and is then applied automatically.
Visible in the cart
The coupon appears like a typed code, with a hint and a remove button.
Rule validation
Period, customer group and usage limit of the cart rule are fully respected.
Short paths and QR
Campaign paths and a QR code as a download for flyers and packaging.
Hit counter
Per link you see visits and redeemed coupons, split by source.
Why a Magento 2 coupon URL brings more redemptions
Anyone who names a discount code in the newsletter asks the reader for several steps: copy the code, open the shop, paste it into the cart field. Every step costs redemptions. Customers also forget the code or mistype it, and support gets the question why the coupon “does not work”.
Magento 2 coupon URL shortens the path to one click. The campaign becomes measurable because each link has its own source, and the customer sees at once that the benefit arrived. The validity of the underlying cart rule stays unchanged and is not bypassed.
Create a Magento 2 coupon URL: parameter and short path
In the admin you pick an existing cart rule or code and assign a short path such as /deal/summer. In addition the parameter ?coupon=CODE works on any shop URL. As the target after the visit you choose the home page, a category, a product page or the cart. Per link you enter a source, for example “Newsletter May” or “Trade fair flyer”.
- Parameter on any URL or fixed short path
- Target selectable: home, category, product, cart
- Source per link for reporting
Cookie and cart: discount even with an empty cart
Often the cart is still empty at the click. The module remembers the code in a functional cookie and applies it as soon as the first product is in the cart. You set the lifetime of the cookie in days. An already redeemed or invalid code is discarded. If the cart does not meet the conditions of the rule, the code stays remembered and the customer gets a hint about what is missing.
- Cookie with configurable lifetime in days
- Applied as soon as the rule conditions are met
- Hint if, for example, the minimum value is missing
Visible in the cart: hint, saving and remove
After applying, Magento 2 coupon URL shows a banner in the cart such as “Coupon SUMMER was applied”. The code stands in the coupon field, the saving shows in the total. The customer can remove the coupon or enter another one. If the code has expired or is used up, a message explains the reason instead of leaving the customer puzzled. The interface uses Alpine.js and Tailwind.
- Banner with code name and saving
- Remove and replace with another code
- Understandable message for an expired code
QR code and reporting per campaign
For flyers, packaging or trade-fair stands the module creates a QR code image for every link. The report in the admin shows visits, applied and redeemed coupons per link and source. That shows which channel really brings orders, and you can switch off weak links.
- QR code as a download for print and packaging
- Visits, applications and redemptions per link
- Activate, pause and copy links
Where a Magento 2 coupon URL works in marketing
Four channels in which Magento 2 coupon URL replaces the code.
Newsletter and email
Instead of naming the code, the button carries the link. The discount is already active when the visitor lands on the page.
Ads and social media
Every ad points to its own short path. Later you see which campaign was redeemed.
Print and packaging
A QR code on the parcel or flyer brings the customer back to the shop with the coupon applied.
Partners and cooperations
Partners get their own link, the settlement relies on the report per source.
Magento 2 coupon URL: with and without the module compared
The difference to manual code entry.
| Topic | Without module | With Mironsoft Auto Coupon URL |
|---|---|---|
| Redemption | Copy the code and paste it in the cart | One click on the link |
| Empty cart | Code has to be entered again later | Cookie remembers the code and applies it |
| Reporting | Only a total per rule | Visits and redemptions per link and source |
| Type the code | QR code as a download | |
| Support | Requests about typos | Understandable messages in the cart |
How we set up Magento 2 coupon URL for you
The process after you place the order.
Briefing
You name the campaigns and the cart rules that are to be applied by link.
Installation
We install the module, set up Magento 2 coupon URL for your store views and create the first short paths. Afterwards we check parameter, cookie and cart with your rules.
Cookie notice
We align the description of the functional cookie with your cookie overview.
Testing
We test an empty cart, expired codes, minimum value and removing the coupon.
Handover
Your team learns to create and evaluate new links and QR codes itself.
Delimitation from coupon combinations and cart links
The Coupon Stacking Rules module regulates which coupons can be combined. A coupon code link leads to the cart and applies a code there. Magento 2 coupon URL goes further: the parameter works on any URL, a cookie remembers the code, and short paths, QR codes and sources make the campaign measurable.
The code itself is still created as a normal cart rule. The module changes neither discount amount nor validity. Notes about the cookie belong in your privacy policy; the legal review is the shop operator’s responsibility.
No download — personal setup instead
Auto Coupon via URL is not listed here as a ready-made download file for self-installation. The purchase is a service commission: we get in touch after the purchase, install the module in your shop and agree on short paths, cookie and reporting together with you.
Frequently asked questions
Everything important about link, cookie, cart and how the purchase works.
How can I apply a coupon by link in Magento 2?
What happens with Magento 2 coupon URL when the cart is empty at the click?
How can I create a QR code for a coupon in Magento 2?
Is the validity of the cart rule bypassed?
Can the customer remove a coupon applied by Magento 2 coupon URL?
How long does the code stay stored in the cookie?
Can I see which campaign brings orders with Magento 2 coupon URL?
Does Magento 2 coupon URL work with Hyvä?
Do I need cookie consent for this?
Can I download and install the module myself?
Magento 2 Coupon URL – Mironsoft Auto Coupon via URL