1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Mail, die bei einer neuen Bestellung an den Admin geht
|
|
|
5 |
*/
|
|
|
6 |
|
3707 |
daniel |
7 |
$this->htmlMail = false;
|
7528 |
daniel |
8 |
|
8456 |
daniel |
9 |
$oCustomer = wpsg_customer::getInstance(intval($this->view['basket']['checkout']['k_id']));
|
7987 |
daniel |
10 |
|
1096 |
daniel |
11 |
?><?php echo __('Hallo Administrator,', 'wpsg'); ?>
|
|
|
12 |
|
|
|
13 |
<?php echo __('Eine neue Bestellung ist im Online-Shop eingegangen.', 'wpsg'); ?>
|
|
|
14 |
|
1328 |
david |
15 |
<?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 |
16 |
|
|
|
17 |
<?php echo __('Rechnungsadresse:', 'wpsg'); ?>
|
|
|
18 |
|
|
|
19 |
<?php echo wpsg_pad_right(__('Firma', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['firma']; ?>
|
|
|
20 |
<?php echo wpsg_pad_right(__('Name', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['vname']; ?> <?php echo $this->view['basket']['checkout']['name']; ?>
|
7247 |
daniel |
21 |
<?php echo wpsg_pad_right(__('Straße', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['strasse'].rtrim(' '.$this->view['basket']['checkout']['nr']); ?>
|
1242 |
david |
22 |
<?php if (trim($this->view['basket']['checkout']['ustidnr']) != "") { ?>
|
|
|
23 |
<?php echo wpsg_pad_right(__('USt.IdNr.', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['ustidnr']; ?>
|
|
|
24 |
<?php } ?>
|
|
|
25 |
|
6778 |
thomas |
26 |
<?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['plz']; ?> <?php echo $this->view['basket']['checkout']['ort']; ?>
|
|
|
27 |
<?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'])."' "); ?>
|
1242 |
david |
28 |
<?php echo wpsg_pad_right(__('Telefon', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['tel']; ?>
|
|
|
29 |
<?php echo wpsg_pad_right(__('Fax', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['fax']; ?>
|
8456 |
daniel |
30 |
<?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['email']; ?>
|
|
|
31 |
<?php $email_einvoice = $oCustomer->getEMailEInvoice(); if ($email_einvoice !== null) { ?>
|
|
|
32 |
<?php echo wpsg_pad_right(__('E-Mail (eRechnung)', 'wpsg').':', 35); ?><?php echo $email_einvoice; ?>
|
|
|
33 |
<?php } ?>
|
1242 |
david |
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']; ?>
|
7846 |
daniel |
39 |
<?php echo wpsg_pad_right(__('Straße', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['shipping_strasse'].' '.wpsg_getStr($this->view['basket']['checkout']['shipping_nr']); ?>
|
1242 |
david |
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 { ?>
|
|
|
45 |
|
1705 |
daniel |
46 |
<?php echo __('Rechnungs- /Lieferadresse:', 'wpsg'); ?>
|
1460 |
david |
47 |
|
1096 |
daniel |
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']); ?>
|
1067 |
daniel |
51 |
<?php if (trim($this->view['basket']['checkout']['ustidnr']) != "") { ?>
|
1096 |
daniel |
52 |
<?php echo wpsg_pad_right(__('USt.IdNr.', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['ustidnr']; ?>
|
1067 |
daniel |
53 |
<?php } ?>
|
|
|
54 |
|
1096 |
daniel |
55 |
<?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['plz']; ?> <?php echo $this->view['basket']['checkout']['ort']; ?>
|
3505 |
daniel |
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']; ?>
|
8456 |
daniel |
60 |
<?php $email_einvoice = $oCustomer->getEMailEInvoice(); if ($email_einvoice !== null) { ?>
|
|
|
61 |
<?php echo wpsg_pad_right(__('E-Mail (eRechnung)', 'wpsg').':', 35); ?><?php echo $email_einvoice; ?>
|
|
|
62 |
<?php } ?>
|
1242 |
david |
63 |
|
|
|
64 |
<?php } ?>
|
|
|
65 |
|
1096 |
daniel |
66 |
<?php echo wpsg_pad_right(__('Kundennummer', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['knr']; ?>
|
|
|
67 |
<?php echo wpsg_pad_right(__('Bestellnummer', 'wpsg').':', 35); ?><?php echo $this->view['basket']['checkout']['onr']; ?>
|
|
|
68 |
<?php echo wpsg_pad_right(__('Bestelldatum', 'wpsg').':', 35); ?><?php echo date("d.m.Y H:i:s", $this->view['basket']['checkout']['datum']); ?>
|
7506 |
daniel |
69 |
<?php echo wpsg_pad_right(__('Rechnungsbetrag', 'wpsg').':', 35); ?><?php echo wpsg_ff($this->view['basket']['arCalculation']['sum']['topay_brutto'], $this->get_option('wpsg_currency')); ?>
|
3024 |
daniel |
70 |
<?php if ($this->get_option('wpsg_kleinunternehmer')) { ?>
|
1096 |
daniel |
71 |
|
2637 |
david |
72 |
<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
|
3024 |
daniel |
73 |
|
2301 |
daniel |
74 |
<?php } else { ?>
|
|
|
75 |
<?php echo wpsg_pad_right(__('Steueranteil', 'wpsg').':', 35); ?><?php echo wpsg_ff($this->view['basket']['sum']['mwst'], $this->get_option('wpsg_currency')); ?>
|
|
|
76 |
<?php } ?>
|
|
|
77 |
|
1096 |
daniel |
78 |
<?php echo wpsg_pad_right(__('Versandart', 'wpsg').':', 35); ?><?php echo $this->arShipping[$this->view['basket']['checkout']['shipping']]['name']; ?>
|
|
|
79 |
<?php echo wpsg_pad_right(__('Zahlungsart', 'wpsg').':', 35); ?><?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?>
|
3648 |
daniel |
80 |
<?php $this->callMods('mail_payment'); ?>
|
7561 |
daniel |
81 |
|
3757 |
daniel |
82 |
<?php echo $this->render(WPSG_PATH_VIEW.'/mailtemplates/order.phtml'); ?>
|
1096 |
daniel |
83 |
|
1739 |
david |
84 |
<?php if ($this->view['basket']['checkout']['comment'] != '') { ?>
|
|
|
85 |
<?php echo __('Bestellkommentar', 'wpsg') ?>: <?php echo $this->view['basket']['checkout']['comment'] ?>
|
6283 |
hartmut |
86 |
<?php }?>
|