Skip to content

Commit 2e651cd

Browse files
authored
ENGCOM-5232: [Backport] Replace hardcoded CarierCode from createShippingMethod() #23163
2 parents ba3e643 + 86ef6f1 commit 2e651cd

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
@@ -267,7 +267,7 @@ private function createShippingMethod($shippingPrice, $cost)
267267
/** @var \Magento\Quote\Model\Quote\Address\RateResult\Method $method */
268268
$method = $this->_resultMethodFactory->create();
269269

270-
$method->setCarrier('tablerate');
270+
$method->setCarrier($this->getCarrierCode());
271271
$method->setCarrierTitle($this->getConfigData('title'));
272272

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

0 commit comments

Comments
 (0)