This is a discussion on Selecting a default payment method. within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Is there a way to select a default payment method so the readio button is "pre-selected" when a customer gets ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Is there a way to select a default payment method so the readio button is "pre-selected" when a customer gets to the payment screen? We want to check the credit card payment button so the customer can avoid overlooking it (most pay by ccd) so they will have to select check/money order if needed. Any suggestions? I searched here and osc forums - no luck....
__________________ Jay If you don\'t make mistakes, you\'re not working on hard enough problems. And that\'s a big mistake. ~F. Wikzek |
|
#2
| |||
| |||
| Here is a simpler solution to the problem that should work for you (in any template): Add the following to the body tag of your template right after the word body but within the tag: onload="selectRowEffect(this, 0)" That will change the selection to the first radio button automatically.
__________________ Jay If you don\'t make mistakes, you\'re not working on hard enough problems. And that\'s a big mistake. ~F. Wikzek |
|
#3
| |||
| |||
| I added this line immediatedly after the <body> tag in my main_page.tpl.php, i.e. <body> onload="selectRowEffect(this, 0)" but didn't get the intended effect when I opened my checkout_payment.php Can you give more precise instructions? Thanks, Ken |
|
#4
| |||
| |||
| Duh, I am sitting in the corner under the pointy hat. INSIDE the tag, i.e. <body onload="selectRowEffect(this, 0)"> Works like a champ. Thanks for the tip. Ken |
|
#5
| |||
| |||
| Today, I noticed that no products were showing up in my Categories box. That's a bad deal to have the minor default payment issue fixed. We need a new fix for the default payment issue. K |
|
#6
| ||||
| ||||
| I cannot reproduce your issue with the categories box. All categories display properly. Perhaps you can provide more detail. What osCMax categories box type are you using, Default, Coolmenu or DHTML? Have you made any mods to the categories box?
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| The standard box from the OsC template, I believe. No mods of any kind. It looks like all my files say 8/24/05. http://foodnsport.com/aabox8/catalog/ I put that mod inside the body tag of mainpagetpl as suggested, and my categories box showed up empty. Freaked me out. Tried to reload the page several times. That was Firefox and IE. No luck. I restored my mainpagetplorig file, and my categories came back. That's what I saw, and all I can report...just a user, after all. It seems fundamentally wrong - modifying a mainpagetpl type file to fix a problem on a specific page that uses that template. Hopefully, there's a more localized solution. Thanks, Ken |
|
#8
| |||
| |||
| I tried to apply the fix and it broke my categories box on any product page as well. I had to remove the "fix" and will look into it further when I get more time. I think the problem is the javascript referenced by the onload call is not loaded in all cases. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating default Shipping method | mrmartini | osCMax v1.7 Discussion | 0 | 03-30-2005 10:04 PM |
| Is it Possible to create a new Payment Method? | Milmod | osCommerce 2.2 Modification Help | 3 | 03-20-2005 01:12 PM |
| payment method only in the UK? | Kristina | osCommerce 2.2 Modification Help | 3 | 02-28-2005 03:48 PM |
| Defining a payment method for a shipping method | Lynoure | osCommerce 2.2 Installation Help | 0 | 06-12-2003 11:46 PM |
| No Payment Method Showing On Checkout | MysticWonder | osCommerce 2.2 Modification Help | 3 | 02-26-2003 07:29 AM |