Guest Posted December 19, 2009 Share Posted December 19, 2009 Hey, when people are checking out on my site, we are having an issue where they don't notice the radio buttons and without selecting any, an error is displayed and they are forced to reenter their credit information. I can't figure out how to set one payment option to default so that the radio button is already selected. Any help would be great. Thanks, Mike Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2009 Share Posted December 19, 2009 Mike, Set the default like this: <input type="radio" checked="checked" name="Mastercard" value="Mastercard"> the checked="checked" is needed to assign the default. Chris Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2009 Share Posted December 19, 2009 Mike, Set the default like this: <input type="radio" checked="checked" name="Mastercard" value="Mastercard"> the checked="checked" is needed to assign the default. I do not find input type="radio" anywhere except in general.php. . . Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2009 Share Posted December 19, 2009 Mike, Check the page that the radio buttons are on (checkout_payment.php) might be the one you want. OR in the html_output.php you may also find where the radio buttons are called. Since Radio buttons are not included in a standard OSC install, it is either a contribution or a template you are working with. But, one of those two files above SHOULD have it in there. Chris Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2009 Share Posted December 19, 2009 Check the page that the radio buttons are on (checkout_payment.php) might be the one you want. OR in the html_output.php you may also find where the radio buttons are called. Since Radio buttons are not included in a standard OSC install, it is either a contribution or a template you are working with. But, one of those two files above SHOULD have it in there. Chris I assumed it would have been in checkout_payment, but cannot find anything in there really. I'm not super hip on the php. Also, isn't there always radio buttons so long as you have more than one payment method available? We use GoEmerchant and PayPal. There was no issue until using paypal... I'm confused. Link to comment Share on other sites More sharing options...
Guest Posted December 19, 2009 Share Posted December 19, 2009 found it in the html_output.php file. The code looks like this: // Output a form radio field function tep_draw_radio_field($name, $value = '', $checked = true, $parameters = '') { return tep_draw_selection_field($name, 'radio', $value, $checked = true, $parameters); } only problem is it selects the second radio button rather than the first. I simply changed the sort order of the modules, and all is well. In fact, changing the sort order inadvertantly made some appealing aesthetic changes. Thanks for pointing me in the right direction chris! check it out if you feel like it: My City Apparel Inc. -Mike Link to comment Share on other sites More sharing options...
amarbhanu Posted February 11, 2010 Share Posted February 11, 2010 found it in the html_output.php file. The code looks like this: // Output a form radio field function tep_draw_radio_field($name, $value = '', $checked = true, $parameters = '') { return tep_draw_selection_field($name, 'radio', $value, $checked = true, $parameters); } only problem is it selects the second radio button rather than the first. I simply changed the sort order of the modules, and all is well. In fact, changing the sort order inadvertantly made some appealing aesthetic changes. Thanks for pointing me in the right direction chris! check it out if you feel like it: My City Apparel Inc. -Mike yes i got some problem, currently PayPal is show default radio button active and i want to change to default world pay but did change order then swap place but currently paypal have show default payment method, how to change order of place so please suggest me........ amarbhanu We don't use Signatures for external links. Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted February 11, 2010 Share Posted February 11, 2010 On your payment modules, do you have 0 as the sort order on the payment type that you want to be default? Does the module have a 'Sort Order' field in it's properties? If so, is it marked 'default' ?? Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.