This function does not need to be activated.
How redemption works
The sub-vouchers occupy the same slots as multiple redeemed vouchers. This results in the upper limit of nine sub-vouchers per META code.
The file meta_vouchers.json
Create the file manually in the shop’s configuration directory, i.e. in the directory that applies to all subshops. It contains one entry per META code.
The META code is looked up case-insensitively. A customer who enters
sommer2026 therefore matches the entry SOMMER2026.The settings in the shop configuration
MetaVoucherErrorMode
reject-all is the default, and any unrecognized value also leads to it. It is the more honest option: the customer either gets the whole package or nothing at all, and is not puzzled by a partial discount.With
accept-valid, the shop only suppresses the error message if at least one sub-voucher has already been redeemed successfully. If the very first one fails, the customer sees its error message, even if the following sub-vouchers take effect.MetaVoucherShowAsBlock
With
no, the shop keeps count during deletion. Once the last sub-voucher has been removed, it also resets the META data, and the customer can enter a different META code.The setting in the file overrides the setting in the configuration. This allows a single promotion to be handled differently without changing the default for all others.
Extending the templates (optional)
Four tags make it visible in the template that a voucher originates from a META code.The tags are also available inside the loop over the additional vouchers. With multiple redeemed vouchers, you therefore need the block in both places: outside the loop for the first voucher and inside it for the others.
Related topics
- Guide: Offering vouchers: Overview
- Guide: Providing voucher entry
- Guide: Redeeming multiple vouchers
