0

Is it possible to show recently viewed products in the basket?

i.e. a customer views product a, product b and product c.

They add product b to their basket.

When they view their basket I would like to show product a and product c underneath their basket.

0

You can try add in code below in your basket layout page.

<?php echo $this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/product_viewed.phtml')->toHtml(); ?>

For CMS use code below

{{block type="reports/product_viewed" template="reports/product_viewed.phtml"}}
| improve this answer | |
  • That works! But do you know how to exclude items currently in the basket from the block? – user280492 Jun 11 '18 at 14:21

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.