Skip to content

Releases: craftcms/commerce

5.2.3

13 Nov 16:18
5.2.3
2f8c2a4
Compare
Choose a tag to compare
  • 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

08 Nov 16:02
5.2.2.1
1992203
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when retrieving a variant. (#3754)

5.2.2

06 Nov 18:35
5.2.2
18bb524
Compare
Choose a tag to compare
  • 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

23 Oct 14:56
5.2.1
272475a
Compare
Choose a tag to compare
  • 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

16 Oct 15:46
5.2.0
5c0195b
Compare
Choose a tag to compare

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)

5.1.4

16 Oct 15:34
5.1.4
2abf70e
Compare
Choose a tag to compare
  • 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

16 Oct 15:40
4.7.0
88cbeab
Compare
Choose a tag to compare

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

  • 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)

4.6.14

16 Oct 15:22
4.6.14
cd0025f
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when creating a subscription. (#3710)

5.1.3

02 Oct 14:54
5.1.3
e356ec0
Compare
Choose a tag to compare
  • 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

02 Oct 14:49
4.6.13
6933696
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when deleting a user with orders. (#3686)