diff --git a/Plugin/Api/CartGet.php b/Plugin/Api/CartGet.php index 87b6a1a..d7febee 100644 --- a/Plugin/Api/CartGet.php +++ b/Plugin/Api/CartGet.php @@ -91,7 +91,8 @@ public function setTokenToExtensionAttributes(CartInterface $cart) } try { - $mpShareCartToken = $this->quoteFactory->create()->load($cart->getId())->getMpShareCartToken(); + $mpShareCartToken = $cart->getMpShareCartToken() + ?: $this->quoteFactory->create()->load($cart->getId())->getMpShareCartToken(); } catch (Exception $e) { return $cart; }