[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

Zencart v1.5.5f
Does anyone knows how to change the radio button for the store pickup location to a drop down menu???
i have many locations. it's definitely better to have the drop down menu.


i think i should edit the below code in the file tpl_checkout_shipping_default
but not sure how to make it work.
could someone give me a direction.

PHP Code:
                  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";
                    }
        ?>
        <?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_pull_down_menu('shipping'$quotes[$i]['id'] . '_' $quotes[$i]['methods'][$j]['id'], $default'id="ship-'.$quotes[$i]['id'] . '-' str_replace(' ''-'$quotes[$i]['methods'][$j]['id']), $checked .'"'); ?>
        
        <label for="ship-<?php echo $quotes[$i]['id'] . '-' str_replace(' ''-'$quotes[$i]['methods'][$j]['id']); ?>" class="checkboxLabel" ><?php echo $quotes[$i]['methods'][$j]['title']; ?></label>
        <!--</div>-->
        <hr class="clearBoth" />
        <?php
                    $radio_buttons
++;
                  }
                }
        
?>

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