|
1 | 1 | # Release Notes for Craft Commerce
|
2 | 2 |
|
| 3 | +## Unreleased |
| 4 | + |
| 5 | +### Store Management |
| 6 | +- Archived gateways are now listed on the Gateways index page. ([#3839](https://github.com/craftcms/commerce/issues/3839)) |
| 7 | +- Added card view designers for products and variants. ([#3809](https://github.com/craftcms/commerce/pull/3809)) |
| 8 | +- Order conditions can now have “Coupon Code” and “Payment Gateway” rules. ([#3776](https://github.com/craftcms/commerce/discussions/3776), [#3722](https://github.com/craftcms/commerce/discussions/3722)) |
| 9 | +- Product variant conditions can now have a “Product” rule. |
| 10 | +- Tax rates now have statuses. ([#3790](https://github.com/craftcms/commerce/discussions/3790)) |
| 11 | +- It’s now possible to restore soft-deleted product variants. |
| 12 | +- Improved Craft Commerce navigation and breadcrumb labels. |
| 13 | + |
| 14 | +### Administration |
| 15 | +- The “Recipient”, “BCC’d Recipient”, and “CC’d Recipient” email settings now support being set to environment variables. ([#3738](https://github.com/craftcms/commerce/issues/3738)) |
| 16 | +- It’s now possible to view (but not edit) system and plugin settings on environments where `allowAdminChanges` is disabled. |
| 17 | + |
| 18 | +### Development |
| 19 | +- Added the `couponCode` order query param. |
| 20 | +- Orders’ `makePrimaryShippingAddress` and `makePrimaryBillingAddress` property values now persist during checkout. |
| 21 | +- The `commerce/update-cart` action now includes an `originalCart` key in JSON responses. ([#430](https://github.com/craftcms/commerce/issues/430)) |
| 22 | + |
| 23 | +### Extensibility |
| 24 | +- Added support for registering custom tax ID validators. |
| 25 | +- Added `craft\commerce\base\InventoryItemTrait`. |
| 26 | +- Added `craft\commerce\base\InventoryItemTrait`. |
| 27 | +- Added `craft\commerce\base\InventoryLocationTrait`. |
| 28 | +- Added `craft\commerce\base\InventoryLocationTrait`. |
| 29 | +- Added `craft\commerce\base\Purchasable::hasInventory()`. |
| 30 | +- Added `craft\commerce\base\Purchasable::loadSales()`. |
| 31 | +- Added `craft\commerce\base\TaxIdValidatorInterface`. |
| 32 | +- Added `craft\commerce\controllers\BaseStoreManagementController::getStoreSwitch()`. |
| 33 | +- Added `craft\commerce\elements\Purchasable::$allowOutOfStockPurchases`. |
| 34 | +- Added `craft\commerce\elements\Purchasable::getIsOutOfStockPurchasingAllowed()`. |
| 35 | +- Added `craft\commerce\elements\conditions\orders\CouponCodeConditionRule`. |
| 36 | +- Added `craft\commerce\elements\conditions\variants\ProductConditionRule`. |
| 37 | +- Added `craft\commerce\elements\db\OrderQuery::$couponCode`. |
| 38 | +- Added `craft\commerce\elements\db\OrderQuery::couponCode()`. |
| 39 | +- Added `craft\commerce\events\CartPurgeEvent`. |
| 40 | +- Added `craft\commerce\events\PurchasableOutOfStockPurchasesAllowedEvent`. |
| 41 | +- Added `craft\commerce\services\Gateways\getAllArchivedGateways()`. |
| 42 | +- Added `craft\commerce\services\Inventory::updateInventoryLevel()`. |
| 43 | +- Added `craft\commerce\services\Inventory::updateInventoryLevel()`. |
| 44 | +- Added `craft\commerce\services\Inventory::updatePurchasableInventoryLevel()`. |
| 45 | +- Added `craft\commerce\services\Inventory::updatePurchasableInventoryLevel()`. |
| 46 | +- Added `craft\commerce\services\Purchasables::EVENT_PURCHASABLE_OUT_OF_STOCK_PURCHASES_ALLOWED`. |
| 47 | +- Added `craft\commerce\services\Purchasables::isPurchasableOutOfStockPurchasingAllowed()`. |
| 48 | +- Added `craft\commerce\services\Taxes::EVENT_REGISTER_TAX_ID_VALIDATORS`. |
| 49 | +- Added `craft\commerce\services\Taxes::getEnabledTaxIdValidators()`. |
| 50 | +- Added `craft\commerce\services\Taxes::getTaxIdValidators()`. |
| 51 | +- Added `craft\commerce\taxidvalidators\EuVatIdValidator`. |
| 52 | + |
| 53 | +### System |
| 54 | +- Craft Commerce now requires Craft CMS 5.6.0 or later. |
| 55 | +- Fixed a bug where orders’ promotional prices could be calculated incorrectly when using sales. |
| 56 | +- Fixed a bug where the `commerce/cart/update-cart` action wasn’t respecting `makePrimaryShippingAddress` and `makePrimaryBillingAddress` params for newly-created addresses. ([#3864](https://github.com/craftcms/commerce/pull/3864)) |
| 57 | +- Fixed a PHP error that could occur when viewing discounts. ([#3844](https://github.com/craftcms/commerce/issues/3844)) |
| 58 | + |
3 | 59 | ## 5.2.12.1 - 2025-01-23
|
4 | 60 |
|
5 | 61 | - Fixed a JavaScript error that occurred when updating an order’s status for a non-primary store on order indexes.
|
|
0 commit comments