Skip to content

Commit 5381827

Browse files
ENGCOM-5115: Replace hardcoded CarierCode from createShippingMethod() #22889
- Merge Pull Request #22889 from wigman/magento2:wigman-extendable-tablerates - Merged commits: 1. 405694d
2 parents 41042e7 + 405694d commit 5381827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/OfflineShipping/Model/Carrier/Tablerate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ private function createShippingMethod($shippingPrice, $cost)
278278
/** @var \Magento\Quote\Model\Quote\Address\RateResult\Method $method */
279279
$method = $this->_resultMethodFactory->create();
280280

281-
$method->setCarrier('tablerate');
281+
$method->setCarrier($this->getCarrierCode());
282282
$method->setCarrierTitle($this->getConfigData('title'));
283283

284284
$method->setMethod('bestway');

0 commit comments

Comments
 (0)