Subversion Repositories wpShopGermany4

Rev

Rev 7500 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7486 daniel 1
<?php
2
 
3
	declare(strict_types=1);
4
 
5
	/**
6
	 * User: Daschmi (daschmi@daschmi.de)
7
	 * Date: 20.07.2019
8
	 * Time: 16:11
9
	 */
10
 
11
	$arCalculation = &$this->view['basket']['arCalculation'];
12
 
13
	if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto';
14
	else $display_brutto_netto = 'netto';
15
 
16
?>
17
 
18
<?php if (wpsg_isSizedArray($arCalculation['coupon'])) { ?>
19
 
20
	<?php foreach ($arCalculation['coupon'] as $gs) { ?>
21
 
22
		<div class="overview_sum_row">
23
			<div class="title">
24
				<?php echo __('Wertgutschein', 'wpsg'); ?> <?php echo ($gs['code'] != '')? '('.$gs['code'].')':'' ?>
25
			</div>
26
			<div class="value"><?php
27
 
28
					echo '-'.wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
29
 
30
					if (strpos($gs['set'], '%') !== false) {
31
 
32
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($gs['set']), '%').')</span>';
33
 
34
					}
35
 
36
				?></div>
37
		</div>
38
 
39
	<?php } ?>
40
 
41
<?php } ?>
42
 
43
<div class="wpsg_spacer"></div>
44
<div class="overview_sum_row">
45
	<div class="title2">
46
		<?php echo __('Zu zahlen', 'wpsg'); ?>:
47
	</div>
48
	<div class="sum">
49
		<?php echo wpsg_ff($arCalculation['topay_'.$display_brutto_netto], $this->get_option('wpsg_currency')); ?>
50
	</div>
51
</div>
52
<div class="wpsg_spacer"></div>