Skip to main content
2 of 2
edited title
PЯINCƎ
  • 11.7k
  • 3
  • 25
  • 82

Template doesn't load on custom theme

I have a problem with loading a new template on payment methods section on checkout, but only on my custom theme. I have created a custom module that adds a new block with template in the above section.

My layout.xml is:

<layout version="0.1.0">
    <checkout_onepage_index>
        <reference name="checkout.onepage.payment">
            <block type="core/text_list" name="checkout.payment.methods.additional" as="methods_additional">
                <block type="core/template" name="cardcadou" template="cardcadou/cardcadou.phtml"/>
            </block>
        </reference>
    </checkout_onepage_index>
</layout>

The problem is that I tested on rwd theme and the template is displayed correctly, but on my custom theme it is not displayed at all.

I've checked if the layout.xml is called by adding this code under the <checkout_onepage_index>:

<reference name="head">
    <action method="addJs">
        <script>test/test.js</script>
    </action>
</reference>

And I looked in my page source and the js file is loaded, so the layout.xml is called.

What am I doing wrong here?

Ciprian
  • 527
  • 2
  • 17