Gift Voucher Changelog

Keep up to date with all the changes with Gift Voucher.

Gift Voucher 3.x is on version 3.0.12, released on Mar 04, 2024

  • theicons.co/svg/photo-09 Created with Sketch. 50 New features
  • theicons.co/svg/others-47 Created with Sketch. 30 Improvements
  • theicons.co/svg/home-36 Created with Sketch. 122 Bug fixes
View latest release (3.0.12) on the Plugin Store

3.0.12 - Latest Release

Released Mar 04, 2024

  • theicons.co/svg/photo-09 Created with Sketch.

    Add support for programatically setting a code’s codeKey.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix order of operations when uninstalling the plugin.

3.0.11

Released Jan 30, 2024

  • theicons.co/svg/photo-09 Created with Sketch.

    PDFs now support using the current site’s locale language and formatting.

3.0.10

Released Dec 08, 2023

  • theicons.co/svg/photo-09 Created with Sketch.

    Add currently-applied voucher codes to manage for modal when editing an order in the control panel.

  • theicons.co/svg/photo-09 Created with Sketch.

    Add codeKey as an available variable for the voucherCodesPdfFilenameFormat setting.

  • theicons.co/svg/others-47 Created with Sketch.

    Voucher modal now shows message instead of refreshing, ensuring unsaved changes to the order aren’t discarded.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix “enter” key not submitting the gift voucher modal when editing an order in the control panel.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix codeKey reference when rendering PDFs.

3.0.9

Released Oct 25, 2023

  • theicons.co/svg/home-36 Created with Sketch.

    Implement Element::trackChanges() for Blitz compatibility.

3.0.8

Released Oct 08, 2023

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an issue when creating new sites and not propagating voucher types correctly.

3.0.7

Released Mar 09, 2023

  • theicons.co/svg/others-47 Created with Sketch.

    Only admins are now allowed to access plugin settings.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when creating a voucher of custom value with no value provided.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when creating a voucher code. (thanks @darinlarimore).

3.0.6

Released Dec 25, 2022

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when viewing a voucher code with no order associated with it.

3.0.5

Released Nov 30, 2022

  • theicons.co/svg/home-36 Created with Sketch.

    Fix permissions check for managing Vouchers and Codes.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix voucher and code element indexes not providing edit links due to Craft 4.3.2 changes.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix cannot assign Dompdf\Options to property PdfRenderOptionsEvent::$options. (thanks @CMeldgaard).

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when saving vouchers containing commas in price.

3.0.4

Released Nov 15, 2022

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when trying to generate a PDF for a voucher in the control panel.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix issues with int type check, and error checking in tabs. (thanks @darinlarimore).

3.0.3

Released Nov 10, 2022

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when trying to edit a Code object in the control panel.

3.0.2

Released Oct 23, 2022

  • theicons.co/svg/photo-09 Created with Sketch.

    Add tabs for codes not working correctly in the control panel.

3.0.1

Released Oct 21, 2022

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when combining a Commerce discount and Gift Voucher code with stopProcessing enabled.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when saving a voucher without an SKU.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when applying a Craft discount code.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix codeStorage type.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error running resave console commands.

3.0.0

Released Aug 25, 2022

  • theicons.co/svg/photo-09 Created with Sketch.

    Add missing English translations.

  • theicons.co/svg/photo-09 Created with Sketch.

    Add dateCreated, dateUpdated and uid to Redemption model.

  • theicons.co/svg/others-47 Created with Sketch.

    Now requires PHP ^8.0.2.

  • theicons.co/svg/others-47 Created with Sketch.

    Now requires Craft ^4.0.0.

  • theicons.co/svg/others-47 Created with Sketch.

    Now requires Craft Commerce ^4.0.0.

  • theicons.co/svg/others-47 Created with Sketch.

    Replace deprecated Craft.postActionRequest() for JS.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when uninstalling.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix redemptions table showing the order date instead of the date of the redemption date.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when viewing a redemption without and order in the control panel.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error fetching new redemption records.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix a type error with redemption codes.

2.7.5

Released Dec 08, 2023

  • theicons.co/svg/photo-09 Created with Sketch.

    Add currently-applied voucher codes to manage for modal when editing an order in the control panel.

  • theicons.co/svg/others-47 Created with Sketch.

    Voucher modal now shows message instead of refreshing, ensuring unsaved changes to the order aren’t discarded.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix “enter” key not submitting the gift voucher modal when editing an order in the control panel.

2.7.4

Released Oct 08, 2023

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an issue when creating new sites and not propagating voucher types correctly.

2.7.3

Released Oct 23, 2022

  • theicons.co/svg/photo-09 Created with Sketch.

    Add tabs for codes not working correctly in the control panel.

2.7.2

Released Aug 25, 2022

  • theicons.co/svg/photo-09 Created with Sketch.

    Add dateCreated, dateUpdated and uid to Redemption model.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix redemptions table showing the order date instead of the date of the redemption date.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when viewing a redemption without and order in the control panel.

2.7.1

Released June 10, 2022

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when trying to redeem a voucher code, when the linked voucher has been deleted.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix being unable to modify a code’s voucher in the control panel.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix Swiftmailer dropping message after attaching voucher PDF.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error in Postgres when resaving a voucher code.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix PDF generation URLs not being correct in headless environments.

2.7.0

Released Dec 12, 2021

  • theicons.co/svg/photo-09 Created with Sketch.

    Added resave/gift-voucher-codes and resave/gift-voucher-vouchers console commands.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added orderReference to the searchable attributes for voucher codes.

  • theicons.co/svg/others-47 Created with Sketch.

    Reverted adjuster behaviour back to 2.5.x version, fixing many issues.

  • theicons.co/svg/others-47 Created with Sketch.

    Voucher adjusters not use a voucher type instead of discount to fix many issues.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when clicking "New voucher" when adding a voucher in the Bulk Generate Codes function.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix a hard-error shown when saving a voucher with no price.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix "Voucher Type" column not displaying correctly for the codes element index.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix "All voucher types" not appearing in the control panel for codes element index.

2.6.3

Released Oct 30, 2021

  • theicons.co/svg/others-47 Created with Sketch.

    Extend voucher expiry from 24 to 36 months.

2.6.2

Released Oct 06, 2021

  • theicons.co/svg/home-36 Created with Sketch.

    Fix when attaching the PDF to an email, clears the body content of the email.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an override warning message not showing for the attachPdfToEmails config setting in the control panel.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix debug console output in the control panel.

2.6.1

Released Aug 23, 2021

  • theicons.co/svg/home-36 Created with Sketch.

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

2.6.0

Released Aug 22, 2021

  • theicons.co/svg/others-47 Created with Sketch.

    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+.

  • theicons.co/svg/others-47 Created with Sketch.

    Discounts are now spread over all line items, when applying a voucher code. This is inline with Craft Commerce's discount adjusters are handled.

  • theicons.co/svg/others-47 Created with Sketch.

    Now requires Craft Commerce 3.4+.

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed duplicate discounts being applied to orders when redeeming a code, in some instances.

  • theicons.co/svg/home-36 Created with Sketch.

    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

Released July 08, 2021

  • theicons.co/svg/photo-09 Created with Sketch.

    Add EVENT_BEFORE_MATCH_CODE event for adding custom code matching logic. (thanks @superbigco).

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when generating PDFs and custom fonts, where the temporary folder isn’t writable (or created).

  • theicons.co/svg/home-36 Created with Sketch.

    Ensure we register the discount adjuster via EVENT_REGISTER_DISCOUNT_ADJUSTERS to fix some compatibility issues.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix vouchers being applied to new orders, when creating new orders in the control panel.

2.5.9

Released Mar 29, 2021

  • theicons.co/svg/photo-09 Created with Sketch.

    Add bulk voucher code generation page. (thanks @jerome2710).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add EVENT_MODIFY_RENDER_OPTIONS event for modifying the DomPDF options during render.

  • theicons.co/svg/home-36 Created with Sketch.

    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

Released Feb 13, 2021

  • theicons.co/svg/photo-09 Created with Sketch.

    Add promotable and availableForPurchase options to vouchers.

2.5.7

Released Jan 22, 2021

  • theicons.co/svg/home-36 Created with Sketch.

    Fix gift vouchers attaching to emails, even when disabled.

  • theicons.co/svg/home-36 Created with Sketch.

    Change logging from error to info when an order doesn’t contain a gift voucher.

2.5.6

Released Dec 12, 2020

  • theicons.co/svg/photo-09 Created with Sketch.

    Add more logging around post-checkout functionality.

  • theicons.co/svg/others-47 Created with Sketch.

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

  • theicons.co/svg/home-36 Created with Sketch.

    Fix permission translation error.

2.5.5

Released Nov 26, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Ensure critical errors are logged during the order complete event.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix critical errors preventing orders from completing correctly.

2.5.4

Released Nov 07, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix potential error with isVoucher and line item purchasables.

2.5.3

Released Nov 06, 2020

  • theicons.co/svg/photo-09 Created with Sketch.

    Add support to apply gift voucher from the control panel, when editing an incomplete order.

  • theicons.co/svg/photo-09 Created with Sketch.

    Add ability to attach gift voucher PDFs to Commerce emails.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix an error when no code is found when applying voucher codes.

2.5.2

Released Oct 08, 2020

  • theicons.co/svg/others-47 Created with Sketch.

    Custom fields are no longer serialized in the snapshot of a voucher. Please use EVENT_AFTER_CAPTURE_VOUCHER_SNAPSHOT and EVENT_BEFORE_CAPTURE_VOUCHER_SNAPSHOT events to opt-in any custom fields you want serialized in the snapshot. This follows Commerce's behaviour.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix incorrectly serializing Super Table queries when taking a snapshot of Gift Vouchers when adding to the cart.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix EVENT_AFTER_CAPTURE_VOUCHER_SNAPSHOT event not actually doing much.

  • theicons.co/svg/home-36 Created with Sketch.

    Prevent code field layout ID from being creating multiple times when saving plugin settings.

2.5.1

Released Sept 18, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix a potential security vulnerability where the last-created voucher could be redeemed by any user.

  • theicons.co/svg/home-36 Created with Sketch.

    Replace hard coded currency with order currency. (thanks @yingban).

2.5.0

Released Aug 31, 2020

  • theicons.co/svg/photo-09 Created with Sketch.

    Add support for Craft 3.5 field designer for code elements.

  • theicons.co/svg/photo-09 Created with Sketch.

    Add support for Craft 3.5 field designer for voucher elements.

  • theicons.co/svg/others-47 Created with Sketch.

    Now requires Craft 3.5+.

  • theicons.co/svg/others-47 Created with Sketch.

    Now requires Craft Commerce 3.2+.

2.4.3

Released Aug 20, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix getEditableVoucherTypeIds not returning correctly.

2.4.2.1

Released July 30, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix ErrorException from undefined variable uid. (thanks @jmauzyk).

2.4.2

Released July 29, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix voucher site dropdown not working for multi-sites.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix share and preview button alignment for vouchers.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix live preview not working for vouchers.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix save-as-new-voucher not working correctly.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix voucher permissions to use UID instead of ID.

2.4.1

Released June 22, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Add migration for potentially missing code field layout.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix usage of deprecated saleAmount.

  • theicons.co/svg/home-36 Created with Sketch.

    Return cart errors for ajax-applying of voucher codes.

2.4.0

Released June 18, 2020

  • theicons.co/svg/others-47 Created with Sketch.

    Removed fieldsPath config setting. If you are using this setting for adding custom field content to your voucher codes, please update your templates. Use input type="text" name="options[fieldHandle]" instead of input type="text" name="options[<fieldsPath>][fieldHandle]".

2.3.1

Released June 15, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix potential error when trying to save a voucher code without an amount.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix incorrect handling for code field layout.

2.3.0

Released May 10, 2020

  • theicons.co/svg/photo-09 Created with Sketch.

    Add project config support for voucher types.

  • theicons.co/svg/home-36 Created with Sketch.

    Check to ensure Klaviyo Connect plugin is installed before doing any more checks. (thanks @brianjhanson)

2.2.4

Released Apr 16, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix logging error Call to undefined method setFileLogging().

2.2.3

Released Apr 15, 2020

  • theicons.co/svg/others-47 Created with Sketch.

    File logging now checks if the overall Craft app uses file logging.

  • theicons.co/svg/others-47 Created with Sketch.

    Log files now only include GET and POST additional variables.

  • theicons.co/svg/home-36 Created with Sketch.

    Only allow editing of voucher types if editable.

