@@ -22,11 +22,14 @@ |
||
22 | 22 | <?php foreach( $this->voucher as $code ) : ?> |
23 | 23 | - <?= $code ?> |
24 | 24 | <?php endforeach ?> |
25 | -<?php else : ?> |
|
25 | +<?php else { |
|
26 | + : ?> |
|
26 | 27 | <?= wordwrap( strip_tags( $this->translate( 'client', 'Your voucher: ' ) . $this->voucher ) ) ?> |
27 | 28 | <?php endif ?> |
28 | 29 | |
29 | -<?php $price = $this->orderProductItem->getPrice(); $priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?> |
|
30 | +<?php $price = $this->orderProductItem->getPrice(); |
|
31 | +} |
|
32 | +$priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?> |
|
30 | 33 | <?php $value = sprintf( $priceFormat, $this->number( $price->getValue() + $price->getRebate(), $price->getPrecision() ), $priceCurrency ) ?> |
31 | 34 | <?= wordwrap( strip_tags( sprintf( $this->translate( 'client', 'The value of your voucher is %1$s', 'The value of your vouchers are %1$s', count( (array) $this->voucher ) ), $value ) ) ) ?> |
32 | 35 |