Commit graph

29210 commits

Author SHA1 Message Date
Jacob Tobiasz
623b10ce7a
docs #15226 Update checkout.rst (zairigimad)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12                   |
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no/ |
| Related tickets | f                      |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  Update checkout.rst
2023-08-18 11:33:28 +02:00
Zairig Imad
29b344f17e
Update checkout.rst 2023-08-18 11:01:52 +02:00
Grzegorz Sadowski
2c6f04ab3e
bug #15228 [Docs] Update UPGRADE-1.12.md (UlrichHP)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12                 |
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets |                      |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

This PR fixes UPGRADE-1.12.md wrong sylius version

Commits
-------

6129ae4182 Update UPGRADE-1.12.md
2023-08-18 10:19:44 +02:00
Ulrich
6129ae4182
Update UPGRADE-1.12.md 2023-08-18 10:16:41 +02:00
Grzegorz Sadowski
61b89aed97
minor #15229 Update symfony/service-contracts in composer.json to update Sylius to 1.12.10 (UlrichHP)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no --> |
| Related tickets |  PR #15162                      |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

I can't update a Sylius project I have from 1.12.9 to 1.12.10 because of `symfony/service-contracts`  which only accepts version: ^2.5 and i have 3.3.0.

See below the response I get when doing `composer update sylius/sylius:1.12.10`

```bash
Problem 1
    - Root composer.json requires sylius/sylius ^1.12 -> satisfiable by sylius/sylius[v1.12.10].
    - sylius/sylius v1.12.10 requires symfony/service-contracts ^2.5 -> found symfony/service-contracts[v2.5.0, v2.5.1, v2.5.2] but the package is fixed to v3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
```


Commits
-------

fc3dae072c Update composer.json
49d538c51c Update OrderBundle composer.json
6cd7fda7b0 Update Component/Core composer.json
2023-08-18 10:13:16 +02:00
Grzegorz Sadowski
ed487b4285
minor #15234 Fix Sylius versions in UPGRADE file (GSadee)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | no                                                      |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | after https://github.com/Sylius/Sylius/pull/15218#pullrequestreview-1583436331 |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

0974db215f Fix Sylius versions in UPGRADE file
2023-08-18 10:11:28 +02:00
Grzegorz Sadowski
0974db215f
Fix Sylius versions in UPGRADE file 2023-08-18 06:53:18 +02:00
Grzegorz Sadowski
649a68b510
bug #15218 Fix attributes creation while the default locale is not available in our store (TheMilek, NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes [#X](https://github.com/Sylius/Sylius/issues/12112)                     |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

ec4d4d890f Remove usage of defaultLocaleCode from SelectAttributeChoicesCollectionType
fd1834479d Use localeCode in ProductAttribute form to prevent logic from breaking when not using default locale
a959f7c4fc [Behat] Add scenario for checking if attribute is correctly added with values
f297799825 Update upgrade file
a9546e0081 Fix BC Break in SelectAttributeChoicesCollectionType
2023-08-18 06:50:08 +02:00
Jacob Tobiasz
68c0dc5bd9
docs #15227 CartBlamerListener not found , replace with ShopCartBlamerListener (zairigimad)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 or 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                      |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | fixes #X, partially #Y, mentioned in #Z                      |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  Update checkout.rst
  Update docs/book/orders/checkout.rst
2023-08-18 06:01:38 +02:00
Jacob Tobiasz
f5585cb244
docs #15232 [Documentation][Admin] Add notes about accessing guest orders (GSadee)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | no                                                      |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes #11720 |
| License         | MIT                                                          |

Channel form:
<img width="661" alt="image" src="https://github.com/Sylius/Sylius/assets/6140884/0ac62417-44a7-4c38-b80c-9b2cb41141fe">

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  [Documentation] Add note about accessing guest orders by shop user
  [Admin] Add note to channel form about disabling account verification
2023-08-17 22:39:35 +02:00
Jan Goralski
a9546e0081
Fix BC Break in SelectAttributeChoicesCollectionType 2023-08-17 15:17:54 +02:00
Grzegorz Sadowski
5514a87bff
[Admin] Add note to channel form about disabling account verification 2023-08-17 15:11:55 +02:00
Grzegorz Sadowski
516d1f562b
[Documentation] Add note about accessing guest orders by shop user 2023-08-17 15:11:27 +02:00
Grzegorz Sadowski
8821485c23
bug #15231 Prevent skipping choosing payment step once skipping payment step allowed, but no payment method is available (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #11677
| License         | MIT



