Subversion Repositories wpShopGermany4

Rev

Rev 7574 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7490 daniel 1
<?php
2
 
3
	if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto';
4
	else $display_brutto_netto = 'netto';
3757 daniel 5
 
7490 daniel 6
?><?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { $prod_col = 25; } else { $prod_col = 35; } ?>
7
 
3757 daniel 8
<?php echo wpsg_pad_right(__('Pos', 'wpsg'), 5); ?>
9
<?php echo wpsg_pad_right(__('Produkt', 'wpsg'), $prod_col); ?>
10
<?php echo wpsg_pad_left(__('Stückpreis', 'wpsg').' ', 15); ?>
11
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
12
<?php echo wpsg_pad_left(__('MwSt.', 'wpsg').' ', 10); ?>
13
<?php } ?>
14
<?php echo wpsg_pad_right(__('Anzahl', 'wpsg'), 6); ?>
15
<?php echo wpsg_pad_left(__('Summe', 'wpsg'), 15); ?>
16
----------------------------------------------------------------------------
4093 daniel 17
<?php $i = 0; foreach ((array)$this->view['basket']['produkte'] as $product_index => $p) { $i ++; ?>
3757 daniel 18
<?php echo wpsg_pad_right($i.'.', 5); ?>
4440 daniel 19
<?php echo wpsg_pad_right(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name'])), $prod_col); ?>
3757 daniel 20
<?php echo wpsg_pad_left(wpsg_ff($p['preis'], $this->get_option('wpsg_currency')).' ', 15); ?>
21
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
22
<?php echo wpsg_pad_left(wpsg_ff($p['mwst_value'], '%').' ', 10); ?>
23
<?php } ?>
24
<?php echo wpsg_pad_left($p['menge'], 6); ?>
25
<?php echo wpsg_pad_left(wpsg_ff($p['preis'] * $p['menge'], $this->get_option('wpsg_currency')), 15); ?>
26
<?php echo wpsg_pad_left(__('Art. Nr.:', 'wpsg').' ', 15); ?><?php echo wpsg_pad_right($p['anr'], ($prod_col - strlen($p['anr']))); ?>
27
<?php $this->callMods('mail_row', array($i, $p)); ?>
4132 daniel 28
<?php if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
29
<?php echo wpsg_pad_left(' ', 5); ?><?php echo __('Mögliche Versandarten', 'wpsg').': '; ?>
30
<?php $i = 0; foreach ($p['order_allowedshipping'] as $shipping) { $i ++; ?>
31
<?php echo $this->getShippingName($shipping); ?>
32
<?php if ($i < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
33
<?php } ?>
3757 daniel 34
<?php } ?>
4132 daniel 35
<?php } ?>
4051 daniel 36
 
7490 daniel 37
<?php if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) {
38
 
39
	foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) {
40
 
41
		echo wpsg_pad_right(' ', 5);
42
		echo wpsg_pad_right(wpsg_translate(__('Gutschein (#1#)', 'wpsg'), $gs['code']), $prod_col);
43
		echo wpsg_pad_left(wpsg_ff($gs['set'], ((strpos($gs['set'], '%') !== false)?'%':$this->get_option('wpsg_currency'))).' ', 15);
44
 
45
		if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') {
46
 
47
			echo wpsg_pad_left(__('anteilig', 'wpsg').' ', 10);
48
 
49
		}
50
 
51
		echo wpsg_pad_left('1', 6);
52
		echo wpsg_pad_left(wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency')), 15);
53
		echo "\r\n";
54
 
55
	}
56
 
57
} ?>
3757 daniel 58
<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?>
59
     <?php echo wpsg_pad_right(__('Abzüglich Rabatt', 'wpsg'), 40); ?>
60
<?php echo wpsg_pad_left('-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')), 31); ?>
61
<?php } ?>
62
<?php echo wpsg_pad_left('', 5); ?>
63
<?php echo wpsg_pad_right(__('Zwischensumme:', 'wpsg'), 40); ?>
64
<?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis'], $this->get_option('wpsg_currency')), 31); ?>
65
<?php if ($this->view['basket']['sum']['preis_shipping'] != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
3778 daniel 66
     <?php echo wpsg_pad_right(__('Versandkosten:', 'wpsg'), 40); ?>
3757 daniel 67
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
68
<?php if (!wpsg_isSizedInt($this->arShipping[$this->view['basket']['checkout']['payment']]['mwst'])) { ?>
69
<?php echo wpsg_pad_left(__('Anteilig', 'wpsg').' ', 10); ?>
70
<?php } else { ?>
71
<?php echo wpsg_pad_left(wpsg_ff($this->arShipping[$this->view['basket']['checkout']['shipping']]['mwst_value'], '% '), 10); ?>
72
<?php } ?>
73
<?php } else { ?>          <?php } ?>
74
<?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency')), 21); ?>
75
<?php } ?>
4132 daniel 76
<?php if (wpsg_isSizedArray($this->view['basket']['shipping']['methods'])) { ?>
77
<?php foreach ($this->view['basket']['shipping']['methods'] as $shipping) { ?>
78
<?php echo wpsg_pad_left(' ', 10); ?><?php echo wpsg_pad_right($this->getShippingName($shipping), 36); ?>
79
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
80
<?php if ($this->view['basket']['shipping'][$shipping]['tax_rata'] == 1) { ?>
81
<?php echo wpsg_pad_right(__('Anteilig', 'wpsg'), 10); ?>
82
<?php } else { ?>
83
<?php echo wpsg_pad_right(wpsg_ff($this->view['basket']['shipping'][$shipping]['mwst'], '%'), 10); ?>
84
<?php } ?>
85
<?php } ?>
86
<?php if ($this->get_option('wpsg_preisangaben_frontend') == WPSG_NETTO) { ?>
87
<?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['shipping'][$shipping]['preis_shipping_netto'], $this->get_option('wpsg_currency')), 20); ?>
88
<?php } else { ?>
89
<?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['shipping'][$shipping]['preis_shipping_brutto'], $this->get_option('wpsg_currency')), 20); ?>
90
<?php } ?>
91
<?php } ?>
92
<?php } ?>
3757 daniel 93
<?php if ($this->view['basket']['sum']['preis_payment'] != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
3778 daniel 94
     <?php echo wpsg_pad_right(__('Zahlungsart:', 'wpsg'), 40); ?>
3757 daniel 95
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
96
<?php if (!wpsg_isSizedInt($this->arPayment[$this->view['basket']['checkout']['payment']]['mwst'])) { ?>
97
<?php echo wpsg_pad_left(__('Anteilig', 'wpsg').' ', 10); ?>
98
<?php } else { ?>
99
<?php echo wpsg_pad_left(wpsg_ff($this->arPayment[$this->view['basket']['checkout']['payment']]['mwst_value'], '% '), 10); ?>
100
<?php } ?>
101
<?php } else { ?>          <?php } ?>
102
<?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency')), 21); ?>
103
<?php } ?>
104
<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
105
 
106
     <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
107
 
108
<?php } else { ?>
109
<?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
110
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
111
     <?php echo wpsg_pad_right(wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']), 47); ?>
112
<?php } else { ?>
113
     <?php echo wpsg_pad_right(wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $mwst['name']), 47); ?>
114
<?php } ?>
4132 daniel 115
<?php echo wpsg_pad_left(wpsg_ff($mwst['sum'], $this->get_option('wpsg_currency')), 24); ?>
3757 daniel 116
<?php } ?>
117
<?php } ?>
3778 daniel 118
 
3757 daniel 119
<?php echo wpsg_pad_left(' ', 61); ?>---------------
3778 daniel 120
     <?php echo wpsg_pad_right(__('Gesamtpreis:', 'wpsg'), 37); ?>
7490 daniel 121
<?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')), 34); ?>
7574 daniel 122
<?php $this->callMods('mail_order_end', [&$this->view['basket']['arCalculation'], false]); ?>
7867 daniel 123
 
124
<?php $this->callMods('mail_aftercalculation', array(&$this->view['order']['id'])); ?>