<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Multishipping\Controller\Checkout;
class RemoveItem extends \Magento\Multishipping\Controller\Checkout
{
/**
* Multishipping checkout remove item action
*
* @return void
*/
public function execute()
{
$itemId = $this->getRequest()->getParam('id');
$addressId = $this->getRequest()->getParam('address');
if ($addressId && $itemId) {
$this->_getCheckout()->setCollectRatesFlag(true);
$this->_getCheckout()->removeAddressItem($addressId, $itemId);
}
$this->_redirect('*/*/addresses');
}
}
-
Ketan authoredf012f907