public function actionGet_list_basket()
 {
     $order_id = $_POST['order_id'];
     $order = new Orders();
     $data['basket'] = $order->_get_list_order($order_id);
     $this->renderPartial('//backend/order/basket', $data);
 }
示例#2
0
         <td>#</td>
         <td>รูป</td>
         <td>ชื่อสินค้า</td>
         <td style="text-align: center;">ราคา</td>
         <td style="text-align: center;">จำนวน</td>
         <td style="text-align: right;">ราคารวม</td>
     </tr>
 </thead>
 <tbody>
     <?php
     $totalall = 0;
     $i = 1;
     $product_model = new Product();
     $order = new Orders();
     $transport = $order->get_price_transport($rs['order_id']);
     $product = $order->_get_list_order($rs['order_id']);
     foreach ($product as $products):
         $img_ttitle = $product_model->get_images_product_title($products['product_id']);
     if(!empty($img_ttitle)){
         $img = "uploads/product_thumb/".$img_ttitle['images'];
     } else {
         $img = "images/No-image.jpg";
     }
         ?>
         <tr>
             <td><?= $i++ ?></td>
             <td style=" width: 10%;">
                 <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img; ?>" class="img-resize img-thumbnail" width="100%"/>
             </td>
             <td><?= $products['product_name']; ?></td>
             <td style=" text-align: right;"><?= number_format($products['product_price']); ?></td>