Skip to content
Merged

5.4 #3872

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
b610e23
Start 5.4 release notes
lukeholder Jan 31, 2025
3f6495b
Fixed bug where not all data for new line item was passed to resolvel…
lukeholder Feb 6, 2025
798849a
Fix missing param name
lukeholder Feb 6, 2025
d2bddbe
Merge branch '5.x' into feature/pt-2419-5x-qty-in-populatelineitem-ev…
lukeholder Feb 6, 2025
4d262e6
Merge branch '5.x' into 5.4
lukeholder Feb 6, 2025
84df8fe
Merge branch '5.x' into 5.4
nfourtythree Feb 10, 2025
8d4188b
Update workflow
nfourtythree Feb 10, 2025
1a8353a
Prep 4.9 branch
nfourtythree Feb 10, 2025
f310c75
#3783 `localized` graphql field
nfourtythree Feb 17, 2025
7ca86a9
Update rector file + 5.3
nfourtythree Feb 17, 2025
5d0df03
rector PHP 7
nfourtythree Feb 17, 2025
a4d307e
rector PHP 7.3
nfourtythree Feb 17, 2025
5af3adc
rector PHP 7.4
nfourtythree Feb 17, 2025
8af65ac
rector PHP 8.0
nfourtythree Feb 17, 2025
390607c
fix cs
nfourtythree Feb 17, 2025
2bbaee0
fix phpstan
nfourtythree Feb 18, 2025
6aff9a6
fix test broken by rector
nfourtythree Feb 18, 2025
a46b4d6
rector arrow functions
nfourtythree Feb 18, 2025
dccb19b
add rector to workflow
nfourtythree Feb 18, 2025
05fad7f
tweak fix
nfourtythree Feb 18, 2025
168bc61
Merge branch '5.x' into 5.4
nfourtythree Mar 3, 2025
a4a9d61
#3910 Added `catalogPricingRuleId` to Purchasables and line item snap…
nfourtythree Mar 3, 2025
ebdc578
CHANGELOG tweak
nfourtythree Mar 5, 2025
6df935c
WIP
lukeholder Mar 5, 2025
3ac5a1d
Block coupon with new conditions
lukeholder Mar 13, 2025
d45d8a8
Merge branch '5.4' into feature/pt-2590-5x-discount-conditional-rules…
lukeholder Mar 13, 2025
d9c1b4f
release note
lukeholder Mar 13, 2025
c3cd6bb
Merge branch '5.4' into feature/com-223-gateway-condition-rules
lukeholder Mar 13, 2025
6a076f2
Merge branch '5.x' into 5.4
lukeholder Mar 13, 2025
1da6e71
Merge branch '5.4' into feature/pt-2590-5x-discount-conditional-rules…
lukeholder Mar 13, 2025
81fdb91
Merge branch '5.4' into feature/com-223-gateway-condition-rules
lukeholder Mar 14, 2025
7ee203f
Merge branch '5.x' into 5.4
lukeholder Mar 14, 2025
fa8dc96
Merge branch '5.4' into feature/com-223-gateway-condition-rules
lukeholder Mar 14, 2025
392b49f
Finish gateway order condition
lukeholder Mar 14, 2025
c457fbd
Release notes
lukeholder Mar 14, 2025
c05167e
Cleanup
lukeholder Mar 14, 2025
0deacff
Cleanup
lukeholder Mar 17, 2025
24cd3c2
centralize the gateway config creation
lukeholder Mar 17, 2025
502cecf
Cleanup
lukeholder Mar 17, 2025
333509c
Cleanup
lukeholder Mar 17, 2025
69de98e
Merge branch '5.x' into 5.4
nfourtythree Apr 1, 2025
280ee21
Added #3925 customer condition to shipping methods
nfourtythree Apr 1, 2025
c9a444c
changelog
nfourtythree Apr 1, 2025
5879d72
Fixed translations typo
nfourtythree Apr 1, 2025
df954d5
Merge branch '5.4' into feature/pt-2584-5x-extra-usercustomer-based-c…
nfourtythree Apr 1, 2025
e7e1812
Merge branch '5.x' into 5.4
nfourtythree Apr 3, 2025
fe3cd56
Merge branch '5.4' into feature/pt-2584-5x-extra-usercustomer-based-c…
nfourtythree Apr 3, 2025
16d2c46
Add customer condition to Shipping rules
nfourtythree Apr 3, 2025
4671abd
Add #3953 ability to set variant status from the product edit screen
nfourtythree Apr 4, 2025
512cfd7
Add base promotional price to product index and query
lukeholder Apr 9, 2025
17b7366
Merge pull request #3962 from craftcms/feature/pt-2700-54-add-set-sta…
lukeholder Apr 14, 2025
71d4e16
Merge branch '5.4' into feature/pt-2590-5x-discount-conditional-rules…
lukeholder Apr 14, 2025
e81d794
Merge branch '5.4' into feature/com-223-gateway-condition-rules
lukeholder Apr 14, 2025
d958dda
Merge pull request #3940 from craftcms/feature/com-223-gateway-condit…
lukeholder Apr 14, 2025
2ff1823
Add `Purchasable::getCatalogPricingRule()` method
nfourtythree Apr 14, 2025
a011f5f
Merge branch '5.4' into feature/pt-2554-5x-add-catalog-pricing-rule-i…
nfourtythree Apr 14, 2025
9b66c38
Methods not needed
nfourtythree Apr 14, 2025
fd324e6
Tweak returning `catalogPricingRuleId` on `Purchasable`
nfourtythree Apr 15, 2025
79e457b
Merge branch '5.x' into 5.4
nfourtythree Apr 15, 2025
23e5e05
Added metadata display to catalog pricing rule edit screens #3975
nfourtythree Apr 17, 2025
6e9453f
Merge pull request #3982 from craftcms/feature/pt-2729-5x-metadata-no…
lukeholder Apr 22, 2025
544ac43
Merge branch '5.x' into 5.4
lukeholder Apr 29, 2025
42cfb32
Add variant resave
lukeholder Apr 30, 2025
7eb54bb
Merge branch '5.4' into feature/add-promotional-prices-to-product-index
lukeholder May 6, 2025
9699609
Use REST endpoint for EU VAT number validation
nfourtythree May 13, 2025
df3c49d
changelog
nfourtythree May 13, 2025
463831e
Merge pull request #3991 from craftcms/feature/resave-variants
lukeholder May 14, 2025
e9e60ea
Merge branch '5.4' into feature/add-promotional-prices-to-product-index
lukeholder May 14, 2025
2b1ecae
Merge branch 'feature/add-promotional-prices-to-product-index' of git…
lukeholder May 14, 2025
fe077de
Release notes
lukeholder May 14, 2025
66a0c8d
Merge pull request #3966 from craftcms/feature/add-promotional-prices…
lukeholder May 14, 2025
fa9c28d
Merge branch '5.4' into feature/pt-2584-5x-extra-usercustomer-based-c…
lukeholder May 14, 2025
f61c5dd
Merge pull request #3961 from craftcms/feature/pt-2584-5x-extra-userc…
lukeholder May 14, 2025
351f8b7
Merge branch '5.4' into feature/pt-2590-5x-discount-conditional-rules…
lukeholder May 14, 2025
468ce2e
Merge pull request #3937 from craftcms/feature/pt-2590-5x-discount-co…
lukeholder May 14, 2025
f21b9a4
Merge branch '5.4' into feature/pt-2419-5x-qty-in-populatelineitem-ev…
lukeholder May 14, 2025
204920e
Release notes
lukeholder May 14, 2025
49b1d32
same as 5.x
lukeholder May 14, 2025
e394013
Merge branch '5.x' into 5.4
lukeholder May 14, 2025
6997102
Merge branch '5.4' into feature/pt-2419-5x-qty-in-populatelineitem-ev…
lukeholder May 14, 2025
2b86331
Merge pull request #3884 from craftcms/feature/pt-2419-5x-qty-in-popu…
lukeholder May 14, 2025
a82460a
Update composer lock
lukeholder May 14, 2025
6922d46
Remove
lukeholder May 14, 2025
188ed8a
Remove usage of VAT library in EU validator class
nfourtythree May 15, 2025
a446c17
Tidy, add test, remove dep
nfourtythree May 15, 2025
16f1a43
Merge branch '4.x' into 4.9
nfourtythree May 15, 2025
827bad7
Merge branch '4.9' into feature/4.x-update-eu-vat-validator-api-client
nfourtythree May 15, 2025
34a68d1
changelog item
nfourtythree May 15, 2025
d877b22
Just validate format due to API stability
nfourtythree May 15, 2025
600bbd3
Cleanup
lukeholder May 21, 2025
1727b24
Copy paste Variants
lukeholder May 21, 2025
b2b052a
Fix test
nfourtythree May 21, 2025
451ba4a
Merge branch '5.4' into feature/pt-2554-5x-add-catalog-pricing-rule-i…
nfourtythree May 21, 2025
58f58cf
Merge pull request #4007 from craftcms/feature/4.x-update-eu-vat-vali…
nfourtythree May 21, 2025
e4cd9ff
Merge branch '4.9' into 5.4
nfourtythree May 21, 2025
fe256f2
fix code style
nfourtythree May 21, 2025
77941d8
Merge branch '5.4' into feature/pt-2554-5x-add-catalog-pricing-rule-i…
nfourtythree May 21, 2025
b1035f9
Fix tests
nfourtythree May 21, 2025
d9353f0
Fixed race condition in deleting old adjustments
lukeholder May 22, 2025
669df1f
Improve default label
lukeholder May 27, 2025
e8b1b5c
Cleanup release notes
lukeholder May 28, 2025
ebd8deb
Merge branch '5.4' into feature/copy-paste-elements
lukeholder May 28, 2025
81ed245
Put ibericode/vat back in
lukeholder May 28, 2025
a7717b5
Merge branch '5.4' into feature/copy-paste-elements
lukeholder May 28, 2025
d86fa64
Wording fix
lukeholder May 28, 2025
5bff339
Don’t throw execptions when saving a line item or adjustment that doe…
lukeholder May 28, 2025
4fd97d3
Release notes correction
lukeholder May 28, 2025
0e5f2b3
Cleanup
lukeholder May 28, 2025
ec41840
Merge branch '5.4' into feature/pt-2554-5x-add-catalog-pricing-rule-i…
nfourtythree May 28, 2025
cb4698d
Promotable default option
lukeholder May 28, 2025
41cd793
Merge pull request #3915 from craftcms/feature/pt-2554-5x-add-catalog…
nfourtythree May 28, 2025
418bc59
Use is fresh
lukeholder May 29, 2025
5b473e1
Add copy to user action for applicable addresses on order edit
nfourtythree May 29, 2025
32df27b
build JS files
nfourtythree May 29, 2025
965ee1e
changelog
nfourtythree May 29, 2025
e4745bd
fix PHPstan
nfourtythree May 29, 2025
de46f68
Can’t remove dependency as it has require (but deprecated) use in 5
nfourtythree May 29, 2025
5a52ffd
Missing admin areas for GB
nfourtythree May 29, 2025
aa31243
Merge branch '4.9' into 5.4
nfourtythree May 29, 2025
f01c4cc
bump deps
nfourtythree May 29, 2025
5d4aaa4
Merge branch '5.4' into feature/com-449-add-copy-to-users-address-boo…
nfourtythree May 29, 2025
1ca4225
`editUsers` permission check, fixed a bug with persisting source IDs
nfourtythree Jun 3, 2025
513a2c3
Merge branch '5.4' into feature/promotable-default-option
lukeholder Jun 4, 2025
903c8fe
More defaults for variant fields
lukeholder Jun 4, 2025
3daba8e
Merge branch '5.4' into feature/copy-paste-elements
lukeholder Jun 4, 2025
29a0015
Merge pull request #4028 from craftcms/feature/com-449-add-copy-to-us…
nfourtythree Jun 4, 2025
cd117c2
Merge branch '4.x' into 4.9
nfourtythree Jun 4, 2025
c52c311
fix cs
nfourtythree Jun 4, 2025
3cfe0ac
Merge branch '4.x' into feature/fix-order-lineitem-adjustment-saves
lukeholder Jun 4, 2025
6cc18ac
Merge branch '4.9' into feature/rector-updates
nfourtythree Jun 4, 2025
8c217d9
Rector fix
nfourtythree Jun 4, 2025
83e960a
Fix possible race condition
lukeholder Jun 4, 2025
b4e5d34
Cleanup
lukeholder Jun 4, 2025
2475ef1
Use mutex in after save
lukeholder Jun 4, 2025
dd08244
Merge pull request #3900 from craftcms/feature/rector-updates
lukeholder Jun 4, 2025
e85e56a
Merge pull request #4025 from craftcms/feature/promotable-default-option
lukeholder Jun 4, 2025
34b50ea
Merge pull request #4013 from craftcms/feature/copy-paste-elements
lukeholder Jun 4, 2025
22f7fce
Merge branch '4.9' into 5.4
nfourtythree Jun 4, 2025
aa3a918
Run rector
nfourtythree Jun 4, 2025
3d7b27a
fix phpstan
nfourtythree Jun 4, 2025
6223db5
Merge branch '5.x' into 5.4
brandonkelly Jun 4, 2025
354f557
Translation cleanup
brandonkelly Jun 4, 2025
b9d5b11
New translations commerce.php (French)
shinybrad Jun 4, 2025
e1c094f
New translations commerce.php (German)
shinybrad Jun 4, 2025
d1d5eb6
New translations commerce.php (Italian)
shinybrad Jun 4, 2025
32df22c
New translations commerce.php (Japanese)
shinybrad Jun 4, 2025
31ad4d6
New translations commerce.php (Dutch)
shinybrad Jun 4, 2025
0dac902
New translations commerce.php (Portuguese)
shinybrad Jun 4, 2025
3f3be11
New translations commerce.php (Slovak)
shinybrad Jun 4, 2025
00e60b7
New translations commerce.php (English, United Kingdom)
shinybrad Jun 4, 2025
1a2d849
New translations commerce.php (French, Canada)
shinybrad Jun 4, 2025
a34c982
New translations commerce.php (Norwegian Bokmal)
shinybrad Jun 4, 2025
7d88144
Merge branch '5.x' into 5.4
brandonkelly Jun 4, 2025
be27fce
New translations commerce.php (French)
shinybrad Jun 4, 2025
a0d1553
New translations commerce.php (German)
shinybrad Jun 4, 2025
33fa78a
New translations commerce.php (Italian)
shinybrad Jun 4, 2025
ce196bf
New translations commerce.php (Japanese)
shinybrad Jun 4, 2025
058d267
New translations commerce.php (Dutch)
shinybrad Jun 4, 2025
da6a901
New translations commerce.php (Portuguese)
shinybrad Jun 4, 2025
e398f60
New translations commerce.php (Slovak)
shinybrad Jun 4, 2025
71e0ef0
New translations commerce.php (English, United Kingdom)
shinybrad Jun 4, 2025
e11600c
New translations commerce.php (French, Canada)
shinybrad Jun 4, 2025
b4ae5cc
New translations commerce.php (Norwegian Bokmal)
shinybrad Jun 4, 2025
9bddd71
Merge branch 't9n/5.4' into 5.4
brandonkelly Jun 4, 2025
64ed029
New translations commerce.php (German)
shinybrad Jun 5, 2025
3b6dbbb
New translations commerce.php (Dutch)
shinybrad Jun 5, 2025
db21681
New translations commerce.php (Dutch)
shinybrad Jun 5, 2025
ce77d83
New translations commerce.php (Portuguese)
shinybrad Jun 5, 2025
927aa05
New translations commerce.php (Italian)
shinybrad Jun 5, 2025
379beff
New translations commerce.php (Dutch)
shinybrad Jun 5, 2025
b986223
New translations commerce.php (Japanese)
shinybrad Jun 5, 2025
49175a3
New translations commerce.php (Norwegian Bokmal)
shinybrad Jun 6, 2025
2cc6e1e
New translations commerce.php (Norwegian Bokmal)
shinybrad Jun 6, 2025
2333b22
New translations commerce.php (French)
shinybrad Jun 6, 2025
171e9a5
New translations commerce.php (French)
shinybrad Jun 6, 2025
2d32d96
New translations commerce.php (Slovak)
shinybrad Jun 6, 2025
a97a8d1
New translations commerce.php (French, Canada)
shinybrad Jun 6, 2025
98e1c0c
Merge branch '4.x' into t9n/4.x
brandonkelly Jun 13, 2025
64778df
Merge pull request #4037 from craftcms/t9n/4.x
brandonkelly Jun 13, 2025
ca86714
ECS
brandonkelly Jun 13, 2025
dbc48bf
Merge pull request #4036 from craftcms/t9n/5.4
brandonkelly Jun 13, 2025
d611812
Add card attributes to orders
lukeholder Jun 18, 2025
72a9fa3
Merge branch '4.9' into feature/fix-order-lineitem-adjustment-saves
lukeholder Jun 18, 2025
7a169d9
Merge branch 'feature/fix-order-lineitem-adjustment-saves' of github.…
lukeholder Jun 18, 2025
3b76d7f
Merge branch '5.x' into 5.4
nfourtythree Jun 18, 2025
9583a0e
Merge branch '4.x' into 4.9
lukeholder Jun 18, 2025
be44ffd
Release notes
lukeholder Jun 18, 2025
9a0ffed
Merge branch '4.9' into feature/fix-order-lineitem-adjustment-saves
lukeholder Jun 18, 2025
aa2fff1
Merge pull request #4030 from craftcms/feature/fix-order-lineitem-adj…
lukeholder Jun 18, 2025
126e70d
Merge branch '5.x' into 5.4
nfourtythree Jun 18, 2025
1658950
changelog tweaks
brandonkelly Jun 18, 2025
59b6f43
Changelog tweaks
brandonkelly Jun 18, 2025
73ffd30
update workflow
nfourtythree Jun 18, 2025
346c87d
Merge pull request #4014 from craftcms/4.9
nfourtythree Jun 18, 2025
81e5eb4
Finish 4.9.0
nfourtythree Jun 18, 2025
16747ac
Merge branch '4.x' into 5.4
nfourtythree Jun 18, 2025
c494c49
use order
nfourtythree Jun 18, 2025
5920b45
Fix bad merge
nfourtythree Jun 18, 2025
d14e590
`LineItemNotFoundException` references
nfourtythree Jun 18, 2025
c8091a4
use order
nfourtythree Jun 18, 2025
463d477
Allow mass assignment of dates
lukeholder Jun 20, 2025
a2c53d0
Fix bad merge
lukeholder Jun 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions CHANGELOG-WIP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Release Notes for Craft Commerce 5.4 (WIP)

### Store Management
- It’s now possible to set variants’ statuses from Edit Product screens. ([#3953](https://github.com/craftcms/commerce/discussions/3953))
- Coupon validation errors now provide an explanation when invalid due to order, customer, or address conditions. ([#3935](https://github.com/craftcms/commerce/issues/3935))
- Catalog Pricing Rule screens now display custom metadata. ([#3975](https://github.com/craftcms/commerce/pull/3975))
- Product indexes now have a “Promotional Price” column.

### Administration
- It’s now possible to set a variants’ default “Promotable”, “Track Inventory”, “Allow out of stock purchases”, and “Available for purchase” values when configuring variant field layouts. ([#3571](https://github.com/craftcms/commerce/issues/3571))
- Shipping methods and shipping rules now support flexible customer matching, based on a customer condition. ([#3925](https://github.com/craftcms/commerce/issues/3925))
- Gateways now have a “Match Order” condition that determines which orders the gateway should be available for. ([#3913](https://github.com/craftcms/commerce/discussions/3913))
- All native order attributes are now available as card attributes. ([#4019](https://github.com/craftcms/commerce/issues/4019))
- Added the `resave/variants` command.

### Development
- Line item snapshots now contain a `catalogPricingRuleId` field. ([#3910](https://github.com/craftcms/commerce/issues/3910))
- Added the `localized` field to products’ GraphQL data. ([#3783](https://github.com/craftcms/commerce/discussions/3783))

### Extensibility
- Added `craft\commerce\base\Gateway::getConfig()`.
- Added `craft\commerce\base\Gateway::getOrderCondition()`.
- Added `craft\commerce\base\Gateway::getOrderCondition()`.
- Added `craft\commerce\base\Gateway::hasOrderCondition()`.
- Added `craft\commerce\base\Gateway::setOrderCondition()`.
- Added `craft\commerce\base\Gateway::setOrderCondition()`.
- Added `craft\commerce\base\Gateway::setOrderCondition()`.
- Added `craft\commerce\base\Purchasable::$catalogPricingRuleId`.
- Added `craft\commerce\base\Purchasable::getCatalogPricingRule()`.
- Added `craft\commerce\controllers\OrdersController::actionCopyAddressToUser()`.
- Added `craft\commerce\elements\Product::$defaultBasePromotionalPrice`
- Added `craft\commerce\elements\conditions\customers\ShippingMethodCustomerCondition`.
- Added `craft\commerce\elements\conditions\customers\ShippingRuleCustomerCondition`.
- Added `craft\commerce\models\ShippingMethod::getCustomerCondition()`.
- Added `craft\commerce\models\ShippingMethod::setCustomerCondition()`.
- Added `craft\commerce\models\ShippingRule::getCustomerCondition()`.
- Added `craft\commerce\models\ShippingRule::setCustomerCondition()`.
- Added `craft\commerce\taxidvalidators\EuVatIdValidator::API_URL`.

### System
- Improved store query performance. ([#4029](https://github.com/craftcms/commerce/issues/4029))
- Fixed a bug where the purchasable cache was not cleared when stock was updated.
- Fixed a PHP error that could occur when sending emails. ([#4017](https://github.com/craftcms/commerce/issues/4017))
- Fixed a SQL error that could occur when upgrading to Commerce 5. ([#4044](https://github.com/craftcms/commerce/issues/4044))
- Fixed a bug where duplicate order references could be generated. ([#4050](https://github.com/craftcms/commerce/issues/4050))
- Fixed a bug where purchasables’ `shippingCategoryId` and `taxCategoryId` properties couldn’t be set via `setAttributes()`. ([#4046](https://github.com/craftcms/commerce/issues/4046))
- Fixed a bug where gateway settings weren’t storing project config values consistently. ([#3941](https://github.com/craftcms/commerce/issues/3941))
- Fixed a bug where new line items did not expose their submitted quantity to the `craft\commerce\services\LineItems::EVENT_POPULATE_LINE_ITEM` event. ([#3883](https://github.com/craftcms/commerce/issues/3883))
- Fixed a PHP error that could occur when saving an order. ([#3283](https://github.com/craftcms/commerce/issues/3283))
9 changes: 0 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
# Release Notes for Craft Commerce

## Unreleased

- Improved store query performance. ([#4029](https://github.com/craftcms/commerce/issues/4029))
- Fixed a bug where purchasable cache was not cleared when stock was updated.
- Fixed a PHP error that could occur when sending emails. ([#4017](https://github.com/craftcms/commerce/issues/4017))
- Fixed a SQL error that could occur when upgrading to Commerce 5. ([#4044](https://github.com/craftcms/commerce/issues/4044))
- Fixed a bug where duplicate order references could be generated. ([#4050](https://github.com/craftcms/commerce/issues/4050))
- Fixed a bug where `shippingCategoryId` and `taxCategoryId` were not marked as Purchasable attributes. ([#4046](https://github.com/craftcms/commerce/issues/4046))

## 5.3.13 - 2025-05-21

- Fixed a bug where the “Recipient”, “BCC’d Recipient”, and “CC’d Recipient” email settings weren’t working properly if set to environment variables. ([#4004](https://github.com/craftcms/commerce/issues/4004), [#4002](https://github.com/craftcms/commerce/issues/4002))
Expand Down
Loading
Loading