Releases: craftcms/commerce
Releases · craftcms/commerce
4.7.1
- Fixed an error that occurred on the Orders index page when running Craft CMS 4.13.4 or later. (#3793)
5.2.6
- Fixed a bug where variant prices could be displayed incorrectly when inline editing. (#3768)
- Fixed a performance degradation bug with variant queries. (#3758)
- Fixed a PHP error that could occur when managing store settings. (#3780)
5.2.5
- The
resave/products
, resave/orders
, and resave/carts
commands now support the --with-fields
option.
- Fixed a SQL error that could occur when updating. (#3778)
5.2.4
- Improved the performance of
craft\commerce\elements\Product::getVariants()
. (#3578)
- Fixed a SQL error that could occur when creating a variant. (#3763)
5.2.3
- Fixed a performance degradation bug with variant queries. (#3758)
- Fixed a bug where it was possible to select purchasables that didn’t belong to an order’s site, from Edit Order pages. (#3756)
5.2.2.1
- Fixed a PHP error that could occur when retrieving a variant. (#3754)
5.2.2
- Fixed a bug where product revisions weren’t storing variant relations.
- Fixed a PHP error that occurred when calling a product or variant’s
render()
method. (#3742)
- Fixed a bug where inventory data wasn’t getting saved when creating a new variant. (#3661)
5.2.1
- Fixed a bug where the Commerce subnav could be missing the “Product” nav item. (#3735)
- Fixed PHP errors that could occur when completing an order. (#3733, #3736)
5.2.0
Store Management
- Products can now be structured, per product type.
- It’s now possible for discounts to explicitly require a coupon code. (#3132)
- New order addresses now default to the store’s country on Order Edit screens. (#3306)
- Product conditions can now have a “Variant Search” rule. (#3689)
Development
- Added the
onPromotion
purchasable query param.
- Added the
onPromotion
GraphQL variant query argument.
Extensibility
- Added
craft\commerce\console\controllers\UpgradeController::$v3droppableColumns
- Added
craft\commerce\console\controllers\UpgradeController::EVENT_BEFORE_DROP_V3_DATABASE_ENTITIES
.
- Added
craft\commerce\elements\Product::EVENT_DEFINE_PARENT_SELECTION_CRITERIA
.
- Added
craft\commerce\elements\conditions\products\ProductVariantSearchConditionRule
.
- Added
craft\commerce\elements\db\Purchasable::$onPromotion
.
- Added
craft\commerce\elements\db\Purchasable::onPromotion()
.
- Added
craft\commerce\events\UpgradeEvent
.
- Added
craft\commerce\models\Discount::$requireCouponCode
.
- Added
craft\commerce\models\ProductType::$isStructure
- Added
craft\commerce\models\ProductType::$maxLevels
- Added
craft\commerce\models\ProductType::$structureId
- Added
craft\commerce\models\ProductType::DEFAULT_PLACEMENT_BEGINNING
- Added
craft\commerce\models\ProductType::DEFAULT_PLACEMENT_END
- Added
craft\commerce\models\ProductType::getConfig()
System
- Improved the performance of adding items to the cart.
- Improved the performance of shipping rule matching when an order condition formula is used. (3653)
- Craft Commerce now requires Money PHP 4.2 or later.
- Fixed a bug where outstanding order balances could be calculated incorrectly. (#3403)