Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Oct 2008
    Posts
    179
    Plugin Contributions
    0

    Default Changing Default Shipping Option to FedEx instead of flat?

    I just added the flat rate shipping mod (actually changed it so customers can choose local delivery). When I reach the choose shipping page, the option selected by default is the "flat rate" mod.

    How can I change this? I would like to change it to Fedex Ground/Home Delivery. Thanks
    www.grapediscounts.com
    Zen Version 1.3.9f, Mods: Click-Show-Hide Menu, IH3, Editable SB, Recently Viewed SB, Froogle, EZ-Pop

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    You would have to customize the shipping.php class ...

    One way to stop Flat Rate from being picked is to change:
    Code:
              if ($rates[$i]['module'] != 'storepickup') {
    to read:
    Code:
              if ($rates[$i]['module'] != 'storepickup' && $rates[$i]['module'] != 'flat') {
    You may need more customizing for a specific method of shipping with FedEx vs just the lowest shipping cost, which is how it is designed now ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    I need to do this as well. WHERE is shipping.php ????

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    shipping.php is a class so it is located in the:
    /includes/classes

    directory ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    Found it THANK YOU ... but how can we change the default shipping option to be UPS? (specifically UPS ground)

    I do not see language and am not a php expert.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    By default this is intercepted to be set to the lowest amount ...

    You would need to change that logic to be specific to the shipping module and the type used ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Feb 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    I figured, but have searched high and low and cannot seem to find language to make that happen

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    See if this change does it for you:
    Code:
          $cheapest = false;
          $size = sizeof($rates);
          for ($i=0; $i<$size; $i++) {
            // override normal cheapest and force UPS Ground
            if ($rates[$i]['id'] == 'GND') {
              $cheapest = $rates[$i];
              break;
            }
            if (is_array($cheapest)) {
              // never quote storepickup as lowest - needs to be configured in shipping module
              if ($rates[$i]['cost'] < $cheapest['cost'] and $rates[$i]['module'] != 'storepickup') {
                $cheapest = $rates[$i];
              }
            } else {
              if ($rates[$i]['module'] != 'storepickup') {
                $cheapest = $rates[$i];
              }
            }
          }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Feb 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    Thanks Linda, but sadly it did nothing at all that I can see

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Changing Default Shipping Option to FedEx instead of flat?

    Try testing by logging out and then login and see if it works ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Flat Rate shipping option doesn't show.
    By iareairwick in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 28 Mar 2014, 10:22 PM
  2. v150 FedEx Flat Rate Shipping
    By ChiliPepperWeb in forum Addon Shipping Modules
    Replies: 0
    Last Post: 31 Jul 2013, 09:17 PM
  3. Changing the default payment option
    By gdhgdh in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 30 Jun 2008, 05:49 PM
  4. Can you make Fedex your default shipping if you offer more than one type of shipping?
    By catangirl in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 1 Oct 2007, 03:20 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR