Skip to content

Releases: verbb/gift-voucher

2.7.0

11 Dec 21:24
Compare
Choose a tag to compare

Added

  • Added resave/gift-voucher-codes and resave/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 of discount 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

29 Oct 21:21
Compare
Choose a tag to compare

Changed

  • Extend voucher expiry from 24 to 36 months.

2.6.2

06 Oct 07:38
Compare
Choose a tag to compare

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

23 Aug 11:55
Compare
Choose a tag to compare

Fixed

  • Fix shipping discount being applied when total amount already redeemed (introduced in 2.6.0).

2.6.0

22 Aug 05:13
Compare
Choose a tag to compare

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

07 Jul 23:27
Compare
Choose a tag to compare

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

29 Mar 09:40
Compare
Choose a tag to compare

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

13 Feb 03:50
Compare
Choose a tag to compare

Added

  • Add promotable and availableForPurchase options to vouchers.

2.5.7

21 Jan 23:31
Compare
Choose a tag to compare

Fixed

  • Fix gift vouchers attaching to emails, even when disabled.
  • Change logging from error to info when an order doesn’t contain a gift voucher.

2.5.6

12 Dec 04:27
Compare
Choose a tag to compare

Added

  • Add more logging around post-checkout functionality.

Changed

  • Post-checkout functionality is now performed on EVENT_AFTER_COMPLETE_ORDER rather than EVENT_BEFORE_COMPLETE_ORDER.

Fixed

  • Fix permission translation error.