Generate a promotion code in Flow Builder and send it by e-mail
Description
Highlights
About the Extension
Create individual promotion codes in the Flow Builder and send them automatically
Many campaigns fail not because of the idea, but because of the effort. You want to send a customer a personal discount code after a purchase, but out of the box Shopware cannot create an individual code inside the Flow Builder. This plugin closes exactly that gap. It adds a new Flow Builder action that turns an existing promotion into a single-use code and makes it available for the e-mail right away. That means you send personal voucher codes automatically, without creating a single code by hand.
How it works
You build a flow in the Flow Builder as usual. At the right point you add the action Generate promotion code and select the promotion you want to use. The plugin then creates an individual code for that promotion. Afterwards you add a send e-mail action that delivers the code to the customer. The generated code is available in the mail as the variable {{ promotionCode }}, so you can place it anywhere in your template.
Ready-made e-mail template included
To get you started immediately, the plugin ships its own editable e-mail template “Promotion Code Email" that already contains the code. You can use this template directly or use your own and insert the code through the variable. The texts live as a standard Shopware mail template and can be edited freely.
Control over how codes are issued
- Once per customer. If you like, each customer receives only a single code for the same promotion, so the same person cannot benefit multiple times.
- Only when no code was used. Optionally, no new code is created when the order already used a promotion code.
- Always create a new code. You decide whether a fresh code is created every time or an unused code is reused.
- Traceable. Generated codes are logged, so the once-per-customer rule works reliably.
Typical use cases
- A personal thank-you discount after a purchase or after a submitted review.
- Re-activating inactive customers with a one-time, personalised code.
- Rewarding newsletter sign-ups or other desired actions.
In every case the flow stays the same. You combine any trigger with the code action and the e-mail step, and Shopware handles the rest automatically.
Requirement
The code is created from an existing Shopware promotion with individual codes. So first create a promotion, enable individual codes and a code pattern there, and then select that promotion in the flow action.
Support & further development
Missing a feature or run into a bug? Just get in touch or open a ticket. We're happy to hear every feature request and will gladly implement it where it makes sense. Reported issues are fixed as quickly as possible, so your shop keeps running reliably.
Details
- Available: English, German
- Latest update: 23 July 2026
- Publication date: 7 July 2026
- Version: 1.0.6
- Category: Email Marketing
Resources
Reviews (0)
About the Extension Partner
Onlineschmiede
Partner Status
-
Shopware
Silver Partner -
Shopware
Extension Partner
Details
- Partner since: 2023
- Extensions: 13
- Certifications: 4
Support
- Based in: Austria
- Speaks: German, English
- Response time: Very quickly