Releases: verbb/gift-voucher
Releases · verbb/gift-voucher
2.7.0
Added
- Added
resave/gift-voucher-codes
andresave/gift-voucher-vouchers
console commands. - Added
orderReference
to the searchable attributes for voucher codes.
Changed
- Reverted adjuster behaviour back to 2.5.x version, fixing many issues.
- Voucher adjusters not use a
voucher
type instead ofdiscount
to fix many issues.
Fixed
- Fix an error when clicking "New voucher" when adding a voucher in the Bulk Generate Codes function.
- Fix a hard-error shown when saving a voucher with no price.
- Fix "Voucher Type" column not displaying correctly for the codes element index.
- Fix "All voucher types" not appearing in the control panel for codes element index.
2.6.3
Changed
- Extend voucher expiry from 24 to 36 months.
2.6.2
Fixed
- Fix when attaching the PDF to an email, clears the body content of the email.
- Fix an override warning message not showing for the
attachPdfToEmails
config setting in the control panel. - Fix debug console output in the control panel.
2.6.1
Fixed
- Fix shipping discount being applied when total amount already redeemed (introduced in 2.6.0).
2.6.0
Changed
- Major refactor of discount adjuster, which is used when applying a voucher code on an order. This change fixes a few issues with Commerce 3.4+.
- Discounts are now spread over all line items, when applying a voucher code. This is inline with Craft Commerce's discount adjusters are handled.
- Now requires Craft Commerce 3.4+.
Fixed
- Fixed duplicate discounts being applied to orders when redeeming a code, in some instances.
- Fixed some cases when tax on a shipping method was being charged, despite the discount being applied to a shipping methods' cost.
2.5.10
Added
- Add
EVENT_BEFORE_MATCH_CODE
event for adding custom code matching logic. (thanks @superbigco).
Fixed
- Fix an error when generating PDFs and custom fonts, where the temporary folder isn’t writable (or created).
- Ensure we register the discount adjuster via
EVENT_REGISTER_DISCOUNT_ADJUSTERS
to fix some compatibility issues. - Fix vouchers being applied to new orders, when creating new orders in the control panel.
2.5.9
Added
- Add bulk voucher code generation page. (thanks @jerome2710).
- Add
EVENT_MODIFY_RENDER_OPTIONS
event for modifying the DomPDF options during render.
Fixed
- Fix incorrectly using
fieldLayoutId
for plugin settings, when fetching Codes’ field layouts. This could lead to some installs not generating voucher codes correctly upon checkout.
2.5.8
Added
- Add
promotable
andavailableForPurchase
options to vouchers.
2.5.7
Fixed
- Fix gift vouchers attaching to emails, even when disabled.
- Change logging from
error
toinfo
when an order doesn’t contain a gift voucher.
2.5.6
Added
- Add more logging around post-checkout functionality.
Changed
- Post-checkout functionality is now performed on
EVENT_AFTER_COMPLETE_ORDER
rather thanEVENT_BEFORE_COMPLETE_ORDER
.
Fixed
- Fix permission translation error.