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 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   - <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 40 </td>
42 41 <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px 20px;">
43 42 <strong>Данные покупателя</strong>
... ... @@ -75,7 +74,7 @@
75 74 </tr>
76 75 </thead>
77 76 <tbody>
78   - <?php $sum = 0; foreach ( $params['variants'] as $thisItem) { ?>
  77 + <?php foreach ( $params['variants'] as $thisItem) { ?>
79 78 <tr>
80 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 80 <img src="http://www.linija-svitla.ua<?= $thisItem['img'] ?>" width="150">
... ... @@ -87,7 +86,7 @@
87 86 <small style="margin-right: 1px;">×</small><?php echo $thisItem['count'] ?>
88 87 </td>
89 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 90 </td>
92 91 </tr>
93 92 <?php } ?>
... ... @@ -98,7 +97,7 @@
98 97 <strong>Всего к оплате:</strong>
99 98 </td>
100 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 101 </td>
103 102 </tr>
104 103 <tfoot>
... ... @@ -113,8 +112,8 @@
113 112 width: 100%; margin: 20px 0;">
114 113 <tr>
115 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 117 (068) 776-60-67
119 118 </td>
120 119 <td style="border-top: 1px solid #eee; text-align: left; font-size: 100%; padding: 30px 0 0 20px;">
... ...