Subversion Repositories wpShopGermany4

Rev

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

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