Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adamzero1/1ddffb34f5ff3ecd7e24a2d2c8c274d1 to your computer and use it in GitHub Desktop.
Save adamzero1/1ddffb34f5ff3ecd7e24a2d2c8c274d1 to your computer and use it in GitHub Desktop.
Wrong Store Id when creating order in admin, with single store.
--- Model/Session/Quote.php 2020-08-04 13:55:36.438626071 +0000
+++ Model/Session/Quote.php 2020-08-04 13:56:16.990487672 +0000
@@ -134,7 +134,7 @@
$cookieMetadataFactory,
$appState
);
- if ($this->_storeManager->hasSingleStore()) {
+ if ($this->_storeManager->isSingleStoreMode()) {
$this->setStoreId($this->_storeManager->getStore(true)->getId());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment