Subversion Repositories wpShopGermany4

Rev

Rev 7506 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7490 daniel 1
<?php
2
 
3
	/**
7787 daniel 4
	 * User: Daschmi (https://daschmi.de)
7490 daniel 5
	 * Date: 31.07.2019
6
	 * Time: 17:15
7
	 */
8
 
9
	namespace wpsg;
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 foreach ($arCalculation['coupon'] as $gs) { ?>
19
 
20
	<tr class="totalrow">
21
		<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="3"><?php echo __('Wertgutschein', 'wpsg'); ?> <?php echo ((wpsg_isSizedString($gs['code']))?'('.$gs['code'].')':''); ?>:</td>
22
		<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
23
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst"></td>
24
		<?php } ?>
25
		<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
26
		<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?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
		?></td>
37
	</tr>
38
 
39
<?php } ?>
40
 
41
<tr class="totalrow">
42
	<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="2"><?php echo __('Zu zahlen', 'wpsg'); ?>:</td>
43
	<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price">&nbsp;</td>
44
	<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
45
		<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst"></td>
46
	<?php } ?>
47
	<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
7506 daniel 48
	<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><strong><?php echo wpsg_ff($this->view['basket']['arCalculation']['sum']['topay_brutto'], $this->get_option('wpsg_currency')); ?></strong></td>
7490 daniel 49
</tr>
50