I'm using default magento 1.9.x Recently Viewed Products block on a CMS page
{{block type="reports/product_viewed" template="reports/product_viewed.phtml"}}
But default magento Recently Viewed Products block only support for logged in users, so it only show when i logged in
I checked the file
/public_html/app/code/core/Mage/Reports/Block/Product/Abstract.php
and It's line number 138 function set a customer id for product collection for filter the results.
But i think normal site visitors not have that kind of id.
if ($this->getCustomerId()) {
$this->_collection->setCustomerId($this->getCustomerId());
}
Anyone know how to get recently viewed products by setting an id to above or by using another way.
i also tried this answer but it didn't work at all