Skip to content
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

Run legacy promotion handler "cart" if legacy promo system present #309

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mamhoff
Copy link

@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.

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.
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