2.2.2

Released Mar 16, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix order and voucher columns showing incorrect values in the voucher codes element index.

  • theicons.co/svg/home-36 Created with Sketch.

    Add “Original Amount” to voucher codes element index.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix currency symbol in voucher codes element index in some cases.

2.2.1

Released Feb 13, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix missing order properties for PDFs generated in CP. (thanks @jmauzyk).

  • theicons.co/svg/home-36 Created with Sketch.

    Fix populateLineItem to work with Commerce 3.x.

2.2.0

Released Jan 29, 2020

  • theicons.co/svg/photo-09 Created with Sketch.

    Craft 3.4 compatibility.

  • theicons.co/svg/photo-09 Created with Sketch.

    Commerce 3.0 compatibility.

2.1.2

Released Jan 09, 2020

  • theicons.co/svg/home-36 Created with Sketch.

    Fix registerAdjuster = afterTax not working correctly.

2.1.1

Released Jan 09, 2020

  • theicons.co/svg/photo-09 Created with Sketch.

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

2.1.0

Released Jan 04, 2020

  • theicons.co/svg/photo-09 Created with Sketch.

    Add the ability to set field layouts for Voucher Codes. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add a field layout designer to the settings for Voucher Codes. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add an event PopulateCodeFromLineItemEvent to set additional fields/properties when a new Code is created based on a Voucher/LineItem. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add an event to validate LineItem options for custom fields in the Code. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add a migration to include an initial empty content record for all existing Voucher Codes. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add a new setting fieldsPath that represents the path of custom fields in the LineItems options. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add additional Tabs for custom fields in the Voucher Code if there are any. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add a component codeStorage for storing and receiving codes that are used. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add an interface for codeStorage and the possibility to use custom classes/components. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add a class Session for storing the used codes for an order in the session. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add a class Order for storing the used codes for an order in the field layout in a Codes field. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add a new Code relation field type. (thanks @Anubarak).

  • theicons.co/svg/photo-09 Created with Sketch.

    Add template hook cp.gift-voucher.voucher.edit.details (thanks @samuelbirch).

  • theicons.co/svg/others-47 Created with Sketch.

    All codeKeys are now grabbed via GiftVoucher::getInstance()->getCodeStorage()->getCodeKeys($order);. (thanks @Anubarak).

  • theicons.co/svg/others-47 Created with Sketch.

    All codeKeys are now set via GiftVoucher::getInstance()->getCodeStorage()->set($codeKeys, $order); or the add or remove function.

  • theicons.co/svg/others-47 Created with Sketch.

    This will make sure you can add a VoucherCode in the CP. (thanks @Anubarak).

  • theicons.co/svg/others-47 Created with Sketch.

    Use a custom controller to store the plugins settings ensuring the new Field Layout setting is stored properly. (thanks @Anubarak).

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed minor session issue. (thanks @Anubarak).

  • theicons.co/svg/home-36 Created with Sketch.

    Display inactive Vouchers in the CP. (thanks @Anubarak).

  • theicons.co/svg/home-36 Created with Sketch.

    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).

  • theicons.co/svg/home-36 Created with Sketch.

    Fix missing date columns in code element index.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix voucher discount being applied after tax.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix incorrect multi-site URL redirection when switching sites for a voucher.

2.0.13

Released Aug 25, 2019

  • theicons.co/svg/home-36 Created with Sketch.

    Fix incorrect migration.

2.0.12.1

Released Aug 25, 2019

  • theicons.co/svg/home-36 Created with Sketch.

    Fix namespacing issue.

2.0.12

Released Aug 25, 2019

  • theicons.co/svg/photo-09 Created with Sketch.

    Add support for Klaviyo Connect plugin.

  • theicons.co/svg/photo-09 Created with Sketch.

    Add support for Commerce 3.

  • theicons.co/svg/others-47 Created with Sketch.

    Adjust template functions vouchers() and codes() to allow criteria as params.

  • theicons.co/svg/home-36 Created with Sketch.

    Incorrect permission for voucher types.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix anonymous requests to gift voucher previewing.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix missing Commerce requirement.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix missing expiryDate column.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix voucher search indexes.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix lack of registering Code as an element type.

  • theicons.co/svg/home-36 Created with Sketch.

    Add codeKey to searchable attributes.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix legacy codes (from Craft 2) not correctly being elements.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix lack of integrity constraint on codes.

