Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Setting a default payment option


Recommended Posts

I have two payment methods available in my store. The first is Credit Card (authorize.net) the second is check/money order. Is there a way that I can make the radio button automatically selected for the Credit Card option? As it is now, there is no default selection and sometimes my customers fill out the C/C info and forget to select the radio button which causes an error (of course).


So, all I want to do is make the Credit Card option the default payment option (automatically selected).


Thank you for your time.

Link to comment
Share on other sites

Yes, please! I have this same issue. I am sure it must be common and an easy fix. Can someone please give us a clue? Which page to change and what to do. I have found where I can make all radio buttons default to 'True" checked - but that makes my last payment option - which is Paypal - selected. I do want Credit Card by Authorize.net to be selected by default.


Thanks - with hope!

Link to comment
Share on other sites

Thanks enigma. There were a couple of different suggestions in the thread that you pointed us to. The on that I found to work was as follows:


Change the following line in checkout_payment.php:

echo tep_draw_radio_field('payment', $selection[$i]['id']);

change to:

echo tep_draw_radio_field('payment', $selection[$i]['id'], $i==0);


Thanks for your assistance!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...