-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Priority of order processors conflicts with shipping method resolving #12554
Comments
There is a similar issue with taxes where the incorrect shipping method is selected: Steps to reproduce
Possible solutionTo fix the first I moved The steps looks like this:
|
Hi! Is there any current plans to address this? This seems to me like something that would be used commonly in e-commerce applications. Maybe the people actually doing this are using third-party plugins? |
@Leobaillard @aleho @mdevlamynck we're on it, see #13769 🚀 |
…hrusciel) This PR was merged into the 1.10 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.10 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | fixes Sylius/Sylius#12554, Sylius/Sylius#13123, related to Sylius/Sylius#13126 | License | MIT Commits ------- 2863527a9dc012b92dceb8fe6f067db59c5f4879 [Core][Shipping][Behat] Add estimated shipping cost scenarios caa04093d1ec25bce846395f0472dc5cbd1dcfab [Core][Shipping] Change order processing priorities d6dbbcdd785236c85a00416ecca5f19b9b68066a [Core][Shipping] Update UPGRADE-1.10.md 9d9f8d9b18573d361672b77dc2a93b08728be85b [Core][Shipping][Behat] Update estimated shipping cost scenarios 04ab77c3ad75d6f2879e0486d167f91e02b2a52b [Core][Configuration] Add possibilty to change priorities based on configuration 225557e9c7f2eb01934c88503ce997049a34859b [Core][Configuration] Rename flag that changes priorities in order processing 12ba23573f24c125209a69885953a207398ff4c1 [Core][Configuration] Fix SyliusCoreConfigurationTest 3333d077aca47ce0f31333c01ce6fdd9b3caa833 [Core][Configuration] Refactor test cases 9fcae9e31fa9804576aa98bc6e2de2d2497ed5e1 [Core][Configuration] Rename flag that changes priorities in order processing aac69ca011fd0dd92397f460fecdc5995634afdd [Core][Shipping] Update UPGRADE-1.10.md d790944fe36a02d356a001c9bef4e16ae6da372a [Core][Configuration] Rename flag that changes priorities in order processing
Sylius version affected: 1.9
Description
Looking at
order_processing.xml
the current priority of processors isIf shipping method rules are based on totals (e.g. shipment unit totals, order sum, etc.) shipping method resolving will not work in
50: OrderShipmentProcessor
as expected.The reason for this is that updated sums will not yet be available as all items' values are calculated in
OrderPricesRecalculator
one step afterwards.Steps to reproduce
Depending on the template this might not be observed immediately, as cart summary / overview might not include shipping costs (in our templates they do).
Possible Solution
Switch priorities of
OrderPricesRecalculator
andOrderShipmentProcessor
so that all fields are calculated before shipping method is determined.The text was updated successfully, but these errors were encountered: