Sparticus Posted February 27, 2010 Share Posted February 27, 2010 I have this code for default payment automatically selected when there's more than one payment in checkout_payment.php: <?php if (sizeof($selection) > 1) { if ($i == 0) { $checked = true; } else { $checked = false; } echo tep_draw_radio_field('payment', $selection[$i]['id'], $checked); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); }?> It works when the page checkout_confirmation.php is loaded but doesn't work with checkout.php. How do I make One Page Checkout do automatic payment selection? Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted February 27, 2010 Share Posted February 27, 2010 Have you added the code to "count" the number of payment methods as well? Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.