view.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. ?>
  10. <?php
  11. use fecshop\app\apphtml5\helper\Format;
  12. ?>
  13. <div class="account-ds">
  14. <div class="bar bar-nav account-top-m">
  15. <a external class="button button-link button-nav pull-left" href="<?= Yii::$service->url->getUrl('customer/order/index'); ?>">
  16. <span class="icon icon-left"></span>
  17. </a>
  18. <h1 class='title'><?= Yii::$service->page->translate->__('View Order'); ?></h1>
  19. </div>
  20. </div>
  21. <?= Yii::$service->page->widget->render('flashmessage'); ?>
  22. <div class="account-container">
  23. <div class="col-main account_center">
  24. <div class="std">
  25. <div style="margin:2px 0 0">
  26. <div class="my_account_order">
  27. <table class="page-title title-buttons">
  28. <tbody>
  29. <tr><td><?= Yii::$service->page->translate->__('Order#');?> :</td><td><?= $increment_id ?> </td></tr>
  30. <tr><td><?= Yii::$service->page->translate->__('Order Status');?>:</td><td><?= Yii::$service->page->translate->__($order_status);?></td></tr>
  31. <tr><td><?= Yii::$service->page->translate->__('Order Date');?>:</td><td><?= date('Y-m-d H:i:s',$created_at); ?></td></tr>
  32. </tbody>
  33. </table>
  34. <div class="col2-set order-info-box">
  35. <div class="col-1">
  36. <div class="box">
  37. <div class="box-title">
  38. <h5><?= Yii::$service->page->translate->__('Shipping Address');?>:</h5>
  39. </div>
  40. <div class="box-content">
  41. <table>
  42. <tbody>
  43. <tr><td><?= $customer_firstname ?> <?= $customer_lastname ?></td></tr>
  44. <tr><td><?= $customer_address_street1 ?><br><?= $customer_address_street2 ?></td></tr>
  45. <tr><td><?= $customer_address_city ?>,<?= $customer_address_state_name ?>,<?= $customer_address_country_name ?></td></tr>
  46. <tr><td><?= Yii::$service->page->translate->__('T:');?><?= $customer_telephone ?></td></tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div> </div>
  51. <div class="col-2">
  52. <div class="box">
  53. <div class="box-title">
  54. <h5><?= Yii::$service->page->translate->__('Shipping Method');?>:</h5>
  55. </div>
  56. <div class="box-content">
  57. <table>
  58. <tbody>
  59. <tr><td><?= $shipping_method ?></td></tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="col-2">
  66. <div class="box">
  67. <div class="box-title">
  68. <h5><?= Yii::$service->page->translate->__('Tracking Number');?>:</h5>
  69. </div>
  70. <div class="box-content">
  71. <table>
  72. <tbody>
  73. <tr><td><?= $tracking_number ? $tracking_number : Yii::$service->page->translate->__('null') ?></td></tr>
  74. </tbody>
  75. </table>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="col-2">
  80. <div class="box box-payment">
  81. <div class="box-title">
  82. <h5><?= Yii::$service->page->translate->__('Payment Method');?>:</h5>
  83. </div>
  84. <div class="box-content">
  85. <table>
  86. <tbody>
  87. <tr><td><?= $payment_method ?></td></tr>
  88. </tbody>
  89. </table>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="order-items order-details box-title">
  95. <h5 class="table-caption"><?= Yii::$service->page->translate->__('Items Ordered');?>:</h5>
  96. <table summary="Items Ordered" id="my-orders-table" class="data-table">
  97. <colgroup>
  98. <col>
  99. <col width="1">
  100. <col width="1">
  101. <col width="1">
  102. <col width="1">
  103. </colgroup>
  104. <thead>
  105. <tr class="first last">
  106. <th><?= Yii::$service->page->translate->__('Product Image');?></th>
  107. <th><?= Yii::$service->page->translate->__('Product Info');?></th>
  108. <th class="a-center"><?= Yii::$service->page->translate->__('Qty');?></th>
  109. <th class="a-center"><?= Yii::$service->page->translate->__('Review');?></th>
  110. <th class="a-right"><?= Yii::$service->page->translate->__('Subtotal');?></th>
  111. </tr>
  112. </thead>
  113. <tfoot>
  114. <tr class="subtotal first">
  115. <td class="a-right" colspan="4"><?= Yii::$service->page->translate->__('Subtotal');?></td>
  116. <td class="last a-center"><span class="price"><?= $currency_symbol ?><?= Format::price($subtotal); ?></span></td>
  117. </tr>
  118. <tr class="shipping">
  119. <td class="a-right" colspan="4"><?= Yii::$service->page->translate->__('Shipping Cost');?></td>
  120. <td class="last a-center">
  121. <span class="price"><?= $currency_symbol ?><?= Format::price($shipping_total); ?></span>
  122. </td>
  123. </tr>
  124. <tr class="discount">
  125. <td class="a-right" colspan="4"><?= Yii::$service->page->translate->__('Discount');?></td>
  126. <td class="last a-center">
  127. <span class="price"><?= $currency_symbol ?><?= Format::price($subtotal_with_discount); ?></span>
  128. </td>
  129. </tr>
  130. <tr class="grand_total last">
  131. <td class="a-center" colspan="4">
  132. <strong><?= Yii::$service->page->translate->__('Grand Total');?></strong>
  133. </td>
  134. <td class="last a-right">
  135. <strong><span class="price"><?= $currency_symbol ?><?= Format::price($grand_total); ?></span></strong>
  136. </td>
  137. </tr>
  138. </tfoot>
  139. <tbody class="odd">
  140. <?php if(is_array($products) && !empty($products)): ?>
  141. <?php foreach($products as $product): ?>
  142. <tr id="order-item-row" class="border first">
  143. <td>
  144. <a href="<?= Yii::$service->url->getUrl($product['redirect_url']) ; ?>">
  145. <img src="<?= Yii::$service->product->image->getResize($product['image'],[100,100],false) ?>" alt="<?= $product['name'] ?>" width="75" height="75">
  146. </a>
  147. </td>
  148. <td>
  149. <div><?= Yii::$service->page->translate->__('sku')?>:<?= $product['sku'] ?></div>
  150. <?php if(is_array($product['custom_option_info'])): ?>
  151. <?php foreach($product['custom_option_info'] as $label => $val): ?>
  152. <div>
  153. <?= Yii::$service->page->translate->__($label.':') ?><?= Yii::$service->page->translate->__($val) ?>
  154. </div>
  155. <?php endforeach; ?>
  156. <?php endif; ?>
  157. <?php if($product['customsize']): ?>
  158. <ul>
  159. <?php
  160. $customsize = stripslashes($product['customsize']);
  161. $customsize = json_decode($customsize,true);
  162. ?>
  163. <?php foreach($customsize as $k => $v): ?>
  164. <li><?=$k?>:<?=$v?> </li>
  165. <?php endforeach; ?>
  166. </ul>
  167. <?php endif; ?>
  168. <dl class="item-options">
  169. </dl>
  170. </td>
  171. <td class="a-center">
  172. <span class="nobr" ><strong><?= $product['qty'] ?></strong><br>
  173. </span>
  174. </td>
  175. <td class="a-center">
  176. <a style="font-size:1em" href="<?= Yii::$service->url->getUrl('/catalog/reviewproduct/add',['_id' => $product['product_id']]) ?>">
  177. <span class="" >
  178. Review
  179. <br>
  180. </span>
  181. </a>
  182. </td>
  183. <td class="a-right last">
  184. <span class="price-excl-tax">
  185. <span class="cart-price">
  186. <span class="price"><?= $currency_symbol ?><?= Format::price($product['row_total']); ?></span>
  187. </span>
  188. </span>
  189. <br>
  190. </td>
  191. </tr>
  192. <?php endforeach; ?>
  193. <?php endif; ?>
  194. </tbody>
  195. </table>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="clear"></div>
  202. </div>