1096 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
1699 |
david |
4 |
* Template für die Mail, die bei einer neuen Bestellung an den Kunde geht
|
1096 |
daniel |
5 |
*/
|
|
|
6 |
|
3707 |
daniel |
7 |
$this->htmlMail = false;
|
7234 |
daniel |
8 |
|
|
|
9 |
$arPflicht = $this->loadPflichtFeldDaten();
|
|
|
10 |
$arTitle = explode('|', $arPflicht['anrede_auswahl']);
|
|
|
11 |
|
1096 |
daniel |
12 |
//wpsg_debug($this->view);
|
|
|
13 |
|
7234 |
daniel |
14 |
?><?php echo wpsg_translate(__('Hallo #1# #2# #3#,', 'wpsg'), @$arTitle[$this->view['basket']['checkout']['title']], $this->view['basket']['checkout']['vname'], $this->view['basket']['checkout']['name']); ?>
|
1096 |
daniel |
15 |
|
3648 |
daniel |
16 |
<?php echo __('vielen Dank für Ihre Bestellung.', 'wpsg'); ?>
|
1242 |
david |
17 |
|
1328 |
david |
18 |
<?php if ($this->hasMod('wpsg_mod_shippingadress') && $this->callMod('wpsg_mod_shippingadress', 'check_different_shippingadress', array('k_id' => $this->view['basket']['checkout']['k_id'], 'o_id' => $this->view['o_id']))) { ?>
|
1242 |
david |
19 |
|
|
|
20 |
<?php echo __('Rechnungsadresse:', 'wpsg'); ?>
|
|
|
21 |
|
|
|
22 |
<?php echo wpsg_pad_right(__('Firma', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['firma']; ?>
|
|
|
23 |
<?php echo wpsg_pad_right(__('Name', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['vname']; ?> <?php echo $this->view['basket']['checkout']['name']; ?>
|
7247 |
daniel |
24 |
<?php echo wpsg_pad_right(__('Straße', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['strasse'].rtrim(' '.$this->view['basket']['checkout']['nr']); ?>
|
1242 |
david |
25 |
<?php echo wpsg_pad_right(__('Land', 'wpsg').':', 35); ?><?php echo $this->db->fetchOne("SELECT `name` FROM `".WPSG_TBL_LAND."` WHERE `id` = '".wpsg_q($this->view['basket']['checkout']['land'])."' "); ?>
|
|
|
26 |
<?php if (trim($this->view['basket']['checkout']['ustidnr']) != "") { ?>
|
|
|
27 |
<?php echo wpsg_pad_right(__('USt.IdNr.', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['ustidnr']; ?>
|
|
|
28 |
<?php } ?>
|
|
|
29 |
|
|
|
30 |
<?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['plz']; ?> <?php echo $this->view['basket']['checkout']['ort']; ?>
|
|
|
31 |
<?php echo wpsg_pad_right(__('Telefon', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['tel']; ?>
|
|
|
32 |
<?php echo wpsg_pad_right(__('Fax', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['fax']; ?>
|
|
|
33 |
<?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['email']; ?>
|
|
|
34 |
|
|
|
35 |
<?php echo __('Lieferadresse:', 'wpsg'); ?>
|
|
|
36 |
|
|
|
37 |
<?php echo wpsg_pad_right(__('Firma', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['shipping_firma']; ?>
|
1618 |
david |
38 |
<?php echo wpsg_pad_right(__('Name', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['shipping_vname']; ?> <?php echo $this->view['basket']['checkout']['shipping_name']; ?>
|
1242 |
david |
39 |
<?php echo wpsg_pad_right(__('Straße', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['shipping_strasse']; ?>
|
|
|
40 |
<?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['shipping_plz']; ?> <?php echo $this->view['basket']['checkout']['shipping_ort']; ?>
|
|
|
41 |
|
|
|
42 |
<?php echo wpsg_pad_right(__('Land', 'wpsg').':', 35); ?><?php echo $this->db->fetchOne("SELECT `name` FROM `".WPSG_TBL_LAND."` WHERE `id` = '".wpsg_q($this->view['basket']['checkout']['shipping_land'])."' "); ?>
|
|
|
43 |
|
|
|
44 |
<?php } else { ?>
|
1096 |
daniel |
45 |
|
6356 |
hartmut |
46 |
<?php echo __('Rechnungs-/Lieferadresse:', 'wpsg'); ?>
|
1096 |
daniel |
47 |
|
|
|
48 |
<?php echo wpsg_pad_right(__('Firma', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['firma']; ?>
|
|
|
49 |
<?php echo wpsg_pad_right(__('Name', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['vname']; ?> <?php echo $this->view['basket']['checkout']['name']; ?>
|
7247 |
daniel |
50 |
<?php echo wpsg_pad_right(__('Straße', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['strasse'].rtrim(' '.$this->view['basket']['checkout']['nr']); ?>
|
1096 |
daniel |
51 |
<?php if (trim($this->view['basket']['checkout']['ustidnr']) != "") { ?>
|
|
|
52 |
<?php echo wpsg_pad_right(__('USt.IdNr.', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['ustidnr']; ?>
|
|
|
53 |
<?php } ?>
|
|
|
54 |
|
|
|
55 |
<?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['plz']; ?> <?php echo $this->view['basket']['checkout']['ort']; ?>
|
3440 |
roger |
56 |
<?php echo wpsg_pad_right(__('Land', 'wpsg').':', 35); ?><?php echo $this->db->fetchOne("SELECT `name` FROM `".WPSG_TBL_LAND."` WHERE `id` = '".wpsg_q($this->view['basket']['checkout']['land'])."' "); ?>
|
1096 |
daniel |
57 |
<?php echo wpsg_pad_right(__('Telefon', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['tel']; ?>
|
|
|
58 |
<?php echo wpsg_pad_right(__('Fax', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['fax']; ?>
|
|
|
59 |
<?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['email']; ?>
|
|
|
60 |
|
1242 |
david |
61 |
<?php } ?>
|
|
|
62 |
|
7437 |
thomas |
63 |
<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
|
|
|
64 |
<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
|
|
|
65 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
|
|
66 |
<div class="wpsg_checkoutblock">
|
|
|
67 |
<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
|
|
|
68 |
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
|
|
|
69 |
</label>
|
|
|
70 |
<?php if ($c['typ'] == '0') { // Textfeld ?>
|
|
|
71 |
<input class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[profil][custom][<?php echo $c_id; ?>]" type="text" value="<?php echo wpsg_hspc($this->view['data']['custom'][$c_id]); ?>" />
|
|
|
72 |
<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
|
|
|
73 |
<select class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[profil][custom][<?php echo $c_id; ?>]">
|
|
|
74 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
|
|
75 |
<?php foreach ((array)$arAuswahl as $a) { ?>
|
|
|
76 |
<option value="<?php echo wpsg_hspc($a); ?>" <?php echo (($a == $this->view['data']['custom'][$c_id])?'selected="selected"':''); ?>><?php echo wpsg_hspc($a); ?></option>
|
|
|
77 |
<?php } ?>
|
|
|
78 |
</select>
|
|
|
79 |
<?php } else if ($c['typ'] == '2') { // Checkbox ?>
|
|
|
80 |
<input type="hidden" name="wpsg[profil][custom][<?php echo $c_id; ?>]" value="0" />
|
|
|
81 |
<input id="wpsg_cv_<?php echo $c_id; ?>" class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> checkbox" type="checkbox" value="1" name="wpsg[profil][custom][<?php echo $c_id; ?>]" value="1" <?php echo wpsg_hspc(($this->view['data']['custom'][$c_id] == '1')?'checked="checked"':''); ?> />
|
|
|
82 |
<span class="wpsg_clear"></span>
|
|
|
83 |
<?php } ?>
|
|
|
84 |
</div>
|
|
|
85 |
<?php } } ?>
|
|
|
86 |
<?php } ?>
|
|
|
87 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
|
|
88 |
<div class="wpsg_clear"></div>
|
|
|
89 |
|
1096 |
daniel |
90 |
<?php echo wpsg_pad_right(__('Kundennummer', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['knr']; ?>
|
|
|
91 |
<?php echo wpsg_pad_right(__('Bestellnummer', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['onr']; ?>
|
6343 |
thomas |
92 |
<?php echo wpsg_pad_right(__('Bestelldatum', 'wpsg').':', 35); ?><?php echo date("d.m.Y H:i:s", $this->view['basket']['checkout']['datum']); ?>
|
3536 |
daniel |
93 |
<?php echo wpsg_pad_right(__('Rechnungsbetrag', 'wpsg').':', 35); ?><?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
|
1880 |
david |
94 |
<?php if ($this->get_option('wpsg_kleinunternehmer')) { ?>
|
3024 |
daniel |
95 |
|
2637 |
david |
96 |
<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
|
3024 |
daniel |
97 |
|
1880 |
david |
98 |
<?php } else { ?>
|
1096 |
daniel |
99 |
<?php echo wpsg_pad_right(__('Steueranteil', 'wpsg').':', 35); ?><?php echo wpsg_ff($this->view['basket']['sum']['mwst'], $this->get_option('wpsg_currency')); ?>
|
1880 |
david |
100 |
<?php } ?>
|
1096 |
daniel |
101 |
|
1510 |
daniel |
102 |
<?php echo wpsg_pad_right(__('Versandart', 'wpsg').':', 35); ?><?php echo $this->arShipping[$this->view['basket']['checkout']['shipping']]['name']; ?>
|
3648 |
daniel |
103 |
<?php $this->callMods('mail_shipping'); ?>
|
1096 |
daniel |
104 |
<?php echo wpsg_pad_right(__('Zahlungsart', 'wpsg').':', 35); ?><?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?>
|
3648 |
daniel |
105 |
<?php $this->callMods('mail_payment'); ?>
|
1096 |
daniel |
106 |
|
|
|
107 |
<?php echo __('Bestellung', 'wpsg'); ?>:
|
3757 |
daniel |
108 |
<?php echo $this->render(WPSG_PATH_VIEW.'/mailtemplates/order.phtml'); ?>
|
1096 |
daniel |
109 |
|
1739 |
david |
110 |
<?php if ($this->view['basket']['checkout']['comment'] != '') { ?>
|
3778 |
daniel |
111 |
|
1739 |
david |
112 |
<?php echo __('Bestellkommentar', 'wpsg') ?>: <?php echo $this->view['basket']['checkout']['comment'] ?>
|
3778 |
daniel |
113 |
|
|
|
114 |
<?php } ?>
|
1739 |
david |
115 |
|
1096 |
daniel |
116 |
<?php echo __('Wir bedanken uns fuer Ihre Bestellung.', 'wpsg'); ?>
|
|
|
117 |
|
|
|
118 |
<?php echo __('Bitte beachten Sie, dass es sich bei dieser E-Mail um eine Bestellbestaetigung und keine bindende Auftragsbestaetigung handelt. Preisirrtuemer sind leider nicht vollstaendig auszuschliessen.', 'wpsg'); ?>
|
|
|
119 |
|
|
|
120 |
<?php echo __('Es gelten unsere Allgemeinen Geschaeftsbedingungen (AGB).', 'wpsg'); ?>
|
|
|
121 |
|
1116 |
daniel |
122 |
<?php echo $this->getURL(wpsg_ShopController::URL_AGB); ?>
|
1096 |
daniel |
123 |
|
1662 |
daniel |
124 |
<?php $this->CallMods('kundenmail_afteragb', array(&$this->view['basket']['checkout']['o_id'])); ?>
|
1327 |
daniel |
125 |
-- <?php echo __("Widerrufsbelehrung", "wpsg"); ?> --
|
1096 |
daniel |
126 |
|
1327 |
daniel |
127 |
<?php if (trim($this->get_option("wpsg_ps_mailwiderruf")) != "") { ?>
|
|
|
128 |
<?php echo $this->get_option("wpsg_ps_mailwiderruf"); ?>
|
|
|
129 |
<?php } else { ?>
|
|
|
130 |
<?php echo __("...hier steht der Text zum Widerrufsrecht...", "wpsg"); ?>
|
|
|
131 |
<?php } ?>
|
|
|
132 |
|
|
|
133 |
-- <?php echo __("Ende der Widerrufsbelehrung", "wpsg"); ?> --
|
1096 |
daniel |
134 |
|
1327 |
daniel |
135 |
<?php echo __('Mit freundlichen Grüßen', 'wpsg'); ?>
|
|
|
136 |
|
3659 |
daniel |
137 |
<?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?>
|