示例#1
0
                             <th> </th>
                             <th class="text-center">products</th>
                             <th class="text-center">qty</th>
                             <th class="text-center">price</th>
                             <th class="text-center">subtotal</th>
                             <th> </th>
                         </tr>
                     </thead>
                     <tbody>
                     <?php 
 $subtotal = 0;
 $shipping_fee = 0;
 foreach ($cart_items as $each_cart_product) {
     $each_cart_item_id = $each_cart_product['product_id'];
     $each_cart_item_name = $productMgr->getProductName($each_cart_item_id);
     $each_cart_item_price = $productMgr->getPrice($each_cart_item_id);
     $each_cart_item_price_format = number_format($each_cart_item_price, 2, '.', '');
     $each_cart_item_stock = $productMgr->getStock($each_cart_item_id);
     $each_cart_item_qty = $each_cart_product['quantity'];
     $each_cart_item_total = $each_cart_item_price * $each_cart_item_qty;
     $subtotal += $each_cart_item_total;
     $qtyid = $each_cart_item_id . 'qty';
     $cboxid = $each_cart_item_id . 'cbox';
     $removeBtnid = $each_cart_item_id . 'remove';
     $each_cart_totalid = $each_cart_item_id . 'total';
     ?>
                        <tr>
                             <td class="col-sm-1 col-md-1 text-center">
                                 <div class="checkbox-cartItem">
                                   <input id="<?php 
     echo $cboxid;