";
echo "";
echo "";
echo "";
echo "".$cartconfig->value("companyName")." ".$cartconfig->value("cartadminmail")." ".$cartconfig->value("companyPhone")." | ";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_ORDERRECEIPT." ";
echo "";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_ORDERID." | ";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_DATEPRINTED." | ";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_ORDERDATE." | ";
echo " ";
echo "";
echo "$orderID | ";
echo "".date("m/d/y")." | ";
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $orderInfo['orderDate'], $datetime);
$datetime = strftime("%m/%d/%Y", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo "$datetime | ";
echo " ";
echo " ";
echo " | ";
echo " ";
echo " ";
echo "
";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_SHIPPINGINFO." | ";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_BILLINGINFO." | ";
echo " ";
echo "";
echo "";
echo "$orderInfo[shipFirstName] $orderInfo[shipLastName]";
echo " $orderInfo[shipAddress1]";
if($orderInfo['shipAddress2'] != ''){
echo " $orderInfo[shipAddress2]";
}
echo " $orderInfo[shipCity], $orderInfo[shipState] $orderInfo[shipZip]";
echo " $orderInfo[shipCountry]
"._EMPORIUM_MODULE_ORDERS_RECEIPT_SHIPPINGMETHOD." $orderInfo[shipMethodName]
| ";
echo "";
echo "$orderInfo[billFirstName] $orderInfo[billLastName]";
echo " $orderInfo[billAddress1]";
if($orderInfo['billAddress2'] != ''){
echo " $orderInfo[billAddress2]";
}
echo " $orderInfo[billCity], $orderInfo[billState] $orderInfo[billZip]";
echo " $orderInfo[billCountry]
"._EMPORIUM_MODULE_ORDERS_RECEIPT_BILLINGMETHOD." $orderInfo[payMethodName]
| ";
echo "";
echo " ";
echo " ";
echo " | ";
echo "
";
echo "";
echo " "._EMPORIUM_MODULE_ORDERS_RECEIPT_PRODUCTDETAILS."";
echo "";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_PRODUCTCODE." | ";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_PRODUCTNAME." | ";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_QTY." | ";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_PRICE." | ";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_TOTAL." | ";
echo " ";
$result = $db->sql_query("SELECT itemID, prodID, prodCode, prodName, prodBrand, prodModel, itemCost, qty FROM ".$prefix."_cart_orders_cartitems WHERE orderID='$orderID' order by itemID asc");
while (list($iid, $sid, $prodCode, $prodName, $prodBrand, $prodModel, $itemCost, $qty) = $db->sql_fetchrow($result)) {
if($prodBrand != ""){ $prodBrand = "$prodBrand "; }
if($prodModel != ""){ $prodModel = " - $prodModel"; }
$cost = $itemCost;
$total = $cost * $qty;
echo "";
echo "$prodCode | ";
echo "$prodBrand$prodName$prodModel";
$optionresult = $db->sql_query("select optionName, selectionName, selectionAction, selectionValue from ".$prefix."_cart_orders_cartitems_options where itemID='$iid' AND orderID='$orderID' order by optionID, selectionID");
while(list($optionName, $selectionName, $selectionAction, $selectionValue) = $db->sql_fetchrow($optionresult)){
echo " · $optionName: $selectionName";
}
echo " | ";
echo "$qty | ";
echo "".price_format($cost)." | ";
echo "".price_format($total)." | ";
echo " ";
}
echo "";
echo "";
echo "";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_PRODUCTTOTAL." | ";
echo "".price_format($orderInfo['productTotal'])." | ";
echo " ";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_SHIPPINGHANDLING." | ";
echo "".price_format($orderInfo['shipTotal'] + $orderInfo['handlingTotal'])." | ";
echo " ";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_TAX." | ";
echo "".price_format($orderInfo['taxTotal'])." | ";
echo " ";
echo "";
echo " | ";
echo " | ";
echo " ";
echo "";
echo ""._EMPORIUM_MODULE_ORDERS_RECEIPT_GRANDTOTAL." | ";
echo "".price_format($orderInfo['productTotal'] + $orderInfo['shipTotal'] + $orderInfo['handlingTotal'] + $orderInfo['taxTotal'])." | ";
echo " ";
echo " ";
echo " | ";
echo " ";
echo " ";
echo " | ";
echo "
";
echo "