Skip to content

Commit 2c94a34

Browse files
Change src dir
1 parent d48403a commit 2c94a34

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/mail/order/payed.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,29 @@
100100
?>
101101
<?= Html::endTag('p'); ?>
102102

103+
<? if ($order->shopDiscountCoupons) : ?>
104+
<?= Html::beginTag('h3'); ?>
105+
<?= count($order->shopDiscountCoupons) == 1 ? "Скидочный купон:" : "Скидочные купоны:" ;?>
106+
<?= Html::endTag('h3'); ?>
107+
108+
109+
<? foreach ($order->shopDiscountCoupons as $shopDiscountCoupon) : ?>
110+
<b><?= $shopDiscountCoupon->coupon ?></b> -
111+
<? if ($shopDiscountCoupon->shopDiscount->value_type == \skeeks\cms\shop\models\ShopDiscount::VALUE_TYPE_F) : ?>
112+
<?= new \skeeks\cms\money\Money($shopDiscountCoupon->shopDiscount->value, $order->currency_code); ?>
113+
<? else: ?>
114+
<? endif; ?>
115+
<? endforeach; ?>
116+
<? endif; ?>
117+
103118
<?= Html::beginTag('h2'); ?>
104119
Итого:
105120
<?= Html::endTag('h2'); ?>
106121

107122
<?= Html::beginTag('p'); ?>
108123
Стоимость товаров: <?= Html::tag('b', (string)$order->basketsMoney); ?><br/>
109124
Стоимость доставки: <?= Html::tag('b', (string)$order->moneyDelivery); ?><br/>
125+
Скидка: <?= Html::tag('b', (string)$order->moneyDiscount); ?><br/>
110126
Оплачено: <?= Html::tag('b', (string)$order->money); ?>
111127
<?= Html::endTag('p'); ?>
112128

0 commit comments

Comments
 (0)