EditBilling.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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\Address;
  8. class EditBilling extends \Magento\Multishipping\Controller\Checkout\Address
  9. {
  10. /**
  11. * @return void
  12. */
  13. public function execute()
  14. {
  15. $this->_getState()->setActiveStep(
  16. \Magento\Multishipping\Model\Checkout\Type\Multishipping\State::STEP_BILLING
  17. );
  18. $this->_view->loadLayout();
  19. if ($addressForm = $this->_view->getLayout()->getBlock('customer_address_edit')) {
  20. $id = $this->getRequest()->getParam('id');
  21. $addressForm->setTitle(
  22. __('Edit Billing Address')
  23. )->setSuccessUrl(
  24. $this->_url->getUrl('*/*/saveBilling', ['id' => $id])
  25. )->setErrorUrl(
  26. $this->_url->getUrl('*/*/*', ['id' => $id])
  27. )->setBackUrl(
  28. $this->_url->getUrl('*/checkout/overview')
  29. );
  30. $this->_view->getPage()->getConfig()->getTitle()->set(
  31. $addressForm->getTitle() . ' - ' . $this->_view->getPage()->getConfig()->getTitle()->getDefault()
  32. );
  33. }
  34. $this->_view->renderLayout();
  35. }
  36. }