Skip to content

Commit a67e392

Browse files
authored
Fix checking active carrier against store
When creating orders in backend we must use active store code when checking for available carriers. This fix was introduced in 2.2 dev branch with commit 08b5177
1 parent ebb08a0 commit a67e392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Shipping/Model/CarrierFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public function createIfActive($carrierCode, $storeId = null)
106106
{
107107
return $this->_scopeConfig->isSetFlag(
108108
'carriers/' . $carrierCode . '/active',
109-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
109+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
110+
$storeId
110111
) ? $this->create(
111112
$carrierCode,
112113
$storeId

0 commit comments

Comments
 (0)