Releases: verbb/gift-voucher
Releases · verbb/gift-voucher
2.2.1
2.2.0
Added
- Craft 3.4 compatibility.
- Commerce 3.0 compatibility.
2.1.2
Fixed
- Fix
registerAdjuster
=afterTax
not working correctly.
2.1.1
Added
- Add
registerAdjuster
plugin setting to control when the adjuster should be applied. Valid options arebeforeTax
(default) andafterTax
.
2.1.0
Added
- Add the ability to set field layouts for Voucher Codes. (thanks @Anubarak).
- Add a field layout designer to the settings for Voucher Codes. (thanks @Anubarak).
- Add an event
PopulateCodeFromLineItemEvent
to set additional fields/properties when a new Code is created based on a Voucher/LineItem. (thanks @Anubarak). - Add an event to validate LineItem options for custom fields in the Code. (thanks @Anubarak).
- Add a migration to include an initial empty
content
record for all existing Voucher Codes. (thanks @Anubarak). - Add a new setting
fieldsPath
that represents the path of custom fields in the LineItems options. (thanks @Anubarak). - Add additional Tabs for custom fields in the Voucher Code if there are any. (thanks @Anubarak).
- Add a component
codeStorage
for storing and receiving codes that are used. (thanks @Anubarak). - Add an interface for
codeStorage
and the possibility to use custom classes/components. (thanks @Anubarak). - Add a class
Session
for storing the used codes for an order in the session. (thanks @Anubarak). - Add a class
Order
for storing the used codes for an order in the field layout in a Codes field. (thanks @Anubarak). - Add a new Code relation field type. (thanks @Anubarak).
- Add template hook
cp.gift-voucher.voucher.edit.details
(thanks @samuelbirch).
Changed
- All codeKeys are now grabbed via
GiftVoucher::getInstance()->getCodeStorage()->getCodeKeys($order);
. (thanks @Anubarak). - All codeKeys are now set via
GiftVoucher::getInstance()->getCodeStorage()->set($codeKeys, $order);
or theadd
orremove
function. - This will make sure you can add a VoucherCode in the CP. (thanks @Anubarak).
- Use a custom controller to store the plugins settings ensuring the new Field Layout setting is stored properly. (thanks @Anubarak).
Fixed
- Fixed minor session issue. (thanks @Anubarak).
- Display inactive Vouchers in the CP. (thanks @Anubarak).
- Fixed a Bug that could occur when re-saving an order via job, Craft already closes the session before running the job -> the adjuster has no valid session. (thanks @Anubarak).
- Fix missing date columns in code element index.
- Fix voucher discount being applied after tax.
- Fix incorrect multi-site URL redirection when switching sites for a voucher.
2.0.13
Fixed
- Fix incorrect migration.
2.0.12.1
Fixed
- Fix namespacing issue.
2.0.12
Added
- Add support for Klaviyo Connect plugin.
- Add support for Commerce 3.
Changed
- Adjust template functions
vouchers()
andcodes()
to allow criteria as params.
Fixed
- Incorrect permission for voucher types.
- Fix anonymous requests to gift voucher previewing.
- Fix missing Commerce requirement.
- Fix missing expiryDate column.
- Fix voucher search indexes.
- Fix lack of registering Code as an element type.
- Add codeKey to searchable attributes.
- Fix legacy codes (from Craft 2) not correctly being elements.
- Fix lack of integrity constraint on codes.
2.0.11
Added
- Add override notice for settings fields.
Fixed
- Fix missing
sku
andprice
query params. - Fix error in element HUD.
2.0.10
Fixed
- Fix multiple tabs for voucher types not showing.
- Fix “New voucher” layout issue when switching voucher types