7486 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
7787 |
daniel |
4 |
* User: Daschmi (https://daschmi.de)
|
7486 |
daniel |
5 |
* Date: 20.07.2019
|
|
|
6 |
* Time: 15:47
|
|
|
7 |
*/
|
|
|
8 |
|
|
|
9 |
$arCalculation = &$this->view['basket']['arCalculation'];
|
|
|
10 |
|
|
|
11 |
if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto';
|
|
|
12 |
else $display_brutto_netto = 'netto';
|
|
|
13 |
|
|
|
14 |
?>
|
|
|
15 |
|
|
|
16 |
<?php foreach ($arCalculation['coupon'] as $gs) { ?>
|
|
|
17 |
|
7865 |
daniel |
18 |
<div class="basket_sum_row basket_sum_coupon">
|
7486 |
daniel |
19 |
<div class="title">
|
7588 |
daniel |
20 |
<a class="wpsg_basket_removelink" href="<?php echo str_replace('&', '&', $this->getRemoveLinkURL('voucher_'.$gs['id'])); ?>" title="<?php echo __('Wertgutschein aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass sie den Wertgutschein aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');"><img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" /></a>
|
7865 |
daniel |
21 |
<?php echo __('Wertgutschein', 'wpsg'); ?> <?php
|
|
|
22 |
|
|
|
23 |
$arInfo = [];
|
|
|
24 |
|
|
|
25 |
if (wpsg_isSizedString($gs['code'])) $arInfo[] = $gs['code'];
|
|
|
26 |
if (wpsg_isTrue($gs['partial'])) $arInfo[] = __('teilweise angerechnet', 'wpsg');
|
|
|
27 |
|
|
|
28 |
if (wpsg_isSizedArray($arInfo)) echo '('.implode(' / ', $arInfo).')';
|
|
|
29 |
|
|
|
30 |
?>
|
7486 |
daniel |
31 |
</div>
|
|
|
32 |
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
|
|
33 |
<div class="colgsr"><?php echo __('anteilig', 'wpsg'); ?></div>
|
|
|
34 |
<?php } ?>
|
|
|
35 |
<div class="value"><?php
|
|
|
36 |
|
7490 |
daniel |
37 |
echo wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
|
7486 |
daniel |
38 |
|
|
|
39 |
if (strpos($gs['set'], '%') !== false) {
|
7865 |
daniel |
40 |
|
7486 |
daniel |
41 |
echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($gs['set']), '%').')</span>';
|
|
|
42 |
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
?></div>
|
|
|
46 |
|
|
|
47 |
</div>
|
|
|
48 |
|
|
|
49 |
<?php } ?>
|
|
|
50 |
|
|
|
51 |
<div class="basket_sum_row">
|
|
|
52 |
<div class="title2">
|
|
|
53 |
<?php echo __('Zu zahlen', 'wpsg'); ?>:
|
|
|
54 |
</div>
|
|
|
55 |
<div class="sum">
|
|
|
56 |
<?php echo wpsg_ff($arCalculation['sum']['topay_brutto'], $this->get_option('wpsg_currency')); ?>
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
<div class="wpsg_spacer"></div>
|