"; $accfoldername = substr($tempname, 0, strpos($tempname, '/') ); if ($accfoldername=="shop001") $accfoldername=""; require_once("../../config".$accfoldername.".inc.php"); require_once("../../common.inc.php"); $error = false; $id = (!empty($_GET["id"])) ? $_GET["id"] : ""; if ( empty($id) ) $error = true; if ( !$error ) { $k=0; $print_fav = ''; $sql = "SELECT * FROM `tb_order_list` WHERE `id` = '".escapeit($id)."'"; $row = $db->getrow($sql); $sql_item = "SELECT * FROM `tb_order_product` WHERE `order_id` = '".$row['id']."' ORDER BY `id` ASC"; $rs_item = $db->query($sql_item); while ( $row_item = $db->fetch_array($rs_item) ){ $print_fav.='
| #'.($k+1).' | |
| Name | '.$cart_item[$row_item["product_id"]]["name"].' |
| Item No. | '.$cart_item[$row_item["product_id"]]["item_no"].' |
| Qty | '.$row_item["quantity"].' |
| Unit Price | '.$currency_unit['Hong Kong'].' '.number_format($cart_item[$row_item["product_id"]]["price"]['Hong Kong'],2).' |
Your Receipt
| Name | =$row['name']?> |
| =$row['email']?> | |
| Address | =$row['address']?> |
| Phone | =$row['phone']?> |
| Order Detail | =$print_fav?> |
| Shipping and Tax | =$currency_unit['Hong Kong'].' '.number_format($row['shipping']+$row['tax'],2)?> |
| Order Total | =$currency_unit['Hong Kong'].' '.number_format($row['order_total'],2)?> |
You will receive your order shipment tracking link in a separate email