|
| 1 | +# Release Notes for Craft Commerce 5.4 (WIP) |
| 2 | + |
| 3 | +### Store Management |
| 4 | +- It’s now possible to set variants’ statuses from Edit Product screens. ([#3953](https://github.com/craftcms/commerce/discussions/3953)) |
| 5 | +- Coupon validation errors now provide an explanation when invalid due to order, customer, or address conditions. ([#3935](https://github.com/craftcms/commerce/issues/3935)) |
| 6 | +- Catalog Pricing Rule screens now display custom metadata. ([#3975](https://github.com/craftcms/commerce/pull/3975)) |
| 7 | +- Product indexes now have a “Promotional Price” column. |
| 8 | + |
| 9 | +### Administration |
| 10 | +- It’s now possible to set a variants’ default “Promotable”, “Track Inventory”, “Allow out of stock purchases”, and “Available for purchase” values when configuring variant field layouts. ([#3571](https://github.com/craftcms/commerce/issues/3571)) |
| 11 | +- Shipping methods and shipping rules now support flexible customer matching, based on a customer condition. ([#3925](https://github.com/craftcms/commerce/issues/3925)) |
| 12 | +- Gateways now have a “Match Order” condition that determines which orders the gateway should be available for. ([#3913](https://github.com/craftcms/commerce/discussions/3913)) |
| 13 | +- All native order attributes are now available as card attributes. ([#4019](https://github.com/craftcms/commerce/issues/4019)) |
| 14 | +- Added the `resave/variants` command. |
| 15 | + |
| 16 | +### Development |
| 17 | +- Line item snapshots now contain a `catalogPricingRuleId` field. ([#3910](https://github.com/craftcms/commerce/issues/3910)) |
| 18 | +- Added the `localized` field to products’ GraphQL data. ([#3783](https://github.com/craftcms/commerce/discussions/3783)) |
| 19 | + |
| 20 | +### Extensibility |
| 21 | +- Added `craft\commerce\base\Gateway::getConfig()`. |
| 22 | +- Added `craft\commerce\base\Gateway::getOrderCondition()`. |
| 23 | +- Added `craft\commerce\base\Gateway::getOrderCondition()`. |
| 24 | +- Added `craft\commerce\base\Gateway::hasOrderCondition()`. |
| 25 | +- Added `craft\commerce\base\Gateway::setOrderCondition()`. |
| 26 | +- Added `craft\commerce\base\Gateway::setOrderCondition()`. |
| 27 | +- Added `craft\commerce\base\Gateway::setOrderCondition()`. |
| 28 | +- Added `craft\commerce\base\Purchasable::$catalogPricingRuleId`. |
| 29 | +- Added `craft\commerce\base\Purchasable::getCatalogPricingRule()`. |
| 30 | +- Added `craft\commerce\controllers\OrdersController::actionCopyAddressToUser()`. |
| 31 | +- Added `craft\commerce\elements\Product::$defaultBasePromotionalPrice` |
| 32 | +- Added `craft\commerce\elements\conditions\customers\ShippingMethodCustomerCondition`. |
| 33 | +- Added `craft\commerce\elements\conditions\customers\ShippingRuleCustomerCondition`. |
| 34 | +- Added `craft\commerce\models\ShippingMethod::getCustomerCondition()`. |
| 35 | +- Added `craft\commerce\models\ShippingMethod::setCustomerCondition()`. |
| 36 | +- Added `craft\commerce\models\ShippingRule::getCustomerCondition()`. |
| 37 | +- Added `craft\commerce\models\ShippingRule::setCustomerCondition()`. |
| 38 | +- Added `craft\commerce\taxidvalidators\EuVatIdValidator::API_URL`. |
| 39 | + |
| 40 | +### System |
| 41 | +- Improved store query performance. ([#4029](https://github.com/craftcms/commerce/issues/4029)) |
| 42 | +- Fixed a bug where the purchasable cache was not cleared when stock was updated. |
| 43 | +- Fixed a PHP error that could occur when sending emails. ([#4017](https://github.com/craftcms/commerce/issues/4017)) |
| 44 | +- Fixed a SQL error that could occur when upgrading to Commerce 5. ([#4044](https://github.com/craftcms/commerce/issues/4044)) |
| 45 | +- Fixed a bug where duplicate order references could be generated. ([#4050](https://github.com/craftcms/commerce/issues/4050)) |
| 46 | +- Fixed a bug where purchasables’ `shippingCategoryId` and `taxCategoryId` properties couldn’t be set via `setAttributes()`. ([#4046](https://github.com/craftcms/commerce/issues/4046)) |
| 47 | +- Fixed a bug where gateway settings weren’t storing project config values consistently. ([#3941](https://github.com/craftcms/commerce/issues/3941)) |
| 48 | +- Fixed a bug where new line items did not expose their submitted quantity to the `craft\commerce\services\LineItems::EVENT_POPULATE_LINE_ITEM` event. ([#3883](https://github.com/craftcms/commerce/issues/3883)) |
| 49 | +- Fixed a PHP error that could occur when saving an order. ([#3283](https://github.com/craftcms/commerce/issues/3283)) |
0 commit comments