Skip to main content
added 1 character in body
Source Link
Siarhey Uchukhlebau
  • 16.2k
  • 11
  • 55
  • 88

I am trying to get the details of a product whose quote has been inactive. I am getting the following error when i use the this code.

$cartItem = $this->quoteItem->load($itemId);
return $cartItem->getProduct();

Uncaught Error: Call to a member function getStoreId() on null in /var/www/vhosts/avesh/vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php:146

Uncaught Error: Call to a member function getStoreId() on null in /var/www/vhosts/avesh/vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php:146

I am trying to get the details of a product whose quote has been inactive. I am getting the following error when i use the this code.

$cartItem = $this->quoteItem->load($itemId);
return $cartItem->getProduct();

Uncaught Error: Call to a member function getStoreId() on null in /var/www/vhosts/avesh/vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php:146

I am trying to get the details of a product whose quote has been inactive. I am getting the following error when i use the this code.

$cartItem = $this->quoteItem->load($itemId);
return $cartItem->getProduct();

Uncaught Error: Call to a member function getStoreId() on null in /var/www/vhosts/avesh/vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php:146

Source Link
Avesh Naik
  • 1.3k
  • 12
  • 39

Load product details of inactive quote

I am trying to get the details of a product whose quote has been inactive. I am getting the following error when i use the this code.

$cartItem = $this->quoteItem->load($itemId);
return $cartItem->getProduct();

Uncaught Error: Call to a member function getStoreId() on null in /var/www/vhosts/avesh/vendor/magento/module-quote/Model/Quote/Item/AbstractItem.php:146