Releases: verbb/gift-voucher
Releases · verbb/gift-voucher
2.0.9
Added
- Added “Don’t allow voucher codes to be used if discounts are applied on the order”. By default, discount codes and voucher codes can be applied to an order together, which may not always be desired. This setting honours the "Don’t apply subsequent discounts if this discount is applied" for discounts.
2.0.8
Fixed
- Fix migration issue from Craft 2 to Craft 3.
2.0.7
Fixed
- Include translation of Adjuster description. Thanks (@Anubarak).
- Set the
codeKey
to the element after storing the record to use it directly after the Code is created. Thanks (@Anubarak). - Add PDF config settings, rather than from Commerce.
- Fix PDF paper orientation and size not changing from defaults.
- Bring back missing
format
andattach
params for PDF.
2.0.6
Changed
- Use
beforeCompleteOrder
as the event to generate codes, ensuring they can be used in emails.
2.0.5
Added
- Add
afterVoucherAdjustmentsCreated
.
Fixed
- Fix querying codes by voucherId not working.
- Fix codes not being generated correctly after checkout completion.
- Fix redemptions not being generated correctly after checkout completion.
2.0.4
Added
- Add
beforeCaptureVoucherSnapshot
andafterCaptureVoucherSnapshot
.
Fixed
- Fix permissions for vouchers and codes.
- Fix error occuring when installing plugin via command line
2.0.3
Added
- Allow PDFs to be generated for single voucher codes.
- Add type to snapshot data.
Fixed
- Fix Gift Voucher element field name.
- Fix error when deleting a voucher.
- Fix querying by
voucherId
on a code. - Fix error when querying and saving vouchers.
2.0.2
Added
- Add product method for voucher for easy commerce compatibility
- Add field data to line item snapshot
Changed
- Codes are now generated after the order is paid, instead of when complete
- Bring back
getPdfUrl()
andgetOrderPdfUrl()
2.0.1
Fixed
- Fixed some deprecation notices
- Fix redemption error for new codes
2.0.0
- Craft 3 release.