mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-08 01:37:36 +00:00
40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
*
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Multishipping\Controller\Checkout\Address;
|
|
|
|
class EditShipping extends \Magento\Multishipping\Controller\Checkout\Address
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function execute()
|
|
{
|
|
$this->_getState()->setActiveStep(
|
|
\Magento\Multishipping\Model\Checkout\Type\Multishipping\State::STEP_SHIPPING
|
|
);
|
|
$this->_view->loadLayout();
|
|
if ($addressForm = $this->_view->getLayout()->getBlock('customer_address_edit')) {
|
|
$addressForm->setTitle(
|
|
__('Edit Shipping Address')
|
|
)->setSuccessUrl(
|
|
$this->_url->getUrl('*/*/editShippingPost', ['id' => $this->getRequest()->getParam('id')])
|
|
)->setErrorUrl(
|
|
$this->_url->getUrl('*/*/*')
|
|
);
|
|
|
|
$this->_view->getPage()->getConfig()->getTitle()->set(
|
|
$addressForm->getTitle() . ' - ' . $this->_view->getPage()->getConfig()->getTitle()->getDefault()
|
|
);
|
|
|
|
if ($this->_getCheckout()->getCustomerDefaultShippingAddress()) {
|
|
$addressForm->setBackUrl($this->_url->getUrl('*/checkout/shipping'));
|
|
}
|
|
}
|
|
$this->_view->renderLayout();
|
|
}
|
|
}
|