I having problem in getting the thumbnail image url for the items on the Magento Cart
Here is my code:
$quote = Mage::getSingleton('checkout/session')->getQuote();
$cartItems = $quote->getAllVisibleItems();
foreach ($cartItems as $item) {
echo $item->getThumbnail();
}
Does anyone know that why does it returns always blank.
Mage::helper('catalog/image')->init($item->getProduct(), 'thumbnail');
Will do the trick
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With