Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 1.45 KB

2021-11-15-re-evaluate-rules-in-order-context.md

File metadata and controls

16 lines (16 loc) · 1.45 KB
title issue
re-evaluate rules in order context
NEXT-18066

Core

  • Changed the getContext function in Shopware\Core\Checkout\Order\Listener\OrderStateChangeEventListener to rebuild the order context.
  • Changed the functions to use the restoreByCustomer function to restore the customer context in: accept and decline functions in Shopware\Core\Checkout\Customer\Api\CustomerGroupRegistrationActionController dispatchCustomerRegisterEvent and dispatchCustomerChangePaymentMethodEvent functions in Shopware\Core\Checkout\Customer\Subscriber\CustomerFlowEventsSubscriber
  • Changed the functions to use the CartRestore::restore instead SalesChannelContextRestorer::restore in: loginByCustomer function in Shopware\Core\Checkout\Customer\SalesChannel\AccountService login function in Shopware\Core\Checkout\Customer\SalesChannel\LoginRoute
  • Added the restoreByOrder function in Shopware\Core\System\SalesChannel\Context\SalesChannelContextRestorer to restore the SaleChanelContext by order id.
  • Added the restoreByCustomer function in Shopware\Core\System\SalesChannel\Context\SalesChannelContextRestorer to replace the SaleChanelContext by customer id.
  • Added the CartRestore class in Shopware\Core\System\SalesChannel\Context\CartRestore to replace the restore function in Shopware\Core\System\SalesChannel\Context\SalesChannelContextRestorer
  • Deprecated the restore function, use CartRestore::restore function instead.