示例#1
0
                                                                  <th scope="col" valign="top" width="10%" class="dataTableHeading" mc:edit="data_table_heading02">
                                                                    Qty
                                                                  </th>  
                                                                  <th scope="col" valign="top" width="15%" class="dataTableHeading" mc:edit="data_table_heading02">
                                                                    Amount
                                                                  </th>                                                                                                                                                                                                     
                                                              </tr>
                                                              
                                                              
                                                              <?php 
$detail = order_history_detail($memberid, $order_no);
if ($detail) {
    $totalamount = 0;
    foreach ($detail as $row) {
        $varimg = "";
        $img = order_history_thumbimg($row->id_product);
        if ($img) {
            $varimg = $img;
        }
        $vcolor = "-";
        if ($row->color_name) {
            $vcolor = "[" . $row->color_name . "] ";
        }
        $totalamount = $totalamount + $row->qty * $row->price;
        ?>
 																																	<tr mc:repeatable>
                                                                    <td valign="top" class="dataTableContent" mc:edit="data_table_content00">
                                                                      <img src="http://www.momocuppy.com<?php 
        echo $varimg;
        ?>
" width="51"/>
示例#2
0
  <div class="cartdesc">
  	<span class="popupdetail">Order Summary</span>
  	<span class="popupqty">Qty</span>    
  	<span class="popupprice">Price</span>    
  	<span class="popuptotal">Total</span>    
  </div>
  
  <!--start itemload-->
  <ul id="itemload" class="simplebar">

    <?php 
$totalorder = 0;
if ($dthistory) {
    foreach ($dthistory as $row) {
        $subtotal = $row->price * $row->qty;
        echo "\n\t\t\t\t<li>\n\t\t\t\t\t<div class=\"popupimg\">\n\t\t\t\t\t\t<img src=\"" . order_history_thumbimg($row->id_product) . "\" width=\"59\" height=\"99\"/>\t\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"popupdesc\">\n\t\t\t\t\t\t<h3 class=\"titledesc\">" . $row->product_name . "</h3>\n\t\t\t\t\t\t<span class=\"extradesc\">Color: " . $row->color_name . "</span>\n\t\t\t\t\t</div>      \n\t\t\t\t\t<div class=\"popupqty\">\n\t\t\t\t\t\t<span>" . $row->qty . "</span>\n\t\t\t\t\t</div>    \n\t\t\t\t\t<div class=\"popupprice\">\n\t\t\t\t\t\t<span>IDR " . number_format($row->price, 0, "", ".") . "</span>\n\t\t\t\t\t</div>    \n\t\t\t\t\t<div class=\"popuptotal\">\n\t\t\t\t\t\t<span>IDR " . number_format($subtotal, 0, "", ".") . "</span>\n\t\t\t\t\t</div>        \n\t\t\t\t</li>\t\t\t\t\t\n\t\t\t\t";
        $totalorder = $totalorder + $subtotal;
    }
}
$disc_price = $totalorder * $vardiscount / 100;
$grandtotal = $totalorder - $disc_price + $ship;
?>
    
              
  </ul>
  <!--end itemload-->  
 	 
 	<div class="popupsum">
  	<div class="row">
    	<span class="titlesum">SHIPPING COST</span>
    	<span class="price">IDR <?php