mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
34 lines
870 B
PHP
34 lines
870 B
PHP
<?php
|
|
/**
|
|
*
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Multishipping\Controller\Checkout;
|
|
|
|
use Magento\Multishipping\Model\Checkout\Type\Multishipping\State;
|
|
use Magento\Framework\App\ResponseInterface;
|
|
|
|
class Shipping extends \Magento\Multishipping\Controller\Checkout
|
|
{
|
|
/**
|
|
* Multishipping checkout shipping information page
|
|
*
|
|
* @return ResponseInterface|void
|
|
*/
|
|
public function execute()
|
|
{
|
|
if (!$this->_validateMinimumAmount()) {
|
|
return;
|
|
}
|
|
|
|
if (!$this->_getState()->getCompleteStep(State::STEP_SELECT_ADDRESSES)) {
|
|
return $this->_redirect('*/*/addresses');
|
|
}
|
|
|
|
$this->_getState()->setActiveStep(State::STEP_SHIPPING);
|
|
$this->_view->loadLayout();
|
|
$this->_view->renderLayout();
|
|
}
|
|
}
|