I'm trying to add a custom order attribute, that the user can define on the checkout page just after the list of the payment methods and before the button continue.
I want to do things as clean as possible, so I created my own module.
Im struggling with something I thought it would be simple but I don't succeed to find a solution.
At the moment I only need to be able to display the template file in the following block .
I created my template file which is only displaying a stupid text for the test app/design/defaut/defaut/template/mymodule/custom.phtml I know that there is no problem with this file while I used it on the index action of my module
I think the main issue is that I must not do properly the xml layout declaration.
Maybe you can help me
<?xml version="1.0"?> <layout version="0.1.0"> <!-- this part is working well --> <mymodule_index_index> <reference name="content"> <block type="mymodule/mymodule" name="mymodule" template="mymodule/custom.phtml" /> </reference> </mymodule_index_index> <!-- this part is not working at all --> <checkout_onepage_index> <reference="checkout.onepage.payment" > <block type="core/template" name="mymodule" template="mymodule/custom.phtml" /> </reference> </checkout_onepage_index> </layout>
Of course my module is well declared as the index method of my module is working. is it my reference tag which is not good ?
Thanks in advance, this layout organisation gives me headache,