What you set up
- Nothing but the switch and one number: how many days to remember the code for a visitor who returns without the link (0 = this visit only).
- Create your coupons as usual in Marketing > Coupons.
What shoppers see
- They open the link, shop, and the cart shows the coupon line. Whether the coupon works for that cart (minimum total, dates, uses, customer) is decided by the normal coupon rules of the shop.
- A visitor who already has another code gets the link's code instead. A returning visitor only gets the remembered code when the coupon field is empty.
Safe
- Only a real, active coupon in its dates is accepted; codes with other characters, too long codes, lists, expired or switched-off coupons are ignored without any message. The code is looked up in the database, never written into a page.
- Switch the module off and the link does nothing. No database tables, no storefront text.
Good to know
- It does not show a message that the coupon was added: the cart page shows the coupon line.
- Tested on 2.3, 3.0, 4.0 and 4.1 with the real admin installer, 40 to 42 checks each. Not checked in a real browser or through the One Page Checkout.