Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing default shipping option


211655

Recommended Posts

hi,

i have 4 diff shipping types. when i go to checkout_shipping page it selects the one i dont want. (i mean checked)

 

this is the code:

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

         if ( ($quotes1[$i]['id'] . '_' . $quotes1[$i]['methods'][$j]['id'] == $giftwrap_info['id']) || (tep_count_giftwrap_modules() == (int)1) ) {
           echo '                  <tr>' . "\n";
         } else {
           echo '                  <tr>' . "\n";
         }
?>
                 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                 <td class="main" width="75%"><?php echo $quotes1[$i]['methods'][$j]['title']; ?></td>

 

I need to have the number 1 (in sort order) to be checked which is individual shipping module.

 

 

what to do.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...