
Cut Item |
<% echo $row->Item; %> |
<% echo $row->Description; %> |
<% echo number_format($row->Quantity,0); %> |
<%
//Calculate the individual totals for a row
$lineitemweight = ($row->Weight * $row->Quantity);
$subweight += $lineitemweight;
$subsize = $subsize + $row->Size;
$subtotal = (($row->Quantity) * ($row->Price));
$total = $subtotal;
//need to format the above into some kind of currency format
$grandtotal = $grandtotal + $subtotal;
%>
$ <% echo number_format($row->Price,2)%>
<%
//Do item Discount
if($row->Discount > 0){
$itemdiscount = $row->Discount;
$itemdiscount = number_format($itemdiscount,0);
$strdisplay = " (" .$itemdiscount . "% off)";
echo($strdisplay);
}
%>
|
$ <% echo number_format($total,2)%> |
<% echo $row->Taxed; %> |
<%
if(empty($row->Upsell) || $row->Upsell = ""){
$strdisplay = "";
$strdisplay = $strdisplay . " | ";
echo($strdisplay);
}else{
$strdisplay = "";
$strdisplay = $strdisplay . "";
$strdisplay = $strdisplay . " | ";
echo($strdisplay);
}
%>