I'm trying to add a block to the shipment step without touch the shipping_method.phtml file.

On my layout file if I use content as reference I can show my file but I can't find the way to show my file inside the step.

This works:

    <reference name='content'>
        <block type="core/template" name="my_name_module_file" as="my_name_module_file" after="checkout.onepage.billing" template="module/text_shipment.phtml" />

I'm trying this:

    <reference name='checkout.onepage.shipping_method'>
        <block type="core/template" name="my_name_module_file" as="my_name_module_file" template="module/text_shipment.phtml" />

1 Answer 1


Ok, nevermind, I got it.

Seen this: Adding custom fields to review form

And checking layout/checkout.xml to check the correct reference.


        <block type="core/template" name="my_module_file" as="my_module_file" output="toHtml" template="module/text_shipment.phtml" />


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.