Skip to content

Releases: craftcms/commerce

5.4.4

31 Jul 18:54
5.4.4
655a4ef
Compare
Choose a tag to compare
  • 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 and EVENT_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

23 Jul 13:51
5.4.3
03ddedb
Compare
Choose a tag to compare
  • 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

23 Jul 13:48
4.9.1
2c7803d
Compare
Choose a tag to compare

5.4.2

16 Jul 14:29
5.4.2
44eb3e6
Compare
Choose a tag to compare
  • Fixed a bug where the control panel trigger was exposed when copying a load-cart URL. (#4073)
  • Fixed a SQL error that could occur when updating to Craft Commerce 5.4.1. (#4074)
  • Fixed a bug where purchasable selector modals for discounts didn’t have site menus. (#4059)

5.4.1.1

10 Jul 07:35
5.4.1.1
e648b75
Compare
Choose a tag to compare
  • Fixed a bug where the pricing catalog wasn’t getting updated when saving a product. (#4054)
  • Fixed a bug where unavailable gateways were being automatically set on orders.
  • Fixed a bug where product type configs were missing their structure properties after rebuilding the project config.

5.4.1

09 Jul 14:22
5.4.1
007dfb0
Compare
Choose a tag to compare
  • 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

23 Jun 02:22
5.4.0
11f5bac
Compare
Choose a tag to compare

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 and taxCategoryId properties couldn’t be set via setAttributes(). (#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

18 Jun 19:03
4.9.0
81e5eb4
Compare
Choose a tag to compare
  • Added the localized field to products’ GraphQL data. (#3783)
  • Added craft\commerce\taxidvalidators\EuVatIdValidator::API_URL.
  • Fixed a PHP error that could occur when saving an order. (#3283)

5.3.13

21 May 14:10
5.3.13
62e2427
Compare
Choose a tag to compare
  • 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

07 May 15:38
5.3.12
6c14389
Compare
Choose a tag to compare
  • 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)