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