コード例 #1
0
    $result_user_details = mysql_query($select_user_details) or die(mysql_error());
    if (mysql_num_rows($result_user_details) > 0) {
        $user_details_row = mysql_fetch_assoc($result_user_details);
        $txtBillingFirstName = $user_details_row['first_name'];
        $txtBillingLastName = $user_details_row['last_name'];
        $txtBillingAddress1 = $user_details_row['address1'];
        $txtBillingAddress2 = $user_details_row['address2'];
        $txtBillingCity = $user_details_row['city'];
        $txtBillingState = $user_details_row['state'];
        $txtBillingZIP = $user_details_row['zip'];
        $txtBillingFAX = $user_details_row['fax'];
        $txtBillingPhone = $user_details_row['phone'];
        $txtBillingEmail = $user_details_row['email'];
        $ddlBillingCountry = $user_details_row['country'];
    }
    $shippingAddress = clsUser::getShippingAddress($_SESSION["sess_userid"]);
    $txtShippingFirstName = $shippingAddress["shipping_first_name"];
    $txtShippingLastName = $shippingAddress["shipping_last_name"];
    $txtShippingAddress1 = $shippingAddress["shipping_address1"];
    $txtShippingAddress2 = $shippingAddress["shipping_address2"];
    $txtShippingCity = $shippingAddress["shipping_city"];
    $txtShippingZIP = $shippingAddress["shipping_zip"];
    $txtShippingFAX = $shippingAddress["shipping_fax"];
    $txtShippingPhone = $shippingAddress["shipping_phone"];
    $txtShippingEmail = $shippingAddress["shipping_email"];
    $ddlShippingCountry = $shippingAddress["shipping_country"];
    $txtShippingState = $shippingAddress["shipping_state"];
}
/*--------Multicart 2.0 Ends------------*/
if ($_SESSION['current_zipcode'] != "" && $_SESSION['currentTaxPrice'] > 0) {
    if (isset($_REQUEST['txtShippingZIP']) && $_REQUEST['txtShippingZIP'] == "") {