Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Set shipping method to Default?

Set shipping method to Default?

Locked

Views: 2,160

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
11 Apr 2009, 10:23 PM
#1
chariotz avatar

chariotz

New Zenner

Join Date:
Apr 2009
Posts:
23
Plugin Contributions:
0

Set shipping method to Default?

Hi guys,

I have a question i have 3 kinds of shipping methods.

I've set the sort order on Flat rate 2 and Free shipping on 1.
But when i order a product and when it goes to Step 1 Shipping method it automaticly choses Flat Rate instead of Freeshipping on 1.

Is there any way i can change Free shipping on default?

Greets,

Chariot

12 Apr 2009, 7:02 PM
#2
chariotz avatar

chariotz

New Zenner

Join Date:
Apr 2009
Posts:
23
Plugin Contributions:
0

Re: Set shipping method to Default?

Hm i have found this in the template

<?php
        } else {
          for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
// set the radio button to be checked if it is the method chosen
            $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']) ? true : false);

            if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
              //echo '      <div id="defaultSelected" class="moduleRowSelected">' . "\n";
            //} else {
              //echo '      <div class="moduleRow">' . "\n";
            }
?>

But dunno if it's the right code to change another shipping method to default.

Cause the Radiobutton goes automaticly to Flat Rate instead of Free shipping while Flate Rate is positioned second and Free Shipping on 1.

Anyone know the answer? =D

5 Dec 2009, 2:25 AM
#3
solidrock avatar

solidrock

New Zenner

Join Date:
Nov 2009
Location:
Aurora, IN
Posts:
37
Plugin Contributions:
0

Re: Set shipping method to Default?

I would also like to know how to set a certain shipping option as the default. Can anyone out there help us?