Shipping.php 870 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Multishipping\Controller\Checkout;
  8. use Magento\Multishipping\Model\Checkout\Type\Multishipping\State;
  9. use Magento\Framework\App\ResponseInterface;
  10. class Shipping extends \Magento\Multishipping\Controller\Checkout
  11. {
  12. /**
  13. * Multishipping checkout shipping information page
  14. *
  15. * @return ResponseInterface|void
  16. */
  17. public function execute()
  18. {
  19. if (!$this->_validateMinimumAmount()) {
  20. return;
  21. }
  22. if (!$this->_getState()->getCompleteStep(State::STEP_SELECT_ADDRESSES)) {
  23. return $this->_redirect('*/*/addresses');
  24. }
  25. $this->_getState()->setActiveStep(State::STEP_SHIPPING);
  26. $this->_view->loadLayout();
  27. $this->_view->renderLayout();
  28. }
  29. }