Page 5 of 5 FirstFirst ... 345
Results 41 to 43 of 43
  1. #41
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: checkout_shipping template problem

    I am having the same error. I will look over the code as well Ajeh and post here if I find a solution...

  2. #42
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: checkout_shipping template problem

    I'm implementing Ajeh's fix.

    I've added the following to get rid of the unwanted text as well:

    find:
    PHP Code:
    <?php
        
    } elseif ($free_shipping == false) {
    ?>
    and change to:

    PHP Code:
    <?php
        
    } elseif ($free_shipping == false && sizeof($quotes) == 1) {
    ?>

  3. #43
    Join Date
    Jan 2007
    Location
    Carlsbad, CA
    Posts
    158
    Plugin Contributions
    0

    Default Re: checkout_shipping template problem

    Quote Originally Posted by Ajeh View Post
    Number your Sort Orders by 10s or set ALL to 0s ...

    If that does not fix it, try editing the tpl_checkout_shipping_default.php and add the changes:
    PHP Code:
    <?php
        
    } else {
          
    $radio_buttons 0;
          for (
    $i=0$n=sizeof($quotes); $i<$n$i++) {
          
    // bof: field set
          
    if ($quotes[$i]['module'] != '') {
    ?>
    <fieldset>
    <legend><?php echo $quotes[$i]['module']; ?>&nbsp;<?php if (isset($quotes[$i]['icon']) && zen_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></legend>

    <?php
            
    if (isset($quotes[$i]['error'])) {
    ?>
          <div><?php echo $quotes[$i]['error']; ?></div>
    <?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 == && $n2 == 1) ) {
                  
    //echo '      <div id="defaultSelected" class="moduleRowSelected">' . "\n";
                //} else {
                  //echo '      <div class="moduleRow">' . "\n";
                
    }
    ?>
    <?php
                
    if ( ($n 1) || ($n2 1) ) {
    ?>
    <div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></div>
    <?php
                
    } else {
    ?>
    <div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . zen_draw_hidden_field('shipping'$quotes[$i]['id'] . '_' $quotes[$i]['methods'][$j]['id']); ?></div>
    <?php
                
    }
    ?>

    <?php echo zen_draw_radio_field('shipping'$quotes[$i]['id'] . '_' $quotes[$i]['methods'][$j]['id'], $checked'id="ship-'.$quotes[$i]['id'] . '-' $quotes[$i]['methods'][$j]['id'].'"'); ?>
    <label for="ship-<?php echo $quotes[$i]['id'] . '-' $quotes[$i]['methods'][$j]['id']; ?>" class="checkboxLabel" ><?php echo $quotes[$i]['methods'][$j]['title']; ?></label>
    <!--</div>-->
    <br class="clearBoth" />
    <?php
                $radio_buttons
    ++;
              }
            }
    ?>

    </fieldset>
    <?php
        
    }
    // eof: field set
          
    }
        }
    ?>

    Awesome! Works great!
    Thanks Ajeh
    -Buck

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. checkout_shipping.html > Next > checkout_shipping.html
    By Makover in forum General Questions
    Replies: 10
    Last Post: 23 Apr 2008, 12:00 AM
  2. [DONE] Checkout_shipping problem -- user error
    By topendspeed in forum Bug Reports
    Replies: 9
    Last Post: 8 Jun 2006, 05:02 AM
  3. checkout_shipping problem I think
    By TheWetFish in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 31 May 2006, 04:51 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