Releases: craftcms/commerce
Releases · craftcms/commerce
5.4.4
- Improved the performance of loading Edit Order pages. (#4056)
- Fixed a bug where cart errors weren’t being returned in
commerce/payments/pay
action requests. (#4026) - Fixed a bug where the
EVENT_BEFORE_DEFINE_URL
andEVENT_DEFINE_URL
events weren’t getting triggered for variants. - Fixed a PHP error that could occur when submitting a partial payment using the example templates. (#3989)
- Fixed a bug where shipping adjustments weren’t getting applied to carts that used a custom shipping method.
5.4.3
- Fixed a PHP error that could occur when upgrading to Commerce 5. (#4077)
- Fixed a bug where shipping rules weren’t saving their customer conditions correctly. (#4079)
- Fixed a bug where outdated transaction data could be used when completing a payment. (craftcms/commerce-stripe#353)
4.9.1
- Fixed a bug where outdated transaction data could be used when completing a payment. (craftcms/commerce-stripe#353)
5.4.2
5.4.1.1
5.4.1
- Improved the performance of loading carts via Ajax.
- Improved the performance of saving variants. (#4064)
- Fixed a PHP error that could occur when viewing variant indexes on Craft CMS 5.6.17 or earlier. (#4060)
- Fixed a bug where currency-based order condition rules were incorrectly listed under “Fields” in the selection menu.
- Fixed a SQL error that could occur when restoring soft-deleted variants. (#4065)
- Fixed a bug where subscription and inventory transfer elements’ field layouts weren’t getting deleted on uninstall.
- Fixed a PHP error that could occur when editing discounts. (#4069)
5.4.0
Store Management
- It’s now possible to set variants’ statuses from Edit Product screens. (#3953)
- Coupon validation errors now provide an explanation when invalid due to order, customer, or address conditions. (#3935)
- Catalog Pricing Rule screens now display custom metadata. (#3975)
- Product indexes now have a “Promotional Price” column.
Administration
- 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)
- Shipping methods and shipping rules now support flexible customer matching, based on a customer condition. (#3925)
- Gateways now have a “Match Order” condition that determines which orders the gateway should be available for. (#3913)
- All native order attributes are now available as card attributes. (#4019)
- Added the
resave/variants
command.
Development
- Line item snapshots now contain a
catalogPricingRuleId
field. (#3910) - Added the
localized
field to products’ GraphQL data. (#3783)
Extensibility
- Added
craft\commerce\base\Gateway::getConfig()
. - Added
craft\commerce\base\Gateway::getOrderCondition()
. - Added
craft\commerce\base\Gateway::getOrderCondition()
. - Added
craft\commerce\base\Gateway::hasOrderCondition()
. - Added
craft\commerce\base\Gateway::setOrderCondition()
. - Added
craft\commerce\base\Gateway::setOrderCondition()
. - Added
craft\commerce\base\Gateway::setOrderCondition()
. - Added
craft\commerce\base\Purchasable::$catalogPricingRuleId
. - Added
craft\commerce\base\Purchasable::getCatalogPricingRule()
. - Added
craft\commerce\controllers\OrdersController::actionCopyAddressToUser()
. - Added
craft\commerce\elements\Product::$defaultBasePromotionalPrice
- Added
craft\commerce\elements\conditions\customers\ShippingMethodCustomerCondition
. - Added
craft\commerce\elements\conditions\customers\ShippingRuleCustomerCondition
. - Added
craft\commerce\models\ShippingMethod::getCustomerCondition()
. - Added
craft\commerce\models\ShippingMethod::setCustomerCondition()
. - Added
craft\commerce\models\ShippingRule::getCustomerCondition()
. - Added
craft\commerce\models\ShippingRule::setCustomerCondition()
. - Added
craft\commerce\taxidvalidators\EuVatIdValidator::API_URL
.
System
- Improved store query performance. (#4029)
- Fixed a bug where the purchasable cache was not cleared when stock was updated.
- Fixed a PHP error that could occur when sending emails. (#4017)
- Fixed a SQL error that could occur when upgrading to Commerce 5. (#4044)
- Fixed a bug where duplicate order references could be generated. (#4050)
- Fixed a bug where purchasables’
shippingCategoryId
andtaxCategoryId
properties couldn’t be set viasetAttributes()
. (#4046) - Fixed a bug where gateway settings weren’t storing project config values consistently. (#3941)
- 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) - Fixed a PHP error that could occur when saving an order. (#3283)
4.9.0
5.3.13
- Fixed a bug where the “Recipient”, “BCC’d Recipient”, and “CC’d Recipient” email settings weren’t working properly if set to environment variables. (#4004, #4002)
- Fixed a bug where discounts’ related entries weren’t being returned for non-primary sites. (#4010)
- Fixed a bug where Edit Order pages weren’t displaying the “Send Email” button.
5.3.12
- Fixed a PHP error that could occur when calculating discount adjustments. (#3997)
- Fixed a PHP error that could occur on Edit Plan pages. (#3998)
- Fixed a PHP error that could occur when upgrading to Commerce 5. (#3933)
- Fixed a bug where some purchasables weren’t selectable when adding new line items on Edit Order pages. (#3986)