horsetags Posted November 11, 2005 Share Posted November 11, 2005 Hi In checkout payment i would like the credit card radio to be selected. The code is - if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id']); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } what do i put in this code so that the radio is already selected? The other option is a cheque, rarely used, so i would like the cc radio to be selected Thanks in advance Paul Link to comment Share on other sites More sharing options...
ronb Posted November 16, 2005 Share Posted November 16, 2005 this would be helpful to me as well anyone ??? Link to comment Share on other sites More sharing options...
mi_jaiten Posted November 16, 2005 Share Posted November 16, 2005 HiIn checkout payment i would like the credit card radio to be selected. The code is - if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id']); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } what do i put in this code so that the radio is already selected? The other option is a cheque, rarely used, so i would like the cc radio to be selected Thanks in advance Paul Hi Paul, Check this out http://www.oscommerce.com/community/contri...ard+radio+to+be Kind Regards, Michelle. Link to comment Share on other sites More sharing options...
horsetags Posted November 16, 2005 Author Share Posted November 16, 2005 [Hi Michelle, Thanks, but i already have that :-) It still allows the person to put in their detail without setting the radio button and then wondering what's wrong when they get no cc error. If i can preselect the radio then they get any error messages where the cc is concerned. I am losing people in the cart and it could well be a factor. Kind Regards Paul Link to comment Share on other sites More sharing options...
mi_jaiten Posted November 16, 2005 Share Posted November 16, 2005 [Hi Michelle, Thanks, but i already have that :-) It still allows the person to put in their detail without setting the radio button and then wondering what's wrong when they get no cc error. If i can preselect the radio then they get any error messages where the cc is concerned. I am losing people in the cart and it could well be a factor. Kind Regards Paul Hi again Paul, Try this fix In your BODY tag, add this to it: onload="selectRowEffect(this, 0)" You can change the 0 to whatever number you want to be the active selection on page load. Good luck Michelle. Link to comment Share on other sites More sharing options...
ronb Posted November 17, 2005 Share Posted November 17, 2005 Hi again Paul, Try this fix Good luck Michelle. <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="selectRowEffect(this, 0)"> took me ages to figure it out !!!! Link to comment Share on other sites More sharing options...
horsetags Posted November 23, 2005 Author Share Posted November 23, 2005 <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="selectRowEffect(this, 0)"> took me ages to figure it out !!!! Hello Michelle, I've pm'd you with a quick explain, but thanks a million for sorting it out. If anyone has STS template you need to put this code in the templare body tag Thanks Paul Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.