Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Card Payment Method Auto-Selected at Checkout


tedmcdonald

Recommended Posts

Howdy Folks

 

Is there some way to have Credit Card auto selected as the payment method at checkout?

 

As it is, when folks go to checkout, they have to select either Credit Card or Check/Money Order. If they select nothing, they get an error when they click Continue; furthermore, they lose all the information that they entered in the CC area. Very frustrating.

 

I would like it so that the Credit Card payment radio button is selected by default.

 

Any help is greatly appreciated.

 

Best Regards, Ted

Link to comment
Share on other sites

Howdy Folks

 

I am desperate to get this fixed. I am getting emails from folks who fill out the credit card information, hit continue and have to go back and select the credit card radio button and fill out the information all over again because it wasn't automatically selected.

 

Please help :cry:

Link to comment
Share on other sites

I don't know what the code is or what page but this is just a tweak to the html.

 

Notice the 'checked' parts for the radio and the checkbox and the drop down is the first option, so delete the first option (or re-arrange the order)

 

<input name="One" type="radio" value="radioOne" />

<input name="Two" type="radio" value="radioTwo" />

 <br />

<input name="Check One" type="checkbox" value="Chk1" checked="checked" />

 <input name="CheckTwo" type="checkbox" value="Chk2" />

 <br />

<select name="menu1">

<option value="Choose .....">Choose</option>

   <option>CCard</option>

   <option>Check/Money Order</option>

</select>

 <label>

---__---

Klyve

Link to comment
Share on other sites

Howdy klyve1

 

Thanks for trying to help

 

Unfortunately, I can not find the location of the code you have asked me to change. Somehow, I don't think that it is correct.

 

I believe that the it is dynamically created.

 

Surely, I am not the only one experiencing this problem. Anyone out there know the answer to this problem:

 

I need the Credit Card radio button to be selected by default when a customer checks out. Orders are being lost.

 

Best Regards, Ted

Link to comment
Share on other sites

  • 1 year later...

I found a fix that you were looking for. I had run into the same problem.

 

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.

 

Enjoy!

Scott

Knowledge Base | Contributions | Tips & Tricks Forum

 

There are things known and there are things unknown, and in between are the doors.

-- Jim Morrison

Link to comment
Share on other sites

  • 3 years later...

I would like to make this change but don't know where to insert the text. Can anyone help please? (I believe I need to make the change in checkout_payment.php but not sure where to insert the text

Link to comment
Share on other sites

Thanks,

 

For anyone looking to do this follow the link above but have a read through the thread before you start, there are a couple of good tips from different members

Link to comment
Share on other sites

  • 1 year later...

Archived

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

×
×
  • Create New...