2.0.11

Released June 01, 2019

  • theicons.co/svg/photo-09 Created with Sketch.

    Add override notice for settings fields.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix missing sku and price query params.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix error in element HUD.

2.0.10

Released Feb 27, 2019

  • theicons.co/svg/home-36 Created with Sketch.

    Fix multiple tabs for voucher types not showing.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix “New voucher” layout issue when switching voucher types

2.0.9

Released Feb 19, 2019

  • theicons.co/svg/photo-09 Created with Sketch.

    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

Released Feb 17, 2019

  • theicons.co/svg/home-36 Created with Sketch.

    Fix migration issue from Craft 2 to Craft 3.

2.0.7

Released Dec 26, 2018

  • theicons.co/svg/home-36 Created with Sketch.

    Include translation of Adjuster description. Thanks (@Anubarak).

  • theicons.co/svg/home-36 Created with Sketch.

    Set the codeKey to the element after storing the record to use it directly after the Code is created. Thanks (@Anubarak).

  • theicons.co/svg/home-36 Created with Sketch.

    Add PDF config settings, rather than from Commerce.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix PDF paper orientation and size not changing from defaults.

  • theicons.co/svg/home-36 Created with Sketch.

    Bring back missing format and attach params for PDF.

2.0.6

Released Dec 14, 2018

  • theicons.co/svg/others-47 Created with Sketch.

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

2.0.5

Released Dec 14, 2018

  • theicons.co/svg/photo-09 Created with Sketch.

    Add afterVoucherAdjustmentsCreated.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix querying codes by voucherId not working.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix codes not being generated correctly after checkout completion.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix redemptions not being generated correctly after checkout completion.

2.0.4

Released Dec 01, 2018

  • theicons.co/svg/photo-09 Created with Sketch.

    Add beforeCaptureVoucherSnapshot and afterCaptureVoucherSnapshot.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix permissions for vouchers and codes.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix error occuring when installing plugin via command line

2.0.3

Released Nov 10, 2018

  • theicons.co/svg/photo-09 Created with Sketch.

    Allow PDFs to be generated for single voucher codes.

  • theicons.co/svg/photo-09 Created with Sketch.

    Add type to snapshot data.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix Gift Voucher element field name.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix error when deleting a voucher.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix querying by voucherId on a code.

  • theicons.co/svg/home-36 Created with Sketch.

    Fix error when querying and saving vouchers.

2.0.2

Released Oct 26, 2018

  • theicons.co/svg/photo-09 Created with Sketch.

    Add product method for voucher for easy commerce compatibility

  • theicons.co/svg/photo-09 Created with Sketch.

    Add field data to line item snapshot

  • theicons.co/svg/others-47 Created with Sketch.

    Codes are now generated after the order is paid, instead of when complete

  • theicons.co/svg/others-47 Created with Sketch.

    Bring back getPdfUrl() and getOrderPdfUrl()

  • theicons.co/svg/home-36 Created with Sketch.

    Fix welcome redirect

  • theicons.co/svg/home-36 Created with Sketch.

    Fix empty strings being able to validate vouchers (oops)

2.0.1

Released Oct 18, 2018

  • theicons.co/svg/home-36 Created with Sketch.

    Fixed some deprecation notices

  • theicons.co/svg/home-36 Created with Sketch.

    Fix redemption error for new codes

1.0.1

Released Jan 17, 2017

  • theicons.co/svg/photo-09 Created with Sketch.

    Redeeming multiple vouchers.

  • theicons.co/svg/photo-09 Created with Sketch.

    Added possibility to return Ajax in frontend controller.

  • theicons.co/svg/others-47 Created with Sketch.

    Redeemed code managing.

  • theicons.co/svg/others-47 Created with Sketch.

    Change DiscountAdjuster order to apply after tax discount.

  • theicons.co/svg/home-36 Created with Sketch.

    Adjuster showing proper discount amount.