Skip to content

Releases: craftcms/commerce

5.3.0.2

31 Jan 08:38
5.3.0.2
c42646f
Compare
Choose a tag to compare
  • Fixed a bug where gateways weren’t ensuring handle uniqueness. (#3839)

5.3.0.1

31 Jan 07:15
5.3.0.1
8806eea
Compare
Choose a tag to compare
  • Fixed a bug where the craft\commerce\events\CartPurgeEvent could not be used in any event.
  • Added craft\commerce\services\Carts::EVENT_BEFORE_PURGE_INACTIVE_CARTS.

5.3.0

30 Jan 16:56
5.3.0
15f7643
Compare
Choose a tag to compare

Store Management

  • Archived gateways are now listed on the Gateways index page. (#3839)
  • Added card view designers for products and variants. (#3809)
  • Order conditions can now have “Coupon Code” and “Payment Gateway” rules. (#3776, #3722)
  • Product variant conditions can now have a “Product” rule.
  • Tax rates now have statuses. (#3790)
  • It’s now possible to restore soft-deleted product variants.
  • Improved Craft Commerce navigation and breadcrumb labels.

Administration

  • The “Recipient”, “BCC’d Recipient”, and “CC’d Recipient” email settings now support being set to environment variables. (#3738)
  • It’s now possible to view (but not edit) system and plugin settings on environments where allowAdminChanges is disabled.

Development

  • Added the couponCode order query param.
  • Orders’ makePrimaryShippingAddress and makePrimaryBillingAddress property values now persist during checkout.
  • The commerce/update-cart action now includes an originalCart key in JSON responses. (#430)

Extensibility

  • Added support for registering custom tax ID validators.
  • Added craft\commerce\base\InventoryItemTrait.
  • Added craft\commerce\base\InventoryItemTrait.
  • Added craft\commerce\base\InventoryLocationTrait.
  • Added craft\commerce\base\InventoryLocationTrait.
  • Added craft\commerce\base\Purchasable::hasInventory().
  • Added craft\commerce\base\Purchasable::loadSales().
  • Added craft\commerce\base\TaxIdValidatorInterface.
  • Added craft\commerce\controllers\BaseStoreManagementController::getStoreSwitch().
  • Added craft\commerce\elements\Purchasable::$allowOutOfStockPurchases.
  • Added craft\commerce\elements\Purchasable::getIsOutOfStockPurchasingAllowed().
  • Added craft\commerce\elements\conditions\orders\CouponCodeConditionRule.
  • Added craft\commerce\elements\conditions\variants\ProductConditionRule.
  • Added craft\commerce\elements\db\OrderQuery::$couponCode.
  • Added craft\commerce\elements\db\OrderQuery::couponCode().
  • Added craft\commerce\events\CartPurgeEvent.
  • Added craft\commerce\events\PurchasableOutOfStockPurchasesAllowedEvent.
  • Added craft\commerce\services\Gateways\getAllArchivedGateways().
  • Added craft\commerce\services\Inventory::updateInventoryLevel().
  • Added craft\commerce\services\Inventory::updateInventoryLevel().
  • Added craft\commerce\services\Inventory::updatePurchasableInventoryLevel().
  • Added craft\commerce\services\Inventory::updatePurchasableInventoryLevel().
  • Added craft\commerce\services\Purchasables::EVENT_PURCHASABLE_OUT_OF_STOCK_PURCHASES_ALLOWED.
  • Added craft\commerce\services\Purchasables::isPurchasableOutOfStockPurchasingAllowed().
  • Added craft\commerce\services\Taxes::EVENT_REGISTER_TAX_ID_VALIDATORS.
  • Added craft\commerce\services\Taxes::getEnabledTaxIdValidators().
  • Added craft\commerce\services\Taxes::getTaxIdValidators().
  • Added craft\commerce\taxidvalidators\EuVatIdValidator.

System

  • Craft Commerce now requires Craft CMS 5.6.0 or later.
  • Fixed a bug where orders’ promotional prices could be calculated incorrectly when using sales.
  • Fixed a bug where the commerce/cart/update-cart action wasn’t respecting makePrimaryShippingAddress and makePrimaryBillingAddress params for newly-created addresses. (#3864)
  • Fixed a PHP error that could occur when viewing discounts. (#3844)

4.8.0

30 Jan 16:55
4.8.0
daf41fd
Compare
Choose a tag to compare

Store Management

  • Archived gateways are now listed on the Gateways index page. (#3839)
  • Improved Craft Commerce navigation and breadcrumb labels.

Extensibility

  • Added support for registering custom tax ID validators.
  • Added \craft\commerce\services\Taxes::getEnabledTaxIdValidators().
  • Added \craft\commerce\services\Taxes::getTaxIdValidators().
  • Added craft\commerce\base\TaxIdValidatorInterface.
  • Added craft\commerce\services\Gateways\getAllArchivedGateways().
  • Added craft\commerce\services\Taxes::EVENT_REGISTER_TAX_ID_VALIDATORS.
  • Added craft\commerce\taxidvalidators\EuVatIdValidator.

5.2.12.1

23 Jan 09:41
5.2.12.1
f647e66
Compare
Choose a tag to compare
  • Fixed a JavaScript error that occurred when updating an order’s status for a non-primary store on order indexes.

5.2.12

22 Jan 16:15
5.2.12
d6c8ac5
Compare
Choose a tag to compare
  • Fixed a bug where product types’ “Max Variants” settings weren’t being respected. (#3845)
  • Fixed a bug where products could be duplicated by users without the “Create products” permission for the product type. (#3838)
  • Fixed a PHP error that could occur when updating a cart. (#3842)
  • Fixed a PHP error that could occur when adding an invalid address to a cart. (#3848)

4.7.3

22 Jan 15:30
4.7.3
0b432cc
Compare
Choose a tag to compare
  • Fixed a bug where users products had a “Save as a new product” action even if a plugin was preventing duplication via craft\services\Elements::EVENT_AUTHORIZE_DUPLICATE. (#3819)
  • Fixed a PHP error that could occur when updating a cart. (#3842)
  • Fixed a PHP error that could occur when adding an invalid address to a cart. (#3848)

5.2.11

02 Jan 23:38
5.2.11
4a60f49
Compare
Choose a tag to compare
  • Fixed an error that occurred when rendering a Link field with a product selected on the front end. (#3833)

5.2.10

18 Dec 15:50
5.2.10
7e05583
Compare
Choose a tag to compare
  • Fixed a PHP error that could occur when eager-loading variants’ owners. (#3817)
  • Fixed a bug where variant chips weren’t rendering correctly. (#3813)

4.7.2

18 Dec 15:48
4.7.2
1b40aeb
Compare
Choose a tag to compare
  • Fixed a bug where the Edit Order page wasn’t showing order errors.