New answers tagged

0

This endpoint did what I wanted https://devdocs.magento.com/swagger/#/salesShipmentTrackRepositoryV1/salesShipmentTrackRepositoryV1SavePost


1

After set the shipping address in quote use below code to set shipping method programatically $shippingAddress = $quote->getShippingAddress(); $shippingAddress->setCollectShippingRates(true) ->collectShippingRates() ->setShippingMethod('shippingMethod') //shipping method ->setShippingDescription('shipping method ...


1

The position where you add the html text is a modal footer position. You can not add text here as simple. Because this is create by modal widget. You can easily add html text above this position and under the 'Save in address book' checkbox by this below process. Overwrite the file /vendor/magento/module-checkout/view/frontend/web/template/shipping-address/...


0

I delete the quotation on quote table related to the customer, and than relogin, so it works fine.


0

Try below code // Load the order increment ID $order = $this->_objectManager->create('Magento\Sales\Model\Order')->loadByIncrementID('000000001'); //load by order $order = $this->_objectManager->create('Magento\Sales\Model\Order')->load('1'); // Check if order can be shipped or has already shipped if (! $order->canShip()) { throw ...


0

Create a helper function for that like this public function isB2bRfqFormEnable() { return $this->scopeConfig->getValue('requestforquote/general/enable-rfq-form', ScopeInterface::SCOPE_STORE); } this your requestforquote/general/enable-rfq-form sectionid/groupid/fieldid Now Just Inject this helper where ever you want like this public ...


1

Try the following way: if($request->getPackageWeight() > $this->getConfigData('max_weight')) { return false; }


0

If you want to check if the order is completely shipped, the following function could help: /** * @param Mage_Sales_Model_Order $order * @return boolean */ protected function isOrderCompletelyShipped(Mage_Sales_Model_Order $order) { foreach ($order->getAllItems() as $item) { if ($item->getParentItemId()) { continue; } ...


0

try to following way.. rm -rf vendor/* <br> composer update


0

You can get the current customer group inside the collectRates to get the current customer id. $quote = null; foreach ($request->getAllItems() as $item) { $quote = $item->getQuote(); break; } $customerGroupId = $quote ? $quote->getCustomerGroupId() ? 0; Let's say you have a list of customer groups for which this is allowed. You can get it ...


Top 50 recent answers are included