Version 3.2.3

September 11, 2023
  • Fixed an XSS vulnerability.

Version 3.2.2

March 22, 2023
  • Fixed a PHP error that occurred when live previewing a digital product. (#84)

Version 3.2.1

March 9, 2023
  • Fixed a bug where digital product Licenses couldn’t be edited or deleted in Craft 4.3.2+.
  • Fixed a bug where garbage collection wasn’t running.

Version 3.2.0

January 25, 2023
  • Product type field layouts now support UI elements. (#60)
  • Fixed a PHP error that occurred when uninstalling the plugin. (#80)
  • Fixed a bug where digital products couldn’t be edited or deleted in Craft 4.3.2+. (#79)

Version 3.1.0

November 23, 2022

Fixed

  • Fixed a bug where it was possible to soft-delete digital products with active licenses. (#75, #78)

Version 3.0.2

August 5, 2022

Fixed

  • Fixed a PHP error that occurred when creating a new site.

Version 3.0.1

June 13, 2022

Added

  • Added the resave/digital-products command.

Version 3.0.0.1

May 5, 2022

Fixed

  • Fixed a PHP error that occurred when trying to manage permissions.

Version 3.0.0

May 4, 2022

Added

  • Added Craft CMS 4 and Craft Commerce 4 compatibility.

Version 2.4.3.2

August 18, 2021

Fixed

  • Fixed a bug where the afterSave event was not being triggered for license elements.

Version 2.4.3.1

April 28, 2021

Fixed

  • Fixed a PHP error that occurred when saving a product with a duplicate SKU. (#61)
  • Fixed errors that could occur when switching the selected site from the Digital Products index page and Edit Digital Product pages. (#54)
  • Fixed a bug where it wasn’t possible to hard-delete digital products. (#56)
  • Fixed a bug where the “Product Types” nav item was shown for users that didn’t have permission to manage product types. (#53)

Version 2.4.3

April 2, 2021

Changed

  • Products’ and licenses’ date sort options are now sorted in descending order by default when selected (requires Craft 3.5.9 or later).

Fixed

  • Fixed a 400 error that could occur when a product type’s Template setting was blank.
  • Fixed plugin description that implied compatibility only with Craft Commerce 2.
  • Fixed a PHP error that could occur when saving a new product without a price. (#58)

Version 2.4.2

August 24, 2020

Fixed

  • Fixed a deprecation warning in craft\digitalproducts\controllers\ProductsController.

Version 2.4.1

August 24, 2020

Fixed

  • Fixed a javascript error that caused the “Add Products” button to be hidden. (#49)
  • Fixed a bug where the afterSaveProductType and beforeSaveProductType events triggered the wrong event object. (#48)

Version 2.4.0

May 5, 2020

Added

  • Added GraphQL support for digital products. (#46)
  • It’s now possible to update statuses and delete products form the Products index page. (#34)
  • Added craft\digital-products\elements\Products::getGqlTypeName().
  • Added craft\digital-products\elements\Products::gqlScopesByContext().
  • Added craft\digital-products\elements\Products::gqlTypeNameByContext().
  • Added craft\digital-products\gql\arguments\elements\Product.
  • Added craft\digital-products\gql\interfaces\elements\Product.
  • Added craft\digital-products\gql\queries\Product.
  • Added craft\digital-products\gql\resolvers\elements\Product.
  • Added craft\digital-products\gql\types\elements\Product.
  • Added craft\digital-products\gql\types\gemerators\ProductType.
  • Added craft\digital-products\helpers\Gql.
  • Added craft\digital-products\Plugin::defineActions().
  • Added craft\digital-products\services\ProductTypes::getProductTypeByUid().

Version 2.3.1

October 9, 2019

Fixed

  • Fixed deprecation warnings on Edit Product page and Product Types index. (#44)

Version 2.3.0

July 24, 2019

Changed

  • Update Craft Commerce requirements to allow for Craft Commerce 3.

Version 2.2.4.1

July 18, 2019

Fixed

  • Fixed an error where it was impossible to list existing digital products. (#42)

Version 2.2.4

July 17, 2019

Fixed

  • Fixed a bug where product permissions were not being checked correctly. (#42)

Version 2.2.3

July 16, 2019

Fixed

  • Digital products are now ignored by the shipping engine.

Version 2.2.2

July 7, 2019

Fixed

  • Fixed an error that occurred when deleting a disabled product. (#41)
  • Fixed Live Preview and sharing support.

Version 2.2.1

June 14, 2019

Added

  • Added the cp.digital-products.product.edit.details template hook.

Fixed

  • Fixed an error that could occur when updating to 2.2.0 and there were user groups with no defined permissions.

Version 2.2.0

April 26, 2019

Added

  • Added support for the project-config/rebuild command.

Changed

  • Digital Products now correctly typecasts the boolean and integer values saved to the project config.
  • Digital Products now requires Craft 3.1.20 and Craft Commerce 2.1.0 or later.

Fixed

  • Fixed an error that could occur when saving a digital product if it didn’t have a boolean promotable value set.
  • Fixed a bug where edit product permissions were missing. (#33)
  • Fixed an error that could prevent licenses from getting listed properly in the Control Panel.

Version 2.1.0

January 24, 2019

Added

  • Added support for project config.
  • Added the generateLicenseOnOrderPaid setting which allows to specify when the license should be created.

Changed

  • Digital Products now requires Craft 3.1.0-alpha.1 or later.
  • Digital Products now requires Commerce 2.0 or later.

Fixed

  • Fixed an error where adding or removing sites would not reflect those changes in product type settings.
  • Fixed an error where a non-existing Commerce event was being referenced.

Version 2.0.4

December 7, 2018

Fixed

  • Fixed a bug where it wasn't possible to delete a product from its edit page. (#24)
  • Fixed deprecation errors in Control Panel templates. (#25)
  • Fixed a bug where the "Digital Products" item on the Settings page linked to a blank page. (#23)
  • Fixed a bug where querying for licenses would not work in some cases. (#11)

Version 2.0.3

October 19, 2018

Added

  • Added craft\digitalproducts\models\ProductTypeSite::getSite().

Changed

  • Licenses are now generated after the order is paid, instead of when it’s completed. (#21)

Fixed

  • Fixed a bug where Digital Products fields were named “Products”. (#13)
  • Fixed a bug where querying for products didn’t always return the correct results.
  • Fixed a bug where only fields in the first field layout tab were visible when editing a product. (#8)
  • Fixed a bug where products coludn’t hvae URLs. (#9)
  • Fixed a bug where querying for licenses would not work in some cases. (#11)
  • Fixed a bug where it wasn’t possible to delete a product. (#12)
  • Fixed a bug where product template paths and URI formats weren’t being automatically generated correctly. (#16)
  • Fixed deprecation errors. (#19)

Version 2.0.2

May 14, 2018

Fixed

  • Fixed a bug where licenses were not being generated after completing an order.

Version 2.0.1

May 9, 2018

Fixed

  • Fixed a bug where tax categories were not being populated when editing a product. (#3)
  • Fixed broken links in composer.json. (#4)
  • Fixed an error that occurred on the Licenses index page. (#7)
  • Fixed a bug where the “New product” button wasn’t working on the Products index page. (#6)

Version 2.0.0

April 4, 2018

Added

  • Added Craft 3 compatibility.

Changed

  • Digital products now fires beforeSaveProductType, afterSaveProductType and beforeGenerateLicenseKey events.
  • Product types are now accessible via $product->getProductType() instead of $product->getType().
  • Instead of eager-loading a boolean flag isLicensed for products, you must now eager-load the existingLicenses property, which is an array of existing licenses for that product for the current user.

Fixed

  • Fixed a broken foreign key constraint. (#1)

Version 1.0.4

March 11, 2017

Fixed

  • Fixed a bug where digital product prices weren’t displaying correctly.
  • Fixed a bug where digital product prices could be saved incorrectly.

Version 1.0.3

November 2, 2016

Changed

  • Added support for a plugin release feed.

Version 1.0.2

October 12, 2016

Fixed

  • Fixed bugs.

Version 1.0.1

October 3, 2016

Fixed

  • Fixed bugs.

Version 1.0.0

June 21, 2016
  • Initial release