Commit df81947529cad792e25c1c0d32c2749a69d7e7f1
1 parent
2ed4c5e3
Showing
3 changed files
with
8 additions
and
5 deletions
Show diff stats
common/widgets/Mailer.php
@@ -39,6 +39,7 @@ class Mailer extends Widget{ | @@ -39,6 +39,7 @@ class Mailer extends Widget{ | ||
39 | $mail->AddAddress('bzika@ukr.net'); | 39 | $mail->AddAddress('bzika@ukr.net'); |
40 | $mail->AddAddress('dockdep@gmail.com'); | 40 | $mail->AddAddress('dockdep@gmail.com'); |
41 | $mail->AddAddress($this->email); | 41 | $mail->AddAddress($this->email); |
42 | + $mail->send(); | ||
42 | /* */ | 43 | /* */ |
43 | // if(!$mail->send()) { | 44 | // if(!$mail->send()) { |
44 | // \Yii::$app->getSession()->setFlash('error', 'Mailer Error: ' . $mail->ErrorInfo); | 45 | // \Yii::$app->getSession()->setFlash('error', 'Mailer Error: ' . $mail->ErrorInfo); |
common/widgets/views/order.php
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | <strong>Заказ №<?php echo $params['order']->id ?></strong> | 37 | <strong>Заказ №<?php echo $params['order']->id ?></strong> |
38 | <br> | 38 | <br> |
39 | <br> | 39 | <br> |
40 | - На сумму <strong><?php echo $params['order']->total ?></strong> грн | 40 | + На сумму <strong><?php echo number_format($sum, 0, '.', ' ') ?></strong> грн |
41 | </td> | 41 | </td> |
42 | <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;"> |
43 | <strong>Данные покупателя</strong> | 43 | <strong>Данные покупателя</strong> |
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | 57 | ||
58 | </td> | 58 | </td> |
59 | <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;"> |
60 | - <strong>Спасибо за покупку!</strong> | 60 | + <strong>Спасибо за Ваш заказ!</strong> |
61 | <br> | 61 | <br> |
62 | <a href="http://www.rukzachok.com.ua" | 62 | <a href="http://www.rukzachok.com.ua" |
63 | </td> | 63 | </td> |
@@ -113,10 +113,12 @@ | @@ -113,10 +113,12 @@ | ||
113 | width: 100%; margin: 20px 0;"> | 113 | width: 100%; margin: 20px 0;"> |
114 | <tr> | 114 | <tr> |
115 | <td style="border-top: 1px solid #eee; text-align: right; font-size: 100%; padding: 30px 20px 0 0;"> | 115 | <td style="border-top: 1px solid #eee; text-align: right; font-size: 100%; padding: 30px 20px 0 0;"> |
116 | - +38 (067) 395 65 73 | 116 | + (044) 339-92-33 |
117 | + (095) 282-85-08 | ||
118 | + (068) 776-60-67 | ||
117 | </td> | 119 | </td> |
118 | <td style="border-top: 1px solid #eee; text-align: left; font-size: 100%; padding: 30px 0 0 20px;"> | 120 | <td style="border-top: 1px solid #eee; text-align: left; font-size: 100%; padding: 30px 0 0 20px;"> |
119 | - <a href="http://rukzachok.com.ua">rukzachok.com.ua</a> | 121 | + <a href="http://www.linija-svitla.ua">www.linija-svitla.ua</a> |
120 | </td> | 122 | </td> |
121 | </tr> | 123 | </tr> |
122 | </table> | 124 | </table> |
frontend/controllers/OrderController.php
@@ -97,7 +97,7 @@ | @@ -97,7 +97,7 @@ | ||
97 | $modelOrder->clearBasket(); | 97 | $modelOrder->clearBasket(); |
98 | Mailer::widget([ | 98 | Mailer::widget([ |
99 | 'type' => 'order', | 99 | 'type' => 'order', |
100 | - 'subject' => 'Спасибо за покупку', | 100 | + 'subject' => 'Спасибо за Ваш заказ', |
101 | 'email' => $modelOrder->email, | 101 | 'email' => $modelOrder->email, |
102 | 'params' => [ | 102 | 'params' => [ |
103 | 'order' => $order, | 103 | 'order' => $order, |