Changelog

3.0.21 2026-01-13

Changed

  • Update voucher handling for includeShipping = false to include non-inclusive tax.

3.0.20 2025-11-29

Added

  • Add support for sorting Voucher Codes by “Original Amount”, “Current Amount”, “Expiry Date”, and “Date Updated”.
  • Add Description Format to Voucher Types to allow control over the line item description for a Voucher.

3.0.19 2025-11-06

Fixed

  • Fix PDF handling for Craft Cloud.

3.0.18 2025-07-18

Added

  • Add includeShipping plugin setting to include or exclude shipping costs for voucher redemption.

Changed

  • Update English translations.
  • Update voucher shipping handling to support line item shipping rates.

3.0.17 2025-05-02

Fixed

  • Fix an error when generating PDFs for vouchers with no orders.

3.0.16 2025-05-01

Changed

  • Update PDF URLs to use UIDs instead of IDs.

Fixed

  • Fix PDF handling for Craft Cloud.

3.0.15 2025-03-05

Changed

  • Improve redemption querying performance.

Fixed

  • Fix deleteRedemption return value.

3.0.14 2024-09-07

Changed

  • Change “Share” button to “View” for vouchers, for consistency with Craft/Commerce.

Fixed

  • Fix missing product variable when previewing a voucher.
  • Fix an error when duplicating a voucher.
  • Fix saving a code with a decimal value being cast to an int.

3.0.13 2024-07-10

Added

  • Add support for orderSite for PDF URLs.

Changed

  • Update English translations.
  • Switch session handler to use Craft’s Session helper.

Fixed

  • Fix an error when saving a new site.
  • Fix session-handling to check for console requests.
  • Fix vouchers always being re-saved when updating a site or force-applying project config.

3.0.12 2024-03-04

Added

  • Add support for programatically setting a code’s codeKey.

Fixed

  • Fix order of operations when uninstalling the plugin.

3.0.11 2024-01-30

Added

  • PDFs now support using the current site’s locale language and formatting.

3.0.10 2023-12-08

Added

  • Add currently-applied voucher codes to manage for modal when editing an order in the control panel.
  • Add codeKey as an available variable for the voucherCodesPdfFilenameFormat setting.

Changed

  • Voucher modal now shows message instead of refreshing, ensuring unsaved changes to the order aren’t discarded.

Fixed

  • Fix “enter” key not submitting the gift voucher modal when editing an order in the control panel.
  • Fix codeKey reference when rendering PDFs.

3.0.9 2023-10-25

Fixed

  • Implement Element::trackChanges() for Blitz compatibility.

3.0.8 2023-10-08

Fixed

  • Fix an issue when creating new sites and not propagating voucher types correctly.

3.0.7 2023-03-09

Changed

  • Only admins are now allowed to access plugin settings.

Fixed

  • Fix an error when creating a voucher of custom value with no value provided.
  • Fix an error when creating a voucher code. (thanks @darinlarimore).

3.0.6 2022-12-25

Fixed

  • Fix an error when viewing a voucher code with no order associated with it.

3.0.5 2022-11-30

Fixed

  • Fix permissions check for managing Vouchers and Codes.
  • Fix voucher and code element indexes not providing edit links due to Craft 4.3.2 changes.
  • Fix cannot assign Dompdf\Options to property PdfRenderOptionsEvent::$options. (thanks @CMeldgaard).
  • Fix an error when saving vouchers containing commas in price.

3.0.4 2022-11-15

Fixed

  • Fix an error when trying to generate a PDF for a voucher in the control panel.
  • Fix issues with int type check, and error checking in tabs. (thanks @darinlarimore).

3.0.3 2022-11-10

Fixed

  • Fix an error when trying to edit a Code object in the control panel.

3.0.2 2022-10-23

Added

  • Add tabs for codes not working correctly in the control panel.

3.0.1 2022-10-21

Fixed

  • Fix an error when combining a Commerce discount and Gift Voucher code with stopProcessing enabled.
  • Fix an error when saving a voucher without an SKU.
  • Fix an error when applying a Craft discount code.
  • Fix codeStorage type.
  • Fix an error running resave console commands.

3.0.0 2022-08-25

Added

  • Add missing English translations.
  • Add dateCreated, dateUpdated and uid to Redemption model.

Changed

  • Now requires PHP ^8.0.2.
  • Now requires Craft ^4.0.0.
  • Now requires Craft Commerce ^4.0.0.
  • Replace deprecated Craft.postActionRequest() for JS.

Fixed

  • Fix an error when uninstalling.
  • Fix redemptions table showing the order date instead of the date of the redemption date.
  • Fix an error when viewing a redemption without and order in the control panel.
  • Fix an error fetching new redemption records.
  • Fix a type error with redemption codes.