File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 100
100
?>
101
101
<?= Html::endTag ('p ' ); ?>
102
102
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
+
103
118
<?= Html::beginTag ('h2 ' ); ?>
104
119
Итого:
105
120
<?= Html::endTag ('h2 ' ); ?>
106
121
107
122
<?= Html::beginTag ('p ' ); ?>
108
123
Стоимость товаров: <?= Html::tag ('b ' , (string )$ order ->basketsMoney ); ?> <br/>
109
124
Стоимость доставки: <?= Html::tag ('b ' , (string )$ order ->moneyDelivery ); ?> <br/>
125
+ Скидка: <?= Html::tag ('b ' , (string )$ order ->moneyDiscount ); ?> <br/>
110
126
Оплачено: <?= Html::tag ('b ' , (string )$ order ->money ); ?>
111
127
<?= Html::endTag ('p ' ); ?>
112
128
You can’t perform that action at this time.
0 commit comments