Skip to content

Conversation

@mamhoff
Copy link
Collaborator

@mamhoff mamhoff commented Dec 20, 2024

In the legacy promotion system, there's a separation of tasks between order.recalculate and PromotionHandler::Cart. order.recalculate will only recalculate already existing promotion adjustments, but will not check for any new promotions that might need to be applied. In the new promotion system, both of these tasks are handled by order.recalculate.

If the legacy promotion system is present, but not active, calling this promotion handler will result in a single database call, which is an acceptable price to pay I think.

@mamhoff mamhoff force-pushed the fix-legacy-promotion-handling branch from 57a1ba9 to 0f2fcd8 Compare January 13, 2025 11:29
In the legacy promotion system, there's a separation of tasks between
`order.recalculate` and `PromotionHandler::Cart`. `order.recalculate`
will only recalculate already existing promotion adjustments, but will
not check for any new promotions that might need to be applied. In the
new promotion system, both of these tasks are handled by
`order.recalculate`.

If the legacy promotion system is present, but not active, calling this
promotion handler will result in a single database call, which is an
acceptable price to pay I think.
@mamhoff mamhoff force-pushed the fix-legacy-promotion-handling branch from 0f2fcd8 to 61c77ca Compare February 13, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant