I want to add a radio button group on the Billing & Payment section on the One Page Checkout page.
I have tried to use the existing code as a template as to how to accomplish this but wondering if there is something missing that I should be doing / coding.
Before I go as far as posting long lines of code I wonder if someone could advise me?
I want the group above the "Enter Credit Card" title.
I know it's very easy to add this directly in to the template for credit cards but I want to add my own section to keep the planned associated functionality separate. This is NOT a new step it's just options in their own section.
So far I have created:
a) a div to checkout_billingPayment just above the creditCards div
b) a template with a div that calls a macro. (<div class="form">${mymacrofunction()}</div>
c) a macro file with the appropriate div / radio buttons on it.
d) updated sites.js with a template reference (such as mytemplateTmpl: BDK.tmpl("checkout_tmpl_mytemplate","co_myrdos")) and a render function with no parameters to populate the div on the template.mynewdiv: function(){_templates.mytemplateTmpl.render();}
The div appears on the page that was added to checkout_billingPayment but it's not populated with the template detail (aka the radio buttons!)
There does not seem to be an example / tutorial around to follow that addresses what I'm trying to do so any help would be very much appreciated.
Thanks,
Neil