Releases: verbb/gift-voucher
Releases · verbb/gift-voucher
2.5.5
Fixed
- Ensure critical errors are logged during the order complete event.
- Fix critical errors preventing orders from completing correctly.
2.5.4
Fixed
- Fix potential error with
isVoucher
and line item purchasables.
2.5.3
Added
- Add support to apply gift voucher from the control panel, when editing an incomplete order.
- Add ability to attach gift voucher PDFs to Commerce emails.
Fixed
- Fix an error when no code is found when applying voucher codes.
2.5.2
Changed
- Custom fields are no longer serialized in the snapshot of a voucher. Please use
EVENT_AFTER_CAPTURE_VOUCHER_SNAPSHOT
andEVENT_BEFORE_CAPTURE_VOUCHER_SNAPSHOT
events to opt-in any custom fields you want serialized in the snapshot. This follows Commerce's behaviour.
Fixed
- Fix incorrectly serializing Super Table queries when taking a snapshot of Gift Vouchers when adding to the cart.
- Fix
EVENT_AFTER_CAPTURE_VOUCHER_SNAPSHOT
event not actually doing much. - Prevent code field layout ID from being creating multiple times when saving plugin settings.
2.4.6
Fixed
- Fix error when checking out, due to to project config containing potentially incorrect
fieldLayoutId
values for codes.
2.4.5
Fixed
- Prevent code field layout ID from being creating multiple times when saving plugin settings.
2.5.1
2.4.4
Fixed
- Fix a potential security vulnerability where the last-created voucher could be redeemed by any user.
2.1.3
Fixed
- Fix a potential security vulnerability where the last-created voucher could be redeemed by any user.
2.5.0
Added
- Add support for Craft 3.5 field designer for code elements.
- Add support for Craft 3.5 field designer for voucher elements.
Changed
- Now requires Craft 3.5+.
- Now requires Craft Commerce 3.2+.