diff --git a/src/Sylius/Bundle/CoreBundle/Controller/CheckoutController.php b/src/Sylius/Bundle/CoreBundle/Controller/CheckoutController.php index 70095371e48..284d5197bb1 100644 --- a/src/Sylius/Bundle/CoreBundle/Controller/CheckoutController.php +++ b/src/Sylius/Bundle/CoreBundle/Controller/CheckoutController.php @@ -12,6 +12,7 @@ namespace Sylius\Bundle\CoreBundle\Controller; use FOS\RestBundle\Controller\FOSRestController; +use Sylius\Component\Cart\SyliusCartEvents; use Sylius\Component\Core\Model\OrderInterface; use Sylius\Component\Core\OrderCheckoutTransitions; use Sylius\Component\Core\SyliusCheckoutEvents; @@ -72,6 +73,9 @@ public function addressingAction(Request $request, OrderInterface $order) return new Response('Method not allowed!', 405); } + // make sure sylius.cart_change was called + $this->dispatchCheckoutEvent(SyliusCartEvents::CART_CHANGE, $order); + $this->dispatchCheckoutEvent(SyliusCheckoutEvents::ADDRESSING_INITIALIZE, $order); $form = $this->createCheckoutAddressingForm($order);