Releases: craftcms/commerce
Releases · craftcms/commerce
5.0.16.2
- Fixed a bug where variants’
sku
values could be cleared out when saving a product revision.
5.0.16.1
- Fixed a bug where variants’
sku
values could be cleared out when saving a product. - Fixed a bug where
craft\commerce\elements\Product::getVariants()
wasn’t respecting variants’ site statuses.
5.1.0-beta.1
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)
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\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\elements\Transfer
. - 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\Order::EVENT_AFTER_LINE_ITEMS_REFRESHED
. - Added
craft\commerce\models\Order::EVENT_BEFORE_LINE_ITEMS_REFRESHED
. - 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\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\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.16
- It’s now possible to duplicate variants.
- It’s now possible to search for orders by shipping and billing address. (#3603)
- Fixed a bug where it wasn’t possible to remove the last email from an order status configuration. (#3621)
- Fixed a bug where the “Create Sale” and “Create Discount” product index actions weren’t working. (#3611)
- Fixed a bug where
craft\commerce\elements\Order::getOrderStatus()
could incorrectly returnnull
. (#3615) - Fixed a bug where draft variants became orphaned when products were deleted.
- Fixed a PHP error that occurred when using a custom queue driver. (#3619)
- Fixed a bug where stat widgets weren’t respecting the user’s preferred week start day. (#3620)
- Fixed a bug where variants weren’t getting duplicated when duplicating a product. (#924)
4.6.8
5.0.15
- Fixed a SQL error that could occur when upgrading to Commerce 5 on PostgreSQL. (#3600, #3601)
- Fixed a bug where payment modals weren’t calculating additional payment currencies on Edit Order pages.
- Fixed a PHP error that occurred when retrieving an order that referenced a deleted payment currency.
- Fixed a bug where Edit Variant screens were showing shipping categories that were unrelated to the current store. (#3608)
4.6.7
5.0.14
- Fixed a bug where account activation emails weren’t being sent on order completion. (#3226)
- Fixed a bug where email previewing wasn’t working on installs with multiple stores. (#3595)
- Fixed a bug where emails sent via the control panel could be rendered with the wrong language.
- Fixed a SQL error that occurred when exporting order line items. (#3592)
- Fixed a PHP error that could occur when generating catalog prices. (#3591)
4.6.6
- Fixed a bug where emails sent via the control panel could be rendered with the wrong language.
5.0.13
- Fixed a SQL error that could occur when updating Commerce on PostgreSQL. (#3588)
- Fixed a SQL error that could occur when saving a payment currency. (#3563)
- Fixed a bug where SCA payment sources prevented subscriptions from starting. (#3590)
- Fixed PHP error that occurred when saving an estimated billing address. (#3549)
- Fixed a bug where variant indexes were including table columns for all custom fields added to variant field layouts, across all product types. (#15373)
- Fixed a bug where the “Ignore promotional prices” discount setting wasn’t getting saved correctly. (#3573)
- Fixed a bug where setting a new default variant wouldn’t persist. (#3565, #3564, #3589)