0

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:

<checkout_onepage_index>
    <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" />
    </reference>
</checkout_onepage_index>

I'm trying this:

<checkout_onepage_index>
    <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" />
    </reference>
</checkout_onepage_index>

1 Answer 1

1

Ok, nevermind, I got it.

Seen this: Adding custom fields to review form

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

<checkout_onepage_shippingmethod>

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

</checkout_onepage_shippingmethod>
1

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.