Magento: custom module layout override not working

Posted by Socrates on Stack Overflow See other posts from Stack Overflow or by Socrates
Published on 2012-06-06T01:22:14Z Indexed on 2012/06/06 4:40 UTC
Read the original article Hit count: 184

Filed under:
|
|
|
|

I have a small custom module which is supposed to show on all product pages, but it doesn't. It only shows when setting its reference to "content", but I want it to display witin the already existing product view divs, thus, display it within the "product.info" reference.

Here's my code:

app/design/frontend/default/company/layout/company/socialbuttons.xml

<?xml version="1.0"?>
<layout>
  <catalog_product_view>
    <reference name="product.info">
     <block type="core/template" name="company_socialbuttons" template="company/socialbuttons.phtml" />
</reference>
  </catalog_product_view>
</layout>

I've spent hours finding the error, without success and if I can't find a solution soon I will do it the ugly way (calling the phtml inside the parent phtml). What am I doing wrong?

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml