osCmax v2.5 User Manual
Results 1 to 4 of 4

Shipping Options Default Radio Button

This is a discussion on Shipping Options Default Radio Button within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I have 2 options for shipping for UK customers. A standard first class and a special delivery. The radio button ...

      
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    90
    Rep Power
    0


    Default Shipping Options Default Radio Button

    I have 2 options for shipping for UK customers. A standard first class and a special delivery. The radio button that is populated by default is the special delivery and I want it to be the other one.
    I've already had one customer (yes I'm actually selling now ) who has processed an order in error because he didn't change the default to standard shipping.
    How can I change the default so the standard rather than special delivery radio button is the default?

  2. #2
    Lurker
    Join Date
    Nov 2004
    Posts
    2
    Rep Power
    0


    Default

    Hello,

    Did you ever figure this one out.. I'm trying to do the same thing.

    Thanks,
    Mike

  3. #3
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    OSC select the least expensive method by defualt? If this is the case then you would have to alter the script which builds the form. I will have to do some homework on how this works, ill report back here my findings.

  4. #4
    Lurker
    Join Date
    Nov 2004
    Posts
    2
    Rep Power
    0


    Default

    I found out where this is done.

    /includes/classes/shipping.php
    /checkout_shipping.php

    Basically there is a function called cheapest() in the shipping classes. If nothing is selected in checkout_shipping, it calls that function to return the cheapest options and checks that one.

    So I simply created a new function called most_expensive() and added that to the shipping classes. And in checkout_shipping I call most_expensive() instead of cheapest().

    But thanks for the reply.

Similar Threads

  1. Shipping OPtions
    By toddw in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 02-13-2006, 01:27 PM
  2. radio button help
    By dogmir in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 08-24-2005, 05:46 AM
  3. check out radio button help
    By dogmir in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 08-19-2005, 11:44 AM
  4. Radio button madness
    By dcc in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 09-06-2004, 03:04 PM
  5. Shipping Options/Individual Shipping
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-01-2004, 01:10 PM

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
  •