Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
4313 daniel 1
<?php
2
 
3
	/**
4
	 * Text E-Mail Template für die Daten der Anfrage
5
	 * wird von adminmail.phtml und customermail.phtml verwendet
6
	 */
7
 
8
?><?php if (sizeof($this->view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { $prod_col = 25; } else { $prod_col = 35; } ?>
9
 
10
<?php echo wpsg_pad_right(__('Pos', 'wpsg'), 5); ?>
11
<?php echo wpsg_pad_right(__('Produkt', 'wpsg'), $prod_col); ?>
12
<?php echo wpsg_pad_left(__('Stückpreis', 'wpsg').' ', 15); ?>
13
<?php if (sizeof($this->view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
14
<?php echo wpsg_pad_left(__('MwSt.', 'wpsg').' ', 10); ?>
15
<?php } ?>
16
<?php echo wpsg_pad_right(__('Anzahl', 'wpsg'), 6); ?>
17
<?php echo wpsg_pad_left(__('Summe', 'wpsg'), 15); ?>
18
----------------------------------------------------------------------------
19
<?php $i = 0; foreach ((array)$this->view['requestlist']['products'] as $product_index => $request_product) { $i ++; ?>
20
<?php echo wpsg_pad_right($i.'.', 5); ?>
21
<?php echo wpsg_pad_right(((wpsg_isSizedString($request_product['product_data']['detailname']))?$request_product['product_data']['detailname']:$request_product['product_data']['name']), $prod_col); ?>
22
<?php echo wpsg_pad_left(wpsg_ff($request_product['price'], $this->get_option('wpsg_currency')).' ', 15); ?>
23
<?php if (sizeof($this->view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
24
<?php echo wpsg_pad_left(wpsg_ff($request_product['product_data']['mwst_value'], '%').' ', 10); ?>
25
<?php } ?>
26
<?php echo wpsg_pad_left($request_product['amount'], 6); ?>
27
<?php echo wpsg_pad_left(wpsg_ff($request_product['price'] * $request_product['amount'], $this->get_option('wpsg_currency')), 15); ?>
28
<?php /* Variantenanzeige im Produkt BEGIN */ ?>
4317 daniel 29
<?php if ($this->hasMod('wpsg_mod_varianten') && $this->callMod('wpsg_mod_varianten', 'isVariantsProductKey', array($request_product['product_key']))) { ?>
4313 daniel 30
<?php echo wpsg_pad_right(' ', 5); ?>
31
<?php echo __('Variante', 'wpsg'); ?>: <?php echo wpsg_hspc($request_product['variantenInfo']['key']); ?>
4317 daniel 32
<?php } ?>
4313 daniel 33
<?php /* Variantenanzeige im Produkt ENDE */ ?>
34
<?php /* Gewichtsanzeige im Produkt BEGIN */ ?>
35
<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?>
36
 
37
<?php echo wpsg_pad_right(' ', 5); ?>
38
<?php echo __('Gewicht', 'wpsg'); ?>: <?php echo wpsg_ff($request_product['product_data']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
39
<?php } ?>
40
<?php /* Gewichtsanzeige im Produkt ENDE */ ?>
41
<?php /* Produktvariablen BEGIN */ ?>
42
<?php if ($this->hasMod('wpsg_mod_productvars') && wpsg_isSizedInt($this->get_option('wpsg_mod_request_productvars')) && wpsg_isSizedArray($request_product['pv'])) { ?>
43
<?php foreach ($request_product['product_data']['pv'] as $pv) { ?>
44
<?php echo wpsg_pad_right(' ', 5); ?>
45
<?php echo wpsg_hspc($pv['name']); ?>: <?php if ($pv['typ'] === '3') { ?>
46
<?php if (wpsg_isSizedInt($request_product['pv'][$pv['id']])) { ?><?php echo __('Ja', 'wpsg'); ?><?php } else { ?><?php echo __('Nein', 'wpsg'); ?><?php } ?>
47
<?php } else { ?>
48
<?php echo $request_product['pv'][$pv['id']]; ?>
49
<?php } ?>
50
<?php } ?>
51
<?php } ?>
52
<?php /* Produktvariablen ENDE */ ?>
53
<?php } ?>
54
 
55
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
56
<?php echo wpsg_pad_right(__('Gesamtpreis (Netto)', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')), 46); ?>
4317 daniel 57
<?php foreach ((array)$this->view['requestlist']['tax'] as $tax_key => $tax) { ?>
58
<?php echo wpsg_pad_right(wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg').':', $tax['name']), 45); ?><?php echo wpsg_pad_left(wpsg_ff($tax['tax_calc_value'], $this->get_option('wpsg_currency')), 31); ?>
59
<?php } ?>
4313 daniel 60
<?php echo wpsg_pad_right(__('Gesamtpreis (Brutto)', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')), 46); ?>
61
<?php } else { ?>
62
<?php echo wpsg_pad_right(__('Gesamtpreis (Brutto)', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')), 46); ?>
4317 daniel 63
<?php foreach ((array)$this->view['requestlist']['tax'] as $tax_key => $tax) { ?>
64
<?php echo wpsg_pad_right(wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg').':', $tax['name']), 45); ?><?php echo wpsg_pad_left(wpsg_ff($tax['tax_calc_value'], $this->get_option('wpsg_currency')), 31); ?>
65
<?php } ?>
4313 daniel 66
<?php echo wpsg_pad_right(__('Gesamtpreis (Netto)', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')), 46); ?>
67
<?php } ?>
68
<?php /* Gewichtsanzeige BEGIN */ ?>
69
<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPage'))) { ?>
70
 
71
<?php echo wpsg_pad_right(__('Gesamtgewicht', 'wpsg').': ', 26 + $prod_col); ?><?php echo wpsg_pad_left(wpsg_ff($this->view['requestlist']['sum']['weight'], $this->get_option('wpsg_mod_weight_unit')), 15); ?>
72
<?php } ?>
73
<?php /* Gewichtsanzeige ENDE */ ?>
4317 daniel 74
<?php /* Bestellvariablen BEGIN */ ?>
4313 daniel 75
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?>
76
<?php echo __('Zusätzliche Angaben', 'wpsg'); ?>:
77
 
78
<?php foreach ($this->view['orderVars'] as $ov_index => $ov) { ?>
79
<?php echo wpsg_pad_right(wpsg_hspc($ov['name']).': ', 30); ?><?php if ($ov['typ'] === '3') { ?>
80
<?php if (wpsg_isSizedInt($this->view['requestlist']['ov'][$ov['id']])) { ?><?php echo wpsg_pad_left(__('Ja', 'wpsg'), 46); ?><?php } else { ?><?php echo wpsg_pad_left(__('Nein', 'wpsg'), 46); ?><?php } ?>
81
<?php } else { ?>
82
<?php echo wpsg_pad_left($this->view['requestlist']['ov'][$ov['id']], 46); ?>
83
<?php } ?>
84
<?php } ?>
85
<?php } ?>
4317 daniel 86
<?php /* Bestellvariablen ENDE */ ?>
4313 daniel 87
 
4869 roger 88
 
4870 daniel 89
<?php if (wpsg_isSizedString($this->view['requestlist']['customer']['comment'])) { ?>
4869 roger 90
<?php echo __('Kommentar', 'wpsg'); ?>:
4870 daniel 91
<?php echo wpsg_getStr($this->view['requestlist']['customer']['comment']); ?>
4869 roger 92
<?php }?>
4313 daniel 93
<?php echo __('Kontaktdaten', 'wpsg'); ?>:
94
 
95
<?php echo wpsg_pad_right(__('Firma', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['firma']), 46); ?>
96
<?php echo wpsg_pad_right(__('Anrede', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['title']), 46); ?>
97
<?php echo wpsg_pad_right(__('Vorname', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['vname']), 46); ?>
98
<?php echo wpsg_pad_right(__('Name', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['name']), 46); ?>
99
<?php echo wpsg_pad_right(__('E-Mail', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['email']), 46); ?>
100
<?php echo wpsg_pad_right(__('Fax', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['fax']), 46); ?>
101
<?php echo wpsg_pad_right(__('Tel.', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['tel']), 46); ?>
6053 hartmut 102
<?php echo wpsg_pad_right(__('Straße', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['strasse']), 46); ?>
4313 daniel 103
<?php echo wpsg_pad_right(__('PLZ', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['plz']), 46); ?>
104
<?php echo wpsg_pad_right(__('Ort', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['ort']), 46); ?>
105
<?php echo wpsg_pad_right(__('UStIdNr.', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['ustidnr']), 46); ?>
4317 daniel 106
<?php /* Automatische Einbindung der benutzerdefinierten Felder BEGIN */ ?>
4313 daniel 107
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
108
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
109
<?php echo wpsg_pad_right(__($c['name'], 'wpsg').': ', 30); ?><?php if ($c['typ'] == '2') { ?>
110
<?php if (wpsg_isSizedInt($this->view['requestlist']['customer']['custom'][$c_id])) { ?><?php echo wpsg_pad_left(__('Ja', 'wpsg'), 46); ?><?php } else { ?><?php echo wpsg_pad_left(__('Nein', 'wpsg'), 46); ?><?php } ?>
111
<?php } else { ?>
112
<?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['custom'][$c_id]), 46); ?>
113
<?php } ?>
114
<?php } } ?>
115
<?php } ?>
116
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>