getrow($sql);
$sql_photo = "SELECT * FROM `attachment` WHERE `table_name` = 'products' AND `table_id` = '".$fav_array['id']."' AND `col_name` LIKE 'Photo Large' ORDER BY `sorting` ASC, `attachment_id` ASC LIMIT 0,1";
$photo = $db->getrow($sql_photo);
// echo "##".$_SESSION['pid'][$p].$sql_photo.$_SESSION['cart_id']."
" ;
// if ( $_SESSION['curr']=='RMB' ) { $temp = 'RMB '; $tempamount = $_SESSION["price1"][$p] ; }
// if ( $_SESSION['curr']=='HKD' ) { $temp = 'HKD '; $tempamount = $_SESSION["price2"][$p] ; }
// if ( $_SESSION['curr']=='USD' ) { $temp = 'USD '; $tempamount = $_SESSION["price3"][$p] ; }
$temp = $_SESSION['curr'];
$tempamount=0; $tempprice=0;
// $tempamount = $_SESSION["price1"][$p] * $_SESSION['currency'];
$tempup = $fav_array["price1"] * $_SESSION['currency'];
$tempamount = floatval($tempup) * $_SESSION["fav_qty"][$p];
// $tempprice = $tempamount / $_SESSION["fav_qty"][$p];
$tempprice = $fav_array["price1"];
$_SESSION["tempamount"]=$tempamount;
if ( $_SESSION["size"][$p]!=0 && $_SESSION["size"][$p]!="" ) $temptext1 = '
尺码: '.$_SESSION["size"][$p];
if ( $_SESSION["color"][$p]!=0 && $_SESSION["color"][$p]!="" ) $temptext2 = '
顏色: '.$_SESSION["color"][$p];
$print_large_fav .='
!['.$photo['alt'].'](../'.$photo['path'].'thumb_s/'.$photo['file_name'].') |
'.$_SESSION["name"][$p].$temptext1.$temptext2.' Color : black, Material : metal |
'.$_SESSION["color"][$p].' |
'.$_SESSION["size"][$p].' |
|
'.$temp.' '.$tempup.' |
'.$temp.' |
';
$_SESSION["temp"] = $_SESSION["temp"] + $tempamount;
$rmb_total_price += $_SESSION["price1"][$p];
$hk_total_price += $_SESSION["price2"][$p];
$us_total_price += $_SESSION["price3"][$p];
$k++;
/*$hk_price_value=$fav_array["hk_price"];
$hk_price_value=str_replace(",","",$hk_price_value);
$hk_total_price+=$hk_price_value ;
$tw_price_value=$fav_array["tw_price"];
$tw_price_value=str_replace(",","",$tw_price_value);
$tw_total_price+=$tw_price_value ;*/
}
}
$_SESSION["temptotal"] = $_SESSION["temp"];
$_SESSION["temp"] = 0;
$sql_country = "SELECT * FROM `tb_shipping_country` WHERE `display` = '1' ORDER BY `zone_id` ASC, `id` ASC";
$rs_country = $db->query($sql_country);
$country_list = "";
while ( $row_country = $db->fetch_array($rs_country)){
$sql_shipping = "SELECT * FROM `tb_shipping_zone` WHERE `id` = '".$row_country['zone_id']."' LIMIT 0,1";
$row_shipping = $db->getrow($sql_shipping);
if ( $_SESSION['currency']=='1') $shipping = $row_shipping['price_usd'];
else $shipping = $row_shipping['price_hkd'];
if ($shipping == '0') $shipping = 'Free';
$country_list .= "";
}
?>
| Product |
Description |
Color |
Size |
Quantity |
Unit Price |
Total |