Commits
-------

bd61d53a88 Prevent skipping choosing payment step once skipping payment step allowed, but no payment method is available
2023-08-17 14:35:02 +02:00
Jacob Tobiasz
bd61d53a88
Prevent skipping choosing payment step once skipping payment step allowed, but no payment method is available 2023-08-17 13:52:02 +02:00
Zairig Imad
c891a76649
Update docs/book/orders/checkout.rst
Co-authored-by: Jacob Tobiasz <80641364+jakubtobiasz@users.noreply.github.com>
2023-08-17 12:39:55 +01:00
Grzegorz Sadowski
2ea60360c3
bug #15219 [Admin] Fix inconsistent routing (NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | -                      |
| License         | MIT                                                          |


Commits
-------

a28111c71c [Admin] Fix product attribute routing
8baa29765a [Admin] Fix payment method routing
2023-08-17 09:00:37 +02:00
Ulrich
6cd7fda7b0
Update Component/Core composer.json 2023-08-16 13:55:15 +02:00
Ulrich
49d538c51c
Update OrderBundle composer.json 2023-08-16 13:54:29 +02:00
Ulrich
fc3dae072c
Update composer.json 2023-08-16 12:19:58 +02:00
Zairig Imad
ecbdfadfd9
Update checkout.rst 2023-08-15 10:28:14 +01:00
Sylius Bot
7bf2b13170 [CS][DX] Refactor 2023-08-14 13:38:09 +02:00
Jacob Tobiasz
9556b4f9dc
bugfix #13334 [Admin] Display flag properly based on locale code on product and catalog promotion details (adpeyre)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.12
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.10 branch
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  AdminBundle - Flag review on product details
  [Admin] Display flag properly based on locale code
  [Admin] Import flags macro in catalog promotion details page for translations
2023-08-14 09:21:54 +02:00
Grzegorz Sadowski
62ad11ddb7
Change application's version to v1.12.11-dev 2023-08-11 14:32:46 +02:00
Grzegorz Sadowski
e2b0f2c1d1
Generate changelog for v1.12.10 2023-08-11 14:32:02 +02:00
Grzegorz Sadowski
337170bbc0
Change application's version to v1.12.10 2023-08-11 14:32:00 +02:00
Jan Goralski
8baa29765a
[Admin] Fix payment method routing 2023-08-11 14:01:52 +02:00
Jan Goralski
a28111c71c
[Admin] Fix product attribute routing 2023-08-11 14:01:52 +02:00
Grzegorz Sadowski
8ea7c3bb74
bug #15213 Allow installing doctrine/orm 2.15.* (jakubtobiasz)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

Commits
-------

f01bf57303 Remove the conflict for doctrine/orm 2.15.*
2023-08-11 13:17:28 +02:00
Jacob Tobiasz
f01bf57303
Remove the conflict for doctrine/orm 2.15.* 2023-08-11 12:12:01 +02:00
TheMilek
f297799825
Update upgrade file 2023-08-10 16:49:36 +02:00
TheMilek
a959f7c4fc
[Behat] Add scenario for checking if attribute is correctly added with values 2023-08-10 16:49:35 +02:00
TheMilek
fd1834479d
Use localeCode in ProductAttribute form to prevent logic from breaking when not using default locale 2023-08-10 13:52:56 +02:00
TheMilek
ec4d4d890f
Remove usage of defaultLocaleCode from SelectAttributeChoicesCollectionType 2023-08-10 13:52:56 +02:00
Grzegorz Sadowski
163953bf8e
bug #15214 Fix configuring amount for catalog promotions fixed discount actions (TheMilek)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 <!-- see the comment below -->                  |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                      |
| BC breaks?      | no                                                     |
| Deprecations?   | yes <!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | fixes [#X](https://github.com/Sylius/Sylius/issues/15193)                     |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
it is now possible to configure decimal amounts with comma without validation errors

Commits
-------

e85e30b553 Fix configuring amount for catalog promotions fixed discount actions
2023-08-10 13:37:57 +02:00
Grzegorz Sadowski
b62f6211e6
[Admin] Import flags macro in catalog promotion details page for translations 2023-08-10 13:26:01 +02:00
Grzegorz Sadowski
cf792948a8
[Admin] Display flag properly based on locale code 2023-08-10 10:13:43 +02:00
Adrien Peyre
af19de5b3b
AdminBundle - Flag review on product details 2023-08-10 09:27:39 +02:00
Grzegorz Sadowski
64c76dea41
style #15217 Fix cart styles after coupon form submission failure (shochdoerfer)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12                   |
| Bug fix?        |  yes                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets |  |
| License         | MIT                                                          |

When you are on the cart page and submit the "apply coupon" form and the form errors (e.g. coupon code not valid) then the cart styles are broken. 

This is because when viewing the cart the data-route is set to "sylius_shop_cart_summary". When the coupon code error is shown, the data-route is set to "sylius_shop_cart_save" and thus the specific styles for the "sylius_shop_cart_summary" data-route don't match, see the screenshot:

![broken styles](https://github.com/Sylius/Sylius/assets/596449/384430d8-7cf0-4b63-af3c-aa75c8d3a8a7)

This PR makes sure that all styles for the "sylius_shop_cart_summary" data-route also work for the "sylius_shop_cart_save" data-route, see:

![fixed styles](https://github.com/Sylius/Sylius/assets/596449/9fd8892c-f42e-4440-8ce6-29b905fc6cb0)





Commits
-------

eac9b3ec63 Fix cart styles after form submission
2023-08-10 07:24:53 +02:00
Stephan Hochdörfer
eac9b3ec63 Fix cart styles after form submission 2023-08-09 19:04:47 +02:00
Jacob Tobiasz
aaa5535ed0
minor #15207 [Behat] Fix minor mistake in names of scenarios for receiving discount according to promotions priorities (GSadee)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12|
| Bug fix?        | no                                                       |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------
  [Behat] Fix minor mistake in names of scenarios for receiving discount according to promotions priorities
2023-08-08 07:38:56 +02:00
Sylius Bot
ad1fc1713c [CS][DX] Refactor 2023-08-07 15:04:22 +02:00
TheMilek
e85e30b553
Fix configuring amount for catalog promotions fixed discount actions 2023-08-07 13:34:16 +02:00
Grzegorz Sadowski
cb5f39fadd
minor #15204 Resolve comments from #15195 (TheMilek)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12  <!-- see the comment below -->                  |
| Bug fix?        | no                                                     |
| New feature?    | no                                                       |
| BC breaks?      | no                                                     |
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file --> |
| License         | MIT                                                          |

<!--
 - Bug fixes must be submitted against the 1.12 branch
 - Features and deprecations must be submitted against the 1.13 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
resolves https://github.com/Sylius/Sylius/pull/15195 comments

Commits
-------

6bbe87c7ff Resolve comments from SYL-2943
2023-08-04 11:07:51 +02:00
Grzegorz Sadowski
8589e7e79b
[Behat] Fix minor mistake in names of scenarios for receiving discount according to promotions priorities 2023-08-04 10:16:08 +02:00
Jacob Tobiasz
6c69833295
minor #15205 [Maintenance] Remove depractions from OrderPaymentProcessor (NoResponseMate)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | somewhat                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | -                      |
| License         | MIT                                                          |

An oversight, deprecations shouldn't be added in a patch version.

Commits
-------
  [Maintenance] Remove depractions from OrderPaymentProcessor
2023-08-03 18:10:01 +02:00
Jacob Tobiasz
8b898c97eb
docs #15202 Update catalog_promotions.rst (zairigimad)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT



Commits
-------
  Update catalog_promotions.rst
2023-08-03 18:09:14 +02:00
Zairig Imad
1e42b7af06
Update catalog_promotions.rst 2023-08-03 18:05:12 +02:00
Jan Goralski
37a14b5594
[Maintenance] Remove depractions from OrderPaymentProcessor 2023-08-03 15:16:37 +02:00
Grzegorz Sadowski
69798e40ba
bug #12502 Recalculate order adjustments total after adjustment is added or remo… (kayue, SirDomin, TheMilek)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.9
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

In the current code (1.8 at least) adjustment total is not being updated after shipping fee is added to order. For example in the code below:

f486b804e3/src/Sylius/Component/Core/OrderProcessing/ShippingChargesProcessor.php (L51-L59)

Recalculation is designed to happen when `$adjustment->setAmount()` is called, however the Order object is only added after. (in the last line) 

Proposed fixed is to trigger `recalculateAdjustmentsTotal()` whenever adjustment is added (or removed) to order. 

Commits
-------

6b69753689 Recalculate order adjustments total after adjustment is added or removed from order.
c925c28fb7 [Improvement] move recalculation to if statement, add tests
ec95d92e4a Recalculate adjustments total on OrderItem and OrderItemUnit level
2023-08-03 15:06:31 +02:00