order.php
6.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="uk">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Rukzachok.com.ua</title>
<style type="text/css">
body {
font-family: helvetica neue, arial, sans-serif;
line-height: 1.5;
padding: 0;
margin: 0;
}
</style>
</head>
<body style="margin: 0;">
<div class="container" style="
margin: 0 auto;
font-family: helvetica neue, arial, sans-serif;
font-size: 16px;
line-height: 1.5;
width: 100%;
max-width: 740px;
min-width: 360px;
">
<div style="text-align: center">
<br>
<h1 style="margin: -5px 40px 10px; line-height: 1.2;">Добрый день, <?php echo $params['order']->name ?>!</h1>
<h2 style="font-weight: 300; margin: 10px 40px 40px; line-height: 1.2;">Ваш заказ получен. В ближайшее время с Вами свяжется менеджер для уточнения деталей</h2>
</div>
<table cellpadding="0" cellspacing="0" border="0" valign="top" style="
background: #eee; border-radius: 4px;
width: 100%;
">
<tr>
<td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px; border-right: 1px solid #ddd;">
<strong>Заказ №<?php echo $params['order']->id ?></strong>
<br>
<br>
На сумму <strong><?php echo $params['order']->total ?></strong> грн
</td>
<td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px;">
<strong>Данные покупателя</strong>
<br>
<?php echo $params['order']->name ?>
<br>
<nobr><?php echo $params['order']->phone ?></nobr>
<br>
<?php echo $params['order']->email ?>
</td>
<td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px;">
<strong>Доставка</strong>
<br>
<?php echo $params['order']->city ?>
<br>
<?php echo $params['order']->adress ?>
</td>
<td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 20px 15px 15px;">
<strong>Спасибо за покупку!</strong>
<br>
<a href="http://www.rukzachok.com.ua"
</td>
</tr>
<tr>
<td colspan="4" style="background: #fff;">
<table cellpadding="0" cellspacing="0" border="0" valign="top" style="
width: 100%;">
<thead style="font-size: 70%;">
<tr>
<th style="border-bottom: 2px solid #eee; padding: 10px 10px 5px 0;"> </th>
<th style="border-bottom: 2px solid #eee; text-align: left; padding: 10px 10px 5px;">Название</th>
<th style="border-bottom: 2px solid #eee; text-align: right; padding: 10px 10px 5px;">Количество</th>
<th style="border-bottom: 2px solid #eee; text-align: right; padding: 10px 30px 5px 10px;">Цена</th>
</tr>
</thead>
<tbody>
<?php foreach ( $params['variants'] as $thisItem) { ?>
<tr>
<td style="padding: 0; vertical-align: top; line-height: 0; text-align: left; border-bottom: 1px solid #ddd; border-left: 1px solid #eee;">
<img src="http://rukzachok.com.ua<?= $thisItem['img'] ?>" width="150">
</td>
<td style="padding: 65px 10px 20px; vertical-align: top; text-align: left; border-bottom: 1px solid #ddd; font-size: 18px;">
<?php echo $thisItem['product_name'] ?>
</td>
<td style="padding: 65px 10px 20px; vertical-align: top; text-align: right; border-bottom: 1px solid #ddd; font-size: 18px;">
<small style="margin-right: 1px;">×</small><?php echo $thisItem['count'] ?>
</td>
<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;">
<?php echo number_format($thisItem['sum_cost']) ?> грн
</td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr>
<td colspan="3" style="background: #eee; vertical-align: top; border-radius: 0 0 0 4px; padding: 13px 10px 20px; border-top: 1px solid #ddd; text-align: right; font-size: 14px;">
<strong>Всего к оплате:</strong>
</td>
<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;">
<strong><?php echo number_format($params['order']->total) ?> грн</strong>
</td>
</tr>
<tfoot>
</table>
</td>
</tr>
</table>
<div style="padding: 40px;">
<center><img src="http://rukzachok.com.ua/img/logo.png"></center>
<table cellpadding="0" cellspacing="0" border="0" valign="top" style="
width: 100%; margin: 20px 0;">
<tr>
<td style="border-top: 1px solid #eee; text-align: right; font-size: 100%; padding: 30px 20px 0 0;">
+38 (093) 911 05 03<br/>
+38 (095) 004 56 55<br/>
+38 (068) 083 62 01
<!-- +38 (067) 395 65 73 -->
</td>
<td style="border-top: 1px solid #eee; text-align: left; font-size: 100%; padding: 30px 0 0 20px;">
<a href="http://rukzachok.com.ua">rukzachok.com.ua</a>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>