I need help to create a radio box during the checkout. I have no idea how to have the result of the radio box send along with my other information in the checkout page such as billing address and many more.
this is what i do ,
<input type="radio" name="shipping_address" value="existing" id="shipping-address-existing" checked="checked" class="radio inline" />
<b><?php echo $text_delivery2; ?></b>
<input type="radio" name="shipping_address" value="existing" id="shipping-address-existing" checked="checked" class="radio inline" />
<b><?php echo $text_delivery3; ?></b>
</label>
but there is nothing shown. thanks
First be specic on question because the checkout page contains list of conditions along with various section (login,register,payment address, payment method, shipping address, shipping method, quick confirm etc)
There are list of action and their regarding template, So you need to change in the regarding file, Suppose you are adding radio button on billing address
Find regarding template file and add radio
Now in checkout page you can see your radio buttons, It uses the ajax method to parse data to function
you can see a ajax function function
Here the url repreesnts the controller function
Here you can fetch your radio value
$_POST['shipping_address']
because in ajax we have definedtype: 'post'
Hope this helps