-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix checking active carrier against store #10695
Conversation
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
@@ -106,7 +106,8 @@ public function createIfActive($carrierCode, $storeId = null) | |||
{ | |||
return $this->_scopeConfig->isSetFlag( | |||
'carriers/' . $carrierCode . '/active', | |||
\Magento\Store\Model\ScopeInterface::SCOPE_STORE | |||
\Magento\Store\Model\ScopeInterface::SCOPE_STORE, | |||
$storeId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build is failing because there is an extra space before $storeId.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Magento\Test\Php\LiveCodeTest::testCodeStylePsr2
PHP Code Sniffer has found 1 error(s):
FILE: ...ild/magento/magento2/app/code/Magento/Shipping/Model/CarrierFactory.php
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
110 | ERROR | Multi-line function call not indented correctly; expected 12
| | spaces but found 13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's been fixed in the latest commit
When creating orders in backend we must use active store code when checking for available carriers.
Description
The same bugfix was introduced in 2.2 dev branch with commit 08b5177
Manual testing scenarios
Enable shipping method in some non-standard store or website, and create a new order in the backend. The shipping option should be listed as available.
Contribution checklist