1

I'm trying to standardise my right column navigation across my category pages and my product pages.

I have all my required blocks coming through but on my product page I'm not getting the Recently viewed products block displayed.

I tried adding the following to catalog_product_view in my catalog.xml file in y custom template but it doesn't seem to work

<reference name="right">
    <block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
</reference>

Is there something wrong with my method?

2
  • check you layout files for this <remove name="right.reports.product.viewed" />. If that is present in the product view handle the block will be removed
    – Marius
    Commented Oct 23, 2013 at 13:28
  • Nope, don't have one of those anywhere Commented Oct 23, 2013 at 15:05

1 Answer 1

5

Make sure your product view page actually has a right column by setting the template of that page to either 3columns or 2columns-right from your local.xml and then add the block from there too to make sure it's not overwritten by any other XML file.

[...]
<catalog_product_view>
   <reference name="root">
      <action method="setTemplate"><template>page/3columns.phtml</template></action>
   </reference>
   <reference name="right">
      <block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
   </reference>
</catalog_product_view>
[...]
1
  • I tried that on catalog.xml which was set to left col (even though a right col was on the page) and it didn't work. Also added it to local.xml and it didn't work either. Now I'm confused to why the hell I even have a right column with the xml saying it should be left col... Commented Oct 23, 2013 at 15:13

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.