Commit 103f74c14a40aacb7e2e2e569b87b0403b61563d

Authored by Dmytry Fedorchuk
1 parent 6ce771e0

Mail Order save template and send dev

Showing 1 changed file with 16 additions and 17 deletions   Show diff stats
common/widgets/views/order.php
... ... @@ -3,7 +3,7 @@
3 3 <html lang="uk">
4 4 <head>
5 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6   - <title>NAKED PRICE</title>
  6 + <title>Rukzachok.com.ua</title>
7 7 <style type="text/css">
8 8 body {
9 9 font-family: helvetica neue, arial, sans-serif;
... ... @@ -36,25 +36,24 @@
36 36 <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px; border-right: 1px solid #ddd;">
37 37 <strong>Заказ №<?php echo $params['order']->id ?></strong>
38 38 <br>
39   - <?php die();/* $this->created_at->format("d.m.Y"); ?>
40 39 <br>
41   - На сумму <strong><?php=$this->total ?></strong> грн
  40 + На сумму <strong><?php echo $params['order']->total ?></strong> грн
42 41 </td>
43 42 <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px;">
44 43 <strong>Данные покупателя</strong>
45 44 <br>
46   - <?php=$this->account->name ?>
  45 + <?php echo $params['order']->name ?>
47 46 <br>
48   - <nobr><?php=$this->account->phone ?></nobr>
  47 + <nobr><?php echo $params['order']->phone ?></nobr>
49 48 <br>
50   - <?php=$this->account->email ?>
  49 + <?php echo $params['order']->email ?>
51 50 </td>
52 51 <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px;">
53 52 <strong>Доставка</strong>
54 53 <br>
55   - <?php=$this->city ?>
  54 + <?php echo $params['order']->city ?>
56 55 <br>
57   - <?php=$this->address ?>
  56 + <?php echo $params['order']->address ?>
58 57  
59 58 </td>
60 59 <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 20px 15px 15px;">
... ... @@ -76,19 +75,19 @@
76 75 </tr>
77 76 </thead>
78 77 <tbody>
79   - <?php foreach ($this->orderItems as $thisItem) { ?>
  78 + <?php foreach (echo $params['variants'] as $thisItem) { ?>
80 79 <tr>
81   - <td style="padding: 0; vertical-align: top; line-height: 0; text-align: left; border-bottom: 1px solid #ddd; border-left: 1px solid #eee;">
82   - <img src="{{$thisItem->product->img?>" width="150">
83   - </td>
  80 +<!-- <td style="padding: 0; vertical-align: top; line-height: 0; text-align: left; border-bottom: 1px solid #ddd; border-left: 1px solid #eee;">-->
  81 +<!-- <img src="" width="150">-->
  82 +<!-- </td>-->
84 83 <td style="padding: 65px 10px 20px; vertical-align: top; text-align: left; border-bottom: 1px solid #ddd; font-size: 18px;">
85   - <?php=$thisItem->product->name ?>
  84 + <?php echo $thisItem['product_name'] ?>
86 85 </td>
87 86 <td style="padding: 65px 10px 20px; vertical-align: top; text-align: right; border-bottom: 1px solid #ddd; font-size: 18px;">
88   - <small style="margin-right: 1px;">×</small><?php=$thisItem->quantity ?>
  87 + <small style="margin-right: 1px;">×</small><?php echo $thisItem['count'] ?>
89 88 </td>
90 89 <td style="padding: 65px 30px 20px 10px; vertical-align: top; text-align: right; border-bottom: 1px solid #ddd; border-right: 1px solid #eee; font-size: 18px;">
91   - <?php=number_format($thisItem->total) ?> грн
  90 + <?php echo number_format($thisItem['sum_cost']) ?> грн
92 91 </td>
93 92 </tr>
94 93 <?php } ?>
... ... @@ -99,7 +98,7 @@
99 98 <strong>Всего к оплате:</strong>
100 99 </td>
101 100 <td style="background: #eee; vertical-align: top; border-radius: 0 0 4px 0; padding: 10px 30px 20px 10px; border-top: 1px solid #ddd; text-align: right; font-size: 18px;">
102   - <strong><?php=number_format($this->total) ?> грн</strong>
  101 + <strong><?php echo number_format($params['order']->total) ?> грн</strong>
103 102 </td>
104 103 </tr>
105 104 <tfoot>
... ... @@ -122,7 +121,7 @@
122 121 </td>
123 122 </tr>
124 123 </table>
125   - <div style="text-align: center; font-size: 65%; color: #ccc;">Дата покупки: <?php=$thisItem->created_at */?></div>
  124 +
126 125 </div>
127 126 </div>
128 127 </body>
... ...