view.php 9.0 KB

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