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.

1 Answer 1

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"}}
1
  • That works! But do you know how to exclude items currently in the basket from the block?
    – user280492
    Jun 11, 2018 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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