Shopware plugin: Send rabatkode med i URL

Gør dine kampagner nemmere med rabatkoder direkte i URL’en

Pluginet er lavet af mig fra bunden, det virker til Shopware 6.6 og nok også Shopware 6.7.

Forestil dig at kunne sende et link ud i dit nyhedsbrev, hvor rabatkoden allerede er inkluderet. Kunden klikker – og bum – rabatten er automatisk klar i checkout. Ingen manuelle indtastninger. Ingen friktion.

Det er præcis, hvad vores URL Promotion Code-plugin til Shopware gør muligt.

Brugsscenarier – hvad kan du bruge det til?

✅ Nyhedsbreve

Send et link som:

https://dinshop.dk/?promotioncode=SOMMER25

og lad kunden modtage rabatten automatisk.

✅ Influencer-samarbejder

Giv dine partnere unikke links, så deres følgere ikke skal huske eller skrive noget – bare klik og shop med rabat.

✅ Retargeting eller Meta Ads

Brug koden direkte i dine annonce-URL’er og gør det nemmere for kunden at konvertere.

✅ QR-koder eller flyers

Print QR-koder med en indbygget rabat og mål effekten af fysiske kampagner.


Sådan fungerer det teknisk

Når en besøgende klikker på et link med en ?promotioncode=RABATKODE, sker følgende:

  1. Plugin’et registrerer koden og gemmer den i en cookie i browseren.
  2. Når kunden tilføjer produkter til kurven eller går direkte til checkout, bliver rabatkoden automatisk anvendt, hvis den matcher en aktiv kampagne.
  3. Hvis rabatkoden ikke er gyldig eller ikke længere aktiv, sker der ingenting – og brugeren får ingen fejlbesked, så oplevelsen forbliver gnidningsfri.

Du slipper for, at kunden skal huske eller indtaste noget – hvilket er en stor konverteringsfordel i kampagner, hvor hvert klik tæller.

Installation og brug

  1. Download pluginet her
  2. Upload plugin’et til Shopware som normalt.
  3. Aktiver det.
  4. Opret din ønskede rabatkode i Marketing > Promotioner.
  5. Brug en URL som:https://dinshop.dk/?promotioncode=RABAT2025– og plugin’et klarer resten.

Vil du gøre dine kampagner nemmere og mere effektive?

Så er URL Promotion Code-plugin’et et must-have i din Shopware-værktøjskasse.

Mindre friktion = flere konverteringer.

___________________

English

___________________

Make Promotions Frictionless: Apply Discount Codes from a URL

Imagine sending out a newsletter where the discount is already applied when the customer clicks the link. No typing. No copy-pasting. Just click and shop with a discount.

That’s exactly what our URL Promotion Code plugin for Shopware makes possible.


What can you use it for?

✅ Email campaigns

Send a link like:

https://yourshop.com/?promotioncode=SUMMER25

and the discount is ready when the customer reaches the checkout.

✅ Influencer or affiliate marketing

Give each partner a unique link with a built-in code — perfect for social traffic.

✅ Retargeting ads or Meta campaigns

Use discount links in your ad destinations to reduce friction and boost conversions.

✅ QR codes or print flyers

Generate QR codes that embed the promotion code directly — great for tracking offline campaigns.


How it works (technically)

  1. When someone visits your shop with a URL that includes ?promotioncode=YOURCODE,the plugin stores the code in a cookie.
  2. When the customer adds products to the cart or heads to checkout,the plugin automatically applies the discount code — no manual input needed.
  3. If the code doesn’t match any active promotions, nothing is applied,and the customer continues without interruption.

That’s it. A smoother path to purchase, with fewer chances for drop-off.


How to set it up

  1. Download plugin here
  2. Install the plugin as you normally do in Shopware.
  3. Activate it from the plugin manager.
  4. Create a discount code in Marketing > Promotions.
  5. Share links like:https://yourshop.com/?promotioncode=BLACKFRIDAY— and let the plugin handle the rest.

Why use it?

Because less friction means higher conversion.

This plugin is a must-have for any Shopware store that runs frequent campaigns, especially where you want to make it as easy as possible for the customer to redeem a discount.