</td> 
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
<?php 
if (smn_count_shipping_modules() > 0) {
    ?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php 
    echo TABLE_HEADING_SHIPPING_METHOD;
    ?>
</b></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                                    }
                                }
                                $shipping_cost_store = $quotes_store[$k1][$store_list[$k]]['methods'][$k2]['cost'];
                                $shipping_store[$store_list[$k]] = array('id' => $_POST['shipping'], 'title' => $free_shipping == true ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')', 'cost' => $shipping_cost_store);
                            }
                        }
                        smn_redirect(smn_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'NONSSL'));
                    }
                }
            } else {
                smn_session_unregister('shipping');
                /*Unregister the session shipping_store,By Cimi*/
                smn_session_unregister('shipping_store');
            }
        }
    } else {
        $shipping = false;
        smn_redirect(smn_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'NONSSL'));
    }
}
// get all available shipping quotes
$quotes = $shipping_modules->quote();
// if no shipping method has been selected, automatically select the cheapest method.
// if the modules status was changed when none were available, to save on implementing
// a javascript force-selection method, also automatically select the cheapest shipping
// method if more than one module is now enabled
if (!smn_session_is_registered('shipping') || smn_session_is_registered('shipping') && $shipping == false && smn_count_shipping_modules() > 1) {
    $shipping = $shipping_modules->cheapest();
}
$breadcrumb->add(NAVBAR_TITLE_1, smn_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'NONSSL'));
$breadcrumb->add(NAVBAR_TITLE_2, smn_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'NONSSL'));