Releases: craftcms/commerce
Releases · craftcms/commerce
5.2.1
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
5.1.4
- Fixed a PHP error that could occur when creating a subscription. (#3710)
- Fixed a bug where inventory items could appear with blank descriptions on the Inventory management screen. (#3706)
- Fixed a bug where additional buttons defined with
craft\commerce\elements\Order::EVENT_DEFINE_ADDITIONAL_BUTTONS
weren’t displayed on Edit Order screens. (#3692) - Fixed a bug where email errors weren’t displayed on Edit Order screens. (#3693)
- Fixed a bug where
craft\commerce\helpers\Currency::formatAsCurrency()
wasn’t stripping zeros. (#3716)
4.7.0
Store Management
- 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)
Extensibility
- Added
craft\commerce\console\controllers\UpgradeController::$v3droppableColumns
- Added
craft\commerce\console\controllers\UpgradeController::EVENT_BEFORE_DROP_V3_DATABASE_ENTITIES
. - Added
craft\commerce\elements\conditions\products\ProductVariantSearchConditionRule
. - Added
craft\commerce\events\UpgradeEvent
. - Added
craft\commerce\models\Discount::$requireCouponCode
.
System
4.6.14
5.1.3
- Fixed a bug where variants weren’t respecting their product’s propagation method.
- Fixed a PHP error that could occur when creating a new product.
- Fixed a bug where Edit Product screens were showing shipping categories that weren’t available to the current store. (#3690)
- Fixed a bug where Edit Product screens were showing tax categories that weren’t available to the product type.. (#3690)
- Fixed a bug where Edit Order screens were displaying the store name twice.
- Fixed a bug where
craft\commerce\models\CatalogPricingRule::$description
was not being populated. (#3699) - Fixed a bug where catalog pricing rules were generating prices incorrectly. (#3700)
- Fixed a PHP error that could occur when deleting a user with orders. (#3686)
4.6.13
5.1.2
- 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’ssubscribe()
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
- 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
- Fixed XSS vulnerabilities.