Skip to content

Commit

Permalink
Fix load and validate.
Browse files Browse the repository at this point in the history
  • Loading branch information
MykolaMalovanets committed Oct 30, 2023
1 parent 808faf4 commit 70a41d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Quote/LoadAndValidate.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function load(string $shopId, int $cartId): CartInterface
$this->storeManager->getStore()->setCurrentCurrencyCode($quote->getQuoteCurrencyCode());
$this->checkoutSession->replaceQuote($quote);
$this->cart->setQuote($quote);
$this->shopIdValidator->validate($shopId, $quote->getStoreId());
$this->shopIdValidator->validate($shopId, (int)$quote->getStoreId());
$quote->setItems($quote->getAllVisibleItems());
$shippingAssignments = [];
if (!$quote->isVirtual() && $quote->getItemsQty() > 0) {
Expand Down

0 comments on commit 70a41d2

Please sign in to comment.