Results 1 to 8 of 8

Selecting a default payment method.

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 ...

      
  1. #1
    New Member
    Join Date
    Aug 2005
    Posts
    24
    Rep Power
    0


    Default Selecting a default payment method.

    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. #2
    New Member
    Join Date
    Aug 2005
    Posts
    24
    Rep Power
    0


    Default Here's the solution, had to pay for it :?

    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. #3
    Member
    Join Date
    Jul 2005
    Posts
    91
    Rep Power
    0


    Default RE: Here

    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. #4
    Member
    Join Date
    Jul 2005
    Posts
    91
    Rep Power
    0


    Default RE: Here

    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. #5
    Member
    Join Date
    Jul 2005
    Posts
    91
    Rep Power
    0


    Default Don't use this tip!

    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. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: Don

    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


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Member
    Join Date
    Jul 2005
    Posts
    91
    Rep Power
    0


    Default No mods

    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. #8
    New Member
    Join Date
    Nov 2004
    Posts
    6
    Rep Power
    0


    Default RE: No mods

    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.

Similar Threads

  1. Creating default Shipping method
    By mrmartini in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 03-30-2005, 10:04 PM
  2. Is it Possible to create a new Payment Method?
    By Milmod in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 03-20-2005, 01:12 PM
  3. payment method only in the UK?
    By Kristina in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 02-28-2005, 03:48 PM
  4. Defining a payment method for a shipping method
    By Lynoure in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 06-13-2003, 12:46 AM
  5. No Payment Method Showing On Checkout
    By MysticWonder in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 02-26-2003, 07:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •