thewitt Posted September 9, 2004 Share Posted September 9, 2004 Is there any way to set one of the payment options to automatically be selected when you go to the payment screen. Specifically I would like the Authorize.net option to be the default and be selected unless they pick something else. I have a fairly high number of customers who actually enter their credit card infomation and don't check the button and so we don't get their credit card info and have to contact them for payment information. Very frustrating. Options? Thanks, -t Quote Link to comment Share on other sites More sharing options...
thewitt Posted September 22, 2004 Author Share Posted September 22, 2004 So I take it there is no way to set a default payment option - either that or no one else has the problem with people getting an option they didn't want... -t Quote Link to comment Share on other sites More sharing options...
Guest Posted September 22, 2004 Share Posted September 22, 2004 Hi Tim, I haven't heard of a default payment but you can rank the payment option the way you want. So the most important it number 1 and the least important is last. Than you can also of course control it by saying that people from certain areas need to use that payment method otherwise they can't buy with you. I hope this is an idea for you. You can change it as always in admin -> modules -> payment and edit the payment module you want to 'rank' Regards Richard B) Quote Link to comment Share on other sites More sharing options...
up2late Posted October 4, 2004 Share Posted October 4, 2004 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 Quote Do you want osCommerce to make money for you? Keep the project alive by offering your financial support. osCommerce Support the Project Link to comment Share on other sites More sharing options...
thewitt Posted October 4, 2004 Author Share Posted October 4, 2004 Thanks Glenn, I'll play around with this and see what I can break. -t Quote Link to comment Share on other sites More sharing options...
gazb Posted October 29, 2004 Share Posted October 29, 2004 I was looking for this as well, but found a better method: http://www.oscommerce.com/forums/index.php?showtopic=42029&hl= This isn't hardcoded and it highlights the default payment method as well! :) Gaz Quote 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.