Commit 1fc1955effe0f5d75f99e16ad68407d340859111
1 parent
7c3211cc
big commti
Showing
2 changed files
with
9 additions
and
8 deletions
Show diff stats
common/widgets/Mailer.php
... | ... | @@ -31,13 +31,14 @@ class Mailer extends Widget{ |
31 | 31 | $mail->Host = 'smtp.gmail.com'; |
32 | 32 | $mail->Port = 465; |
33 | 33 | $mail->CharSet = 'UTF-8'; |
34 | - $mail->Username = "proekant.net@gmail.com"; | |
35 | - $mail->Password = "proektant112233"; | |
36 | - $mail->SetFrom('proekant.net@gmail.com'); | |
34 | + $mail->Username = "order.linija.svitla.ua@gmail.com"; | |
35 | + $mail->Password = "linija-svitla.ua339-92-33"; | |
36 | + $mail->SetFrom('order.linija.svitla.ua@gmail.com'); | |
37 | 37 | $mail->Subject = $this->subject; |
38 | 38 | $mail->MsgHTML($this->render($this->type, ['params' => $this->params])); |
39 | 39 | $address = "slava.up@gmail.com"; |
40 | 40 | $mail->AddAddress($address); |
41 | + $mail->AddAddress('dockdep@gmail.com'); | |
41 | 42 | $mail->AddAddress($this->email); |
42 | 43 | /* */ |
43 | 44 | if(!$mail->send()) { | ... | ... |
common/widgets/views/order.php
... | ... | @@ -49,7 +49,7 @@ |
49 | 49 | <?php echo $params['order']->email ?> |
50 | 50 | </td> |
51 | 51 | <td style="text-align: left; vertical-align: top; font-size: 85%; padding: 20px 15px 15px;"> |
52 | - <strong>Доставка</strong> | |
52 | + <strong></strong> | |
53 | 53 | <br> |
54 | 54 | <?php echo $params['order']->city ?> |
55 | 55 | <br> |
... | ... | @@ -75,10 +75,10 @@ |
75 | 75 | </tr> |
76 | 76 | </thead> |
77 | 77 | <tbody> |
78 | - <?php foreach ( $params['variants'] as $thisItem) { ?> | |
78 | + <?php $sum = 0; foreach ( $params['variants'] as $thisItem) { ?> | |
79 | 79 | <tr> |
80 | 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="http://rukzachok.com.ua<?= $thisItem['img'] ?>" width="150"> | |
81 | + <img src="http://www.linija-svitla.ua<?= $thisItem['img'] ?>" width="150"> | |
82 | 82 | </td> |
83 | 83 | <td style="padding: 65px 10px 20px; vertical-align: top; text-align: left; border-bottom: 1px solid #ddd; font-size: 18px;"> |
84 | 84 | <?php echo $thisItem['product_name'] ?> |
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 | <small style="margin-right: 1px;">×</small><?php echo $thisItem['count'] ?> |
88 | 88 | </td> |
89 | 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;"> |
90 | - <?php echo number_format($thisItem['sum_cost']) ?> грн | |
90 | + <?php $sum += $thisItem['sum_cost']; echo number_format($thisItem['sum_cost']) ?> грн | |
91 | 91 | </td> |
92 | 92 | </tr> |
93 | 93 | <?php } ?> |
... | ... | @@ -98,7 +98,7 @@ |
98 | 98 | <strong>Всего к оплате:</strong> |
99 | 99 | </td> |
100 | 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;"> |
101 | - <strong><?php echo number_format($params['order']->total) ?> грн</strong> | |
101 | + <strong><?php echo number_format($sum) ?> грн</strong> | |
102 | 102 | </td> |
103 | 103 | </tr> |
104 | 104 | <tfoot> | ... | ... |