Skip to content

Releases: verbb/gift-voucher

2.2.1

13 Feb 03:27
Compare
Choose a tag to compare

Fixed

  • Fix missing order properties for PDFs generated in CP. (thanks @jmauzyk).
  • Fix populateLineItem to work with Commerce 3.x.

2.2.0

29 Jan 07:19
Compare
Choose a tag to compare

Added

  • Craft 3.4 compatibility.
  • Commerce 3.0 compatibility.

2.1.2

08 Jan 21:21
Compare
Choose a tag to compare

Fixed

  • Fix registerAdjuster = afterTax not working correctly.

2.1.1

08 Jan 14:06
Compare
Choose a tag to compare

Added

  • Add registerAdjuster plugin setting to control when the adjuster should be applied. Valid options are beforeTax (default) and afterTax.

2.1.0

04 Jan 05:46
Compare
Choose a tag to compare

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 the add or remove 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

25 Aug 03:26
Compare
Choose a tag to compare

Fixed

  • Fix incorrect migration.

2.0.12.1

25 Aug 02:19
Compare
Choose a tag to compare

Fixed

  • Fix namespacing issue.

2.0.12

25 Aug 01:40
Compare
Choose a tag to compare

Added

  • Add support for Klaviyo Connect plugin.
  • Add support for Commerce 3.

Changed

  • Adjust template functions vouchers() and codes() 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

01 Jun 02:28
Compare
Choose a tag to compare

Added

  • Add override notice for settings fields.

Fixed

  • Fix missing sku and price query params.
  • Fix error in element HUD.

2.0.10

27 Feb 07:42
Compare
Choose a tag to compare

Fixed

  • Fix multiple tabs for voucher types not showing.
  • Fix “New voucher” layout issue when switching voucher types