Skip to content

Releases: craftcms/commerce

4.3.1

18 Oct 15:44
4.3.1
bdca33a
Compare
Choose a tag to compare
  • Added the commerce/gateways/list command.
  • Added the commerce/gateways/webhook-url command.
  • Improved the performance of the commerce/upgrade command. (#3286)
  • Auto-generated variant titles and SKUs are now generated before products are saved. (#3297)
  • Added craft\commerce\models\ShippingMethodOption::$shippingMethod. (#3274, #3271)
  • craft\commerce\services\Purchasables::EVENT_PURCHASABLE_SHIPPABLE event handlers can now access the order. (#3279)
  • Fixed a bug where Edit Product pages showed a Delete button for users that didn’t have permission to delete the product. (#3285)
  • Fixed a bug where it was possible to select soft-deleted shipping categories. (#3272)
  • Fixed a bug where the Customer condition rule wasn’t loading correctly. (#3291)
  • Fixed an error that could occur when rendering a PDF. (#2633)
  • Fixed a bug where sales’ and discounts’ timestamps weren’t getting populated. (#3298)
  • Fixed a bug where the commerce/upgrade command could create duplicate inactive users. (#3286)
  • Fixed a bug where commerce/payments/pay JSON responses were missing the redirect key. (#3265)

3.4.23

18 Oct 17:18
3.4.23
bc11b8a
Compare
Choose a tag to compare
  • craft\commerce\services\Purchasables::EVENT_PURCHASABLE_SHIPPABLE event handlers can now access the order. (#3279)
  • Fixed a SQL error that could occur when fetching emails. (#3267)
  • Fixed a bug where gateway URLs could be malformed. (#3299)
  • Fixed an XSS vulnerability.

4.3.0

13 Sep 19:43
4.3.0
65a6166
Compare
Choose a tag to compare
  • Sales and discounts now support using related entries in their matching item conditions. (#3134, #2717)
  • It’s now possible to query products by shipping category and tax category. (#3219)
  • Guest customers registering during checkout now have their addresses saved to their account. (#3203)
  • Product conditions can now have “Product Type”, “Variant SKU”, “Variant Has Unlimited Stock”, “Variant Price”, and “Variant Stock” rules. (#3209)
  • Improved the performance of discount recalculation.
  • Improved the performance of the commerce/upgrade command. (#3208)
  • Added the commerce/cart/forget-cart action. (#3206)
  • The commerce/cart/update-cart action now accepts firstName and lastName address parameters. (#3015)
  • Added craft\commerce\controllers\OrdersController::EVENT_MODIFY_PURCHASABLES_TABLE_QUERY. (#3198)
  • Added craft\commerce\elements\Order::$orderCompletedEmail. (#3138)
  • Added craft\commerce\elements\db\ProductQuery::$shippingCategoryId.
  • Added craft\commerce\elements\db\ProductQuery::$taxCategoryId.
  • Added craft\commerce\elements\db\ProductQuery::shippingCategory().
  • Added craft\commerce\elements\db\ProductQuery::shippingCategoryId().
  • Added craft\commerce\elements\db\ProductQuery::taxCategory().
  • Added craft\commerce\elements\db\ProductQuery::taxCategoryId().
  • Added craft\commerce\models\Discount::hasBillingAddressCondition().
  • Added craft\commerce\models\Discount::hasCustomerCondition().
  • Added craft\commerce\models\Discount::hasOrderCondition().
  • Added craft\commerce\models\Discount::hasShippingAddressCondition().
  • Deprecated payment source creation via the commerce/subscriptions/subscribe action.
  • Deprecated craft\commerce\elements\Order::setEmail(). Order::setCustomer() should be used instead.
  • Removed the htmx option from thecommerce/example-templates command.
  • Removed the color option from thecommerce/example-templates command.
  • Added craft\commerce\events\ModifyPurchasablesTableQueryEvent. (#3198)
  • Fixed a bug where products/variants could be saved with a minimum quantity that was set higher than the maximum quantity. (#3234)
  • Fixed a bug where craft\commerce\elements\Order::hasMatchingAddresses() could incorrectly return false. (#3183)
  • Fixed a bug where changing a user’s email could cause additional user elements to be created. (#3138)
  • Fixed a bug where related sales were displaying when creating a new product.
  • Fixed a bug where Commerce wasn’t invoking craft\services\Elements::EVENT_AUTHORIZE_* event handlers.
  • Fixed a bug where discounts’ per user usage counters weren’t getting migrated properly when upgrading to Commerce 4.
  • Fixed a bug where address changes weren’t being synced to carts that were using them. (#3178)
  • Fixed an XSS vulnerability.

4.2.11

06 Jun 06:10
Compare
Choose a tag to compare
  • Fixed a bug where “Send Email” option text wasn’t getting translated. (#3172)
  • Fixed a bug where discounts’ user condition values weren’t getting migrated properly when upgrading to Commerce 4. (#3176)

3.4.22.1

03 Jun 08:19
3.4.22.1
fc08a7b
Compare
Choose a tag to compare
  • Fixed a bug where the incorrect version number was being shown after updating.

4.2.10

31 May 13:22
4.2.10
759a864
Compare
Choose a tag to compare
  • An error notification is now displayed when attempting to delete a user with existing orders or subscriptions. (#3071, #3070)
  • Added support for linking to products and variants from CKEditor fields. (#3150)
  • Fixed a bug where custom field conditions weren’t showing when editing a shipping zone.
  • Fixed a bug where discounts’ user condition values weren’t getting migrated properly when upgrading to Commerce 4. (#3176)
  • Fixed a bug where users weren’t permitted to update their subscriptions on the front-end. (#3155)
  • Fixed a PHP error that could occur when calling craft\commerce\services\Payments::processPayment() without passing the new $redirectData argument.

3.4.22

31 May 10:11
Compare
Choose a tag to compare
  • Fixed a bug where querying for variants could yield unexpected results. (#636)

4.2.9

25 May 13:58
Compare
Choose a tag to compare
  • The commerce/cart/update-cart action now accepts clearAddresses, clearBillingAddress, and clearShippingAddress params.
  • Fixed a JavaScript error that occurred when switching control panel tabs on small screens. (#3162)
  • Fixed a bug where the commerce/upgrade command wasn’t migrating discounts’ and coupons’ Max Uses values properly. (#2947)

4.2.8

03 May 16:02
4.2.8
62e54ba
Compare
Choose a tag to compare
  • Added craft\commerce\services\Customers::EVENT_UPDATE_PRIMARY_PAYMENT_SOURCE.
  • Fixed a bug where PDFs could be generated using the wrong formatting locale. (#3145)

3.4.21

03 May 15:43
3.4.21
fd9eeb5
Compare
Choose a tag to compare
  • Craft Commerce now requires Dompdf 2.0.0 or later.