Fixed vouchers failing to save on multi-site installs when their voucher type wasn't enabled for every site. Vouchers now only propagate to the sites their voucher type is enabled for. (#153(opens new window))
Added a setup checklist to the Vouchers landing page on new installs, which walks through creating a voucher type, a voucher and the first code, ticking each step off from your data. The usual Vouchers index returns once the first voucher is created, and sites that update the plugin keep their Vouchers index.
Changed
Settings › Emails now shows a “No Commerce emails yet” empty state when there isn't a Commerce email yet, explaining how to add one, with a button to create it.
Fixed
Fixed Settings › Emails showing an empty table instead of its empty message when Commerce had no emails.
Removed
Removed the welcome page shown after installing the plugin, along with its install tracking. New installs now go to the Vouchers index.
4.0.27 2026-11-01
Fixed
Fixed uninstalling the plugin not removing its project config, and reinstalling not detecting existing project config.
Fixed an error when sending a second Commerce email with an attached voucher PDF in the same request or queue run.
Fixed a template set by the beforeRenderPdf event not being used to render the voucher PDF.
Fixed cancelling the beforeMatchCode event not rejecting the voucher code.
Fixed Voucher::getIsEditable() and voucher type index sources reporting vouchers as not editable for non-admin users with permission to manage that voucher type.
Fixed Gift Voucher permissions not being registered on Craft Team and Enterprise editions.
Fixed a database error when filtering voucher codes by the Disabled status.
Fixed Code::getPdfUrl() ignoring its option argument.
4.0.26 2026-10-22
Changed
Updated the frontend build toolchain to Vite 8.3.4.
4.0.25 2026-10-17
Fixed
Fixed checkout failing when an applied gift voucher had no remaining order value to cover.
4.0.24 2026-10-15
Added
Added the maxVoucherCodesPerOrder setting, defaulting to 500. Orders exceeding this combined voucher quantity must be reduced before starting checkout, or the limit increased in configuration. Payments already in progress retain full fulfilment.
Changed
Limited voucher and coupon submissions through Gift Voucher to approximately one request per second per IP address. Faster submissions return HTTP 429; integrations should wait before retrying.
Updated Craft API usage to avoid deprecated calls.
Changed the default and fallback voucher PDF filename to Gift-Voucher.pdf. Custom filename formats are unchanged.
Fixed
Fixed a medium-severity denial-of-service vulnerability.
Fixed a medium-severity authorization vulnerability.
Fixed a medium-severity information disclosure vulnerability.
Fixed two low-severity authorization vulnerabilities.
Fixed a low-severity rate-limit bypass vulnerability.
Fixed payment retries being blocked after a gateway created an incomplete payment attempt. (#151(opens new window))
4.0.23 2026-10-07
Changed
Require Verbb Base 3.0.20 or later so shared control-panel layouts use the current asset bundle namespace. (verbb-base#3(opens new window))
4.0.22 2026-10-05
Fixed
Fixed a medium-severity denial-of-service vulnerability.
Fixed a low-severity authorization vulnerability.
Fixed a low-severity denial-of-service vulnerability affecting bulk code generation.
Fixed a low-severity authorization vulnerability affecting multisite voucher previews.
Fixed a low-severity information disclosure vulnerability affecting PDF error logging.
4.0.21 2026-10-02
Changed
Updated the required version of verbb/base to 3.0.19.
Fixed
Fixed a high-severity server-side template injection vulnerability.
Fixed a high-severity information disclosure vulnerability.
Fixed a high-severity stored-value authorization vulnerability affecting order-based code storage.
Fixed a low-severity authorization vulnerability affecting site-specific voucher content.
Fixed a low-severity information disclosure vulnerability affecting scheduled and expired vouchers.
4.0.20 2026-09-30
Changed
Route plugin settings through the plugin’s authorized settings controller.
Fixed
Fixed a high-severity stored-value accounting vulnerability.