Skip to content

Releases: craftcms/commerce

5.1.2

19 Sep 08:32
5.1.2
5b793a6
Compare
Choose a tag to compare
  • Fixed a bug where shipping methods weren’t validating if a shipping method in a different store had the same name. (#3676)
  • Fixed a bug where any modifications to craft\commerce\events\CreateSubscriptionEvent::$parameters weren’t being passed to the gateway’s subscribe() method.
  • Fixed a bug where stores’ aggregate stock levels weren’t getting updated when inventory changed. (#3668)
  • Fixed a bug where addresses weren’t being automatically added on Edit Order screens. (#3673)
  • Fixed a PHP error that could occur when viewing an Edit Order screen after deleting a purchasable. (#3677)
  • Fixed a bug where some strings weren’t getting translated on Edit Order screens.
  • Fixed a JavaScript error that could occur when editing an order.

4.6.12

19 Sep 08:00
4.6.12
8f6a112
Compare
Choose a tag to compare
  • Fixed a bug where some strings weren’t getting translated on Edit Order screens.
  • Fixed a JavaScript error that could occur when editing an order.

5.1.1

10 Sep 18:51
75c6eac
Compare
Choose a tag to compare
  • Fixed XSS vulnerabilities.

4.6.11

10 Sep 18:28
4.6.11
b26b43e
Compare
Choose a tag to compare
  • Fixed XSS vulnerabilities.

5.1.0.1

05 Sep 12:02
5.1.0.1
e89df81
Compare
Choose a tag to compare
  • Fixed a bug where catalog pricing rules weren’t respecting product conditions. (#3544)

5.1.0

04 Sep 18:44
5.1.0
c06f90a
Compare
Choose a tag to compare

Store Management

  • It’s now possible to manage transfers between inventory locations.
  • Catalog pricing rules now support flexible matching based on product and variant conditions. (#3544)
  • Variant conditions can now have an “SKU” rule.

Administration

  • It’s now possible to create custom line items. (#2301, #2233, #2345)
  • Added the “Propagation Method” setting to product types. (#3537, #3296, #3372, #2375)
  • Added “Title Translation Method” settings to product types, for products and variants. (#3462, #2466)
  • Added support for selecting products in Link fields.
  • Added the “Manage donation settings” permission.
  • Added the “Manage inventory transfers” permission.
  • Added the “Manage payment currencies” permission.
  • Added the “Manage store general setting” permission.
  • Added the “Manage subscription plans” permission.

Extensibility

  • Added craft\commerce\controllers\TransfersController.
  • Added craft\commerce\elements\Order::EVENT_AFTER_LINE_ITEMS_REFRESHED.
  • Added craft\commerce\elements\Order::EVENT_BEFORE_LINE_ITEMS_REFRESHED.
  • Added craft\commerce\elements\Product::$defaultBasePrice.
  • Added craft\commerce\elements\Product::$storeId.
  • Added craft\commerce\elements\Product::getCurrencyAttributes().
  • Added craft\commerce\elements\Product::getStore().
  • Added craft\commerce\elements\Transfer.
  • Added craft\commerce\elements\conditions\products\CatalogPricingRuleProductCondition.
  • Added craft\commerce\elements\conditions\transfers\TransferCondition.
  • Added craft\commerce\elements\conditions\variants\CatalogPricingRuleVariantCondition.
  • Added craft\commerce\elements\db\TransferQuery.
  • Added craft\commerce\enums\LineItemType.
  • Added craft\commerce\enums\TransferStatusType.
  • Added craft\commerce\fieldlayoutelements\TransferManagementField.
  • Added craft\commerce\models\CatalogPricingRule::getProductCondition().
  • Added craft\commerce\models\CatalogPricingRule::getVariantCondition().
  • Added craft\commerce\models\CatalogPricingRule::setProductCondition().
  • Added craft\commerce\models\CatalogPricingRule::setVariantCondition().
  • Added craft\commerce\models\LineItem::$type.
  • Added craft\commerce\models\LineItem::getHasFreeShipping().
  • Added craft\commerce\models\LineItem::getIsPromotable().
  • Added craft\commerce\models\LineItem::getIsShippable().
  • Added craft\commerce\models\LineItem::getIsTaxable().
  • Added craft\commerce\models\LineItem::populate().
  • Added craft\commerce\models\LineItem::refresh().
  • Added craft\commerce\models\LineItem::setHasFreeShipping().
  • Added craft\commerce\models\LineItem::setIsPromotable().
  • Added craft\commerce\models\LineItem::setIsShippable().
  • Added craft\commerce\models\LineItem::setIsTaxable().
  • Added craft\commerce\models\ProductType::$productTitleTranslationKeyFormat.
  • Added craft\commerce\models\ProductType::$productTitleTranslationMethod.
  • Added craft\commerce\models\ProductType::$propagationMethod.
  • Added craft\commerce\models\ProductType::$variantTitleTranslationKeyFormat.
  • Added craft\commerce\models\ProductType::$variantTitleTranslationMethod.
  • Added craft\commerce\models\ProductType::getSiteIds().
  • Added craft\commerce\models\TransferDetail.
  • Added craft\commerce\record\TransferDetail.
  • Added craft\commerce\records\ProductType::$productTitleTranslationKeyFormat.
  • Added craft\commerce\records\ProductType::$productTitleTranslationMethod.
  • Added craft\commerce\records\ProductType::$propagationMethod.
  • Added craft\commerce\records\ProductType::$variantTitleTranslationKeyFormat.
  • Added craft\commerce\records\ProductType::$variantTitleTranslationMethod.
  • Added craft\commerce\services\CatalogPricing::createCatalogPricesQuery()
  • Added craft\commerce\services\InventoryLocations::getAllInventoryLocationsAsList
  • Added craft\commerce\services\LineItems::create().
  • Added craft\commerce\services\LineItems::resolveCustomLineItem().
  • Added craft\commerce\services\Transfers.
  • Deprecated craft\commerce\models\LineItem::populateFromPurchasable(). populate() should be used instead.
  • Deprecated craft\commerce\models\LineItem::refreshFromPurchasable(). refresh() should be used instead.
  • Deprecated craft\commerce\services\CatalogPricing::createCatalogPricingQuery(). createCatalogPricesQuery() should be used instead.
  • Deprecated craft\commerce\services\LineItems::createLineItem(). create() should be used instead.
  • Removed craft\commerce\fieldlayoutelements\UserCommerceField.

System

  • Craft Commerce now requires Craft CMS 5.2 or later.

5.0.19

04 Sep 14:29
5.0.19
4bc3b65
Compare
Choose a tag to compare
  • Fixed a bug where calculated catalog prices weren’t getting rounded to the decimal precision of the store’s currency.
  • Fixed a PHP error that occurred when calling craft\commerce\elements\Variant::getSales().
  • Fixed a SQL error that could occur when upgrading to Commerce 5.

5.0.18

28 Aug 15:20
5.0.18
80f6f47
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when default addresses were set on a cart. (#3641)
  • Fixed a bug were the “Auto Set New Cart Addresses” store setting was not persisting when saved.

4.6.10

28 Aug 15:08
4.6.10
f68195c
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when default addresses were set on a cart. (#3641)

5.1.0-beta.3

22 Aug 07:48
db758c3
Compare
Choose a tag to compare
5.1.0-beta.3 Pre-release
Pre-release
  • Fixed a bug where the incorrect transfer status could be applied when saving transfers.
  • Fixed a bug where variant indexes weren’t displaying promotion prices as currency values.
  • Fixed a PHP error that could occur when sending an order email. (#3596)
  • Fixed a bug where dimension fields were not displaying values in the correct formatting locale. (#3636)
  • Fixed a bug where users couldn’t access catalog pricing rules when the current user had permission. (#3639)
  • Fixed a bug where available shipping methods were not returned in order of price. (#3631)