Jump to content

up2late

♥Ambassador
  • Content count

    3
  • Joined

  • Last visited

Profile Information

  1. up2late

    Setting a default payment option?

    t, Attached is my quick way to do this - it is not the best way because it is hard coded, but it works for me today. I may regret it tomorrow, when I can't find the modded code. in checkout_payment.php find <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id']); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> for payflowpro, replace with <?php if (sizeof($selection) > 1) { if ($selection[$i]['id'] == "payflowpro") { echo tep_draw_radio_field('payment', $selection[$i]['id'], CHECKED); } else { echo tep_draw_radio_field('payment', $selection[$i]['id']); } } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> replace the "payflowpro" with the id of your desired default payment. I think Authorize.net is "authorizenet" but I'm not sure. Hope this helps, I'm not a pro coder, just a php hacker. Glenn
×