Skip to content

Releases: verbb/gift-voucher

2.0.9

19 Feb 03:24
Compare
Choose a tag to compare

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

17 Feb 08:09
a37bffa
Compare
Choose a tag to compare

Fixed

  • Fix migration issue from Craft 2 to Craft 3.

2.0.7

26 Dec 11:19
Compare
Choose a tag to compare

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 and attach params for PDF.

2.0.6

13 Dec 22:47
Compare
Choose a tag to compare

Changed

  • Use beforeCompleteOrder as the event to generate codes, ensuring they can be used in emails.

2.0.5

13 Dec 21:32
Compare
Choose a tag to compare

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

01 Dec 04:23
Compare
Choose a tag to compare

Added

  • Add beforeCaptureVoucherSnapshot and afterCaptureVoucherSnapshot.

Fixed

  • Fix permissions for vouchers and codes.
  • Fix error occuring when installing plugin via command line

2.0.3

10 Nov 04:24
Compare
Choose a tag to compare

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

26 Oct 09:34
Compare
Choose a tag to compare

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() and getOrderPdfUrl()

2.0.1

17 Oct 21:00
Compare
Choose a tag to compare

Fixed

  • Fixed some deprecation notices
  • Fix redemption error for new codes

2.0.0

17 Oct 11:39
Compare
Choose a tag to compare
  • Craft 3 release.