Commit 74a103b3922f33b265414e13792546351dd4800c

Authored by Alex Savenko
1 parent 755cef9d

order sender fix

Showing 1 changed file with 6 additions and 7 deletions   Show diff stats
common/widgets/views/order.php
@@ -36,8 +36,7 @@ @@ -36,8 +36,7 @@
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 - <br>  
40 - На сумму <strong><?php echo number_format($sum, 0, '.', ' ') ?></strong> грн 39 + На сумму <?php $sum = 0; foreach ( $params['variants'] as $item) { $sum += $item['sum_cost']; } echo number_format($sum, 0, '.', ' ') ?> грн
41 </td> 40 </td>
42 <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px;"> 41 <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px;">
43 <strong>Данные покупателя</strong> 42 <strong>Данные покупателя</strong>
@@ -75,7 +74,7 @@ @@ -75,7 +74,7 @@
75 </tr> 74 </tr>
76 </thead> 75 </thead>
77 <tbody> 76 <tbody>
78 - <?php $sum = 0; foreach ( $params['variants'] as $thisItem) { ?> 77 + <?php foreach ( $params['variants'] as $thisItem) { ?>
79 <tr> 78 <tr>
80 <td style="padding: 0; vertical-align: top; line-height: 0; text-align: left; border-bottom: 1px solid #ddd; border-left: 1px solid #eee;"> 79 <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="http://www.linija-svitla.ua<?= $thisItem['img'] ?>" width="150"> 80 <img src="http://www.linija-svitla.ua<?= $thisItem['img'] ?>" width="150">
@@ -87,7 +86,7 @@ @@ -87,7 +86,7 @@
87 <small style="margin-right: 1px;">×</small><?php echo $thisItem['count'] ?> 86 <small style="margin-right: 1px;">×</small><?php echo $thisItem['count'] ?>
88 </td> 87 </td>
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;"> 88 <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;">
90 - <?php $sum += $thisItem['sum_cost']; echo number_format($thisItem['sum_cost']) ?> грн 89 + <?php echo number_format($thisItem['sum_cost'], 0, '.', ' ') ?> грн
91 </td> 90 </td>
92 </tr> 91 </tr>
93 <?php } ?> 92 <?php } ?>
@@ -98,7 +97,7 @@ @@ -98,7 +97,7 @@
98 <strong>Всего к оплате:</strong> 97 <strong>Всего к оплате:</strong>
99 </td> 98 </td>
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;"> 99 <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;">
101 - <strong><?php echo number_format($sum) ?> грн</strong> 100 + <strong><?php echo number_format($sum, 0, '.', ' ') ?> грн</strong>
102 </td> 101 </td>
103 </tr> 102 </tr>
104 <tfoot> 103 <tfoot>
@@ -113,8 +112,8 @@ @@ -113,8 +112,8 @@
113 width: 100%; margin: 20px 0;"> 112 width: 100%; margin: 20px 0;">
114 <tr> 113 <tr>
115 <td style="border-top: 1px solid #eee; text-align: right; font-size: 100%; padding: 30px 20px 0 0;"> 114 <td style="border-top: 1px solid #eee; text-align: right; font-size: 100%; padding: 30px 20px 0 0;">
116 - (044) 339-92-33  
117 - (095) 282-85-08 115 + (044) 339-92-33<br>
  116 + (095) 282-85-08<br>
118 (068) 776-60-67 117 (068) 776-60-67
119 </td> 118 </td>
120 <td style="border-top: 1px solid #eee; text-align: left; font-size: 100%; padding: 30px 0 0 20px;"> 119 <td style="border-top: 1px solid #eee; text-align: left; font-size: 100%; padding: 30px 0 0 20px;">