Question

I want to show recently visited product in product page left column. I am new for magento page customization. Can you guide me a right way?

Working code,

enter image description here Output:

enter image description here

Now i want to show product image also. Can you guide me for that?

Was it helpful?

Solution

Go to CMS > Widgets. Click "Add New Widget Instance" and do the following settings:

enter image description here

Click Continue

enter image description here

Click Save. Now check front-end product page.

enter image description here

NOTE: Browse two or more product first then check at product page

From you sample code, try to add this code before <p class="product-name">

<a class="product-image" href="<?php echo $_item->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->stripTags($_item->getName(), null, true) ?>" /></a>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top