Automatic Coupon via Link (URL Parameter)
Share a link with a ?coupon= parameter so the coupon applies automatically at checkout — no manual code entry.
Automatic Coupon via Link (URL Parameter)
This feature makes a coupon apply automatically when a customer opens a special link — they never have to type the coupon code by hand. Just share your store link with a ?coupon= parameter via WhatsApp, Instagram, email, or ads. It removes the "what was the code again?" friction that often causes customers to abandon checkout.
How to use it
Append ?coupon=YOURCODE to your store address:
https://yourstore.com/?coupon=SAVE10
- The link can point to any page — home, a product, a category, or checkout directly. The coupon "sticks" until the customer reaches checkout.
- The code is case-insensitive —
save10andSAVE10are the same. - The
?coupon=parameter is automatically stripped from the URL after it is read, keeping the address clean. - Other query parameters are preserved, e.g.
?utm_source=ig&coupon=SAVE10.
Where it applies
- Checkout page — both the default checkout and Alus Builder checkout templates.
- Mini Checkout element — only if its Enable Coupon setting is turned on.
Requirements
- For the checkout page: enable the coupon option in your store's checkout settings.
- For Mini Checkout: turn on the Enable Coupon toggle in the element settings (Payment group).
If coupons are disabled, the coupon form is hidden and the ?coupon= link has no effect.
Validation stays server-side
The link is only a prefill — not a way to bypass validation. All coupon rules are checked on the server when the coupon is applied and again when the order is created: expiry, usage quota, product scope, and customer scope.
When the coupon is invalid
If the linked coupon cannot be applied, the reason is shown right below the coupon form and no discount is given. For example:
- Expired → "Kode kupon sudah kedaluwarsa."
- Not applicable to cart products → "Kupon ini tidak berlaku untuk produk di keranjang Anda."
- Quota reached → "Kupon ini sudah mencapai batas penggunaan."
Product scope note: if the cart contains some matching products, the discount still applies to those matching items. The coupon only fails entirely when none of the cart items are within scope.
Detailed behavior
- A linked coupon never overrides a code the customer typed or applied manually.
- Once applied, it stays active even after a page reload.
- If the customer removes the coupon manually, it will not re-apply automatically.
- The stored code is cleared once an order is successfully created.