Skip to content

Commit 657b652

Browse files
authored
Merge pull request #28 from edvardsSW/fix-save-event-error
Add check for storeId in SalesEventHandler
2 parents 69fbdec + 8baf992 commit 657b652

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Helper/SalesEventHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public function __construct(
5959
public function store(Order $order): bool
6060
{
6161
$storeId = $order->getStoreId();
62+
if (!$storeId) {
63+
$storeId = $this->storeManager->getStore()->getId();
64+
}
6265

6366
if (!$this->isEnabledForStore($storeId)) {
6467
return false;

0 commit comments

Comments
 (0)