Recently viewed products not showing for guest users. but its working fine for loggedin users. How to show Recently viewed products for guest users? Where to customize the code?
I am displaying recently viewed product in home page and product details page.
(edit from OP):
phtml code :
if (($_products = $this->getRecentlyViewedProducts()) && $_products->getSize()): $i=0; foreach ($_products->getItems() as $_product): echo '<a href="'.$_product->getProductUrl().'" title="'. $this->htmlEscape($_product->getName()).'">'; echo '<span class="product-name">'.$_product->getName().'</span>'; echo '<span>'. Mage::helper('core')->currency($_product->getFinalPrice(),true,false).'</span>'; echo '</a>'; endforeach; endif;