Releases: craftcms/commerce
Releases · craftcms/commerce
5.3.0.2
5.3.0.1
- 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
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
andmakePrimaryBillingAddress
property values now persist during checkout. - The
commerce/update-cart
action now includes anoriginalCart
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 respectingmakePrimaryShippingAddress
andmakePrimaryBillingAddress
params for newly-created addresses. (#3864) - Fixed a PHP error that could occur when viewing discounts. (#3844)
4.8.0
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
- Fixed a JavaScript error that occurred when updating an order’s status for a non-primary store on order indexes.
5.2.12
- 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
- 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
5.2.10
4.7.2
- Fixed a bug where the Edit Order page wasn’t showing order errors.