0

I am running a magento product with own theme. Enabled related products on catalog/layouts/catalog.xml. But in my product view page it is showing twice.

I found few more posts with duplicating content twice (description, etc..) I followed all steps. But still I cant guess how does the related product tab showing twice.

I have below lines in my theme /app/design/frontend/default/MYTHEME/catalog.xml

<reference name="right">
            <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
        </reference>

there is no locale.xml as well.. But magically even when i removed above two lines related products are being loaded.

4
  • Is it 100% the same block or not?
    – seb
    Commented Mar 24, 2015 at 16:13
  • just chage the block name catalog.product.related to catalog.product.relatednew in xml
    – Amit Bera
    Commented Mar 24, 2015 at 16:33
  • @Thomas yes 100% same block. Its exact replication. If I change in the file it reflects in both the places
    – Anto S
    Commented Mar 25, 2015 at 5:20
  • @AmitBera i guess it is not taking the app/design/frontend/default/MYTHEME/layout/catalog.xml value, even if i remove the xml file its working fine. So my doubt is, since magento have different layers is there any possibility to access catalog.xml othere than my theme layout folder?
    – Anto S
    Commented Mar 25, 2015 at 5:32

1 Answer 1

1

It seems like you have another reference in another layout file somewhere. Just do find block name in your theme directory via your editor and see if anything comes up.

Have you used widgets to implement that related block?

You could try adding

<action method="unsetChildren"/>

on the right structural block in your local.xml theme file, then add your related block. This will of course get rid of anything in the right block.

3
  • You are right. When I removed the block inclusion from config.xml it disappeared from the view page. Now I confused other than this from where this block is being loaded?
    – Anto S
    Commented Mar 25, 2015 at 8:23
  • could you clarify what config.xml file you edited as that should not be a theme related file. You will need to do a search for the block name in all files and do a bit of trial and error. It could be referenced in a module somewhere
    – pip
    Commented Mar 25, 2015 at 8:59
  • sorry its catalog.xml
    – Anto S
    Commented Mar 25, 2015 at 10:19

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.