"; if ($VenderIDStr=='')//判斷有沒有同一家的運費,沒有資料 { echo ""; $TotalPost=$RS['PostPrice']; $VenderIDStr="*".$RS['VenderID']."*"; } else { if (strchr($VenderIDStr,$ComBe)<>"")//有找到同一家廠商的話運費就不加 { echo ""; } else { echo ""; $TotalPost=$TotalPost+$RS['PostPrice']; $VenderIDStr=$VenderIDStr.$RS['VenderID']."*"; } } // echo $TotalPost."
"; } if (($TotalNetPrice)>=1800) { $TotalPost=0; } $TotalPrice=$TotalNetPrice+$TotalPost; mysql_free_result($RS); ?>
品名單位數量單價運費小計刪除修改
".$RS['Title']."".$RS['Unit']."".$RS['Amount']." ".$RS['Price']."".$RS['PostPrice']."".(($RS['Price']*$RS['Amount'])+$RS['PostPrice'])."
".$RS['Title']."".$RS['Unit']."".$RS['Amount']." ".$RS['Price']."".$RS['PostPrice']."".(($RS['Price']*$RS['Amount'])+$RS['PostPrice'])."
".$RS['Title']."".$RS['Unit']."".$RS['Amount']." ".$RS['Price']."0".(($RS['Price']*$RS['Amount']))."
".$RS['Title']."".$RS['Unit']."".$RS['Amount']." ".$RS['Price']."".$RS['PostPrice']."".(($RS['Price']*$RS['Amount'])+$RS['PostPrice'])."
小計(不含運費)
運費
總價(含運費)
*消費滿1800元(不含運費)者免運費
*同一廠商商品運費僅算一次