Skip to content

Commit c8fd5ca

Browse files
authored
ENGCOM-5115: Replace hardcoded CarierCode from createShippingMethod() #22889
2 parents 26fcc0a + 5381827 commit c8fd5ca

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)