0

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?

0

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>
| improve this answer | |
  • thanks, it's working. But it will show the product name only. I want to show product image with name. Can you help me for that. – Vijayakumar May 21 '16 at 10:20
  • check second screenshot, select "Viewed Products Images and Names Template" for Template dropdown. It's clearly shown there – Anil Suthar May 21 '16 at 10:25
  • But I have only two options under template 1. Viewed products grid template and 2.Viewed Products List template – Vijayakumar May 21 '16 at 10:28
  • which setting have you selected for Template dropdown ? – Anil Suthar May 21 '16 at 10:33
  • Viewed products grid template – Vijayakumar May 21 '16 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.