Skip to content

Magento: Get Recently Viewed Products

here you go

$rcv = Mage::getSingleton(‘Mage_Reports_Block_Product_Viewed’)->getItemsCollection();

foreach ($rcv as $item)
{
$_product = Mage::getModel(‘catalog/product’)->load($item->getProductId());

var_dump($_product->getData());

}

mantap gan!!

 

Share

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.