Line 16... |
Line 16... |
16 |
<?php echo wpsg_translate(__('BIC-/SWIFT-Code: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift'))); ?>
|
16 |
<?php echo wpsg_translate(__('BIC-/SWIFT-Code: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift'))); ?>
|
17 |
<br /><br />
|
17 |
<br /><br />
|
18 |
<?php echo wpsg_translate(__('Bitte als Betreff angeben: "#1#"', 'wpsg'), $this->view['wpsg_mod_prepayment']['subject']); ?>
|
18 |
<?php echo wpsg_translate(__('Bitte als Betreff angeben: "#1#"', 'wpsg'), $this->view['wpsg_mod_prepayment']['subject']); ?>
|
19 |
<br /><br />
|
19 |
<br /><br />
|
20 |
|
20 |
|
21 |
<?php if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
|
21 |
<?php return; if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
|
22 |
|
22 |
|
23 |
<?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
|
23 |
<?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
|
24 |
|
24 |
|
25 |
<?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
|
25 |
<?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
|
26 |
|
26 |
|
27 |
<!-- Girocode und QR-Rechnung -->
|
27 |
<!-- Girocode und QR-Rechnung -->
|
28 |
|
28 |
|
29 |
<?php
|
29 |
<?php
|
30 |
|
30 |
|
31 |
try {
|
31 |
try {
|
32 |
|
32 |
|
33 |
$img = array();
|
33 |
$img = array();
|
34 |
$img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 10, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
|
34 |
$img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 10, PhpGirocode::OUTPUT_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
|
35 |
|
35 |
|
36 |
|
- |
|
37 |
?>
|
36 |
?>
|
38 |
|
37 |
|
39 |
<div class="wpsg_mod_prepayment_info_wrap">
|
38 |
<div class="wpsg_mod_prepayment_info_wrap">
|
40 |
<?php foreach ($img as $i) { ?>
|
39 |
<?php foreach ($img as $i) { ?>
|
41 |
<div class="wpsg_mod_prepayment_info">
|
40 |
<div class="wpsg_mod_prepayment_info">
|
42 |
<div class="wpsg_mod_prepayment_info_left">
|
41 |
<div class="wpsg_mod_prepayment_info_left">
|
43 |
<div class="wpsg_mod_prepayment_info_left_qr-download">
|
42 |
<div class="wpsg_mod_prepayment_info_left_qr-download">
|
44 |
<h4><?php echo wpsg_translate(__($i['title'], $wpsg)); ?></h4>
|
43 |
<h4><?php echo wpsg_translate(__($i['title'], 'wpsg')); ?></h4>
|
45 |
<?php if (isset($i['filepath'])) { ?><a title="Downloadlink für die QR-Rechnung" target="_blank" href="<?php echo $this->callMod('wpsg_mod_prepayment', 'getFrontendLink', [$i['order_id']]); ?>"><i class="fa fa-download" aria-hidden="true"></i></a><?php } ?>
|
44 |
<?php if (isset($i['filepath'])) { ?><a title="Downloadlink für die QR-Rechnung" target="_blank" href="<?php echo $this->callMod('wpsg_mod_prepayment', 'getFrontendLink', [$i['order_id']]); ?>"><i class="fa fa-download" aria-hidden="true"></i></a><?php } ?>
|
46 |
</div>
|
45 |
</div>
|
47 |
<br />
|
46 |
<br />
|
48 |
<?php echo '<img class="wpsg_mod_prepayment_info_left_qrcodeimg" src="data:image/png;base64,'.$i['hash'].'" />'; ?>
|
47 |
<?php echo '<img class="wpsg_mod_prepayment_info_left_qrcodeimg" src="data:image/png;base64,'.$i['hash'].'" />'; ?>
|
49 |
<br />
|
48 |
<br />
|
50 |
<div class="wpsg_mod_prepayment_info_left_wrap">
|
49 |
<div class="wpsg_mod_prepayment_info_left_wrap">
|
51 |
<div class="wpsg_mod_prepayment_info_left_currency">
|
50 |
<div class="wpsg_mod_prepayment_info_left_currency">
|
52 |
<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
51 |
<h4><?php echo wpsg_translate(__('Währung', 'wpsg')); ?></h4>
|
53 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
52 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
54 |
</div>
|
53 |
</div>
|
55 |
<div class="wpsg_mod_prepayment_info_left_amount">
|
54 |
<div class="wpsg_mod_prepayment_info_left_amount">
|
56 |
<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
55 |
<h4><?php echo wpsg_translate(__('Betrag', 'wpsg')); ?></h4>
|
57 |
<?php echo sprintf("%.2f", $i['invoiceAmount']); ?>
|
56 |
<?php echo sprintf("%.2f", $i['invoiceAmount']); ?>
|
58 |
</div>
|
57 |
</div>
|
59 |
</div>
|
58 |
</div>
|
60 |
</div>
|
59 |
</div>
|
61 |
<div class="wpsg_mod_prepayment_info_right">
|
60 |
<div class="wpsg_mod_prepayment_info_right">
|
62 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
61 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', 'wpsg')); ?></h4>
|
63 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
62 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
64 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
63 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
65 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
64 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
66 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
65 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
67 |
<?php if (!empty($i['referenceNumber'])) { ?>
|
66 |
<?php if (!empty($i['referenceNumber'])) { ?>
|
68 |
<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
67 |
<h4><?php echo wpsg_translate(__('Referenz', 'wpsg')); ?></h4>
|
69 |
<?php echo $i['referenceNumber']; ?><br />
|
68 |
<?php echo $i['referenceNumber']; ?><br />
|
70 |
<?php } ?>
|
69 |
<?php } ?>
|
71 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
70 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', 'wpsg')); ?></h4>
|
72 |
<?php echo $i['additionalInformation']; ?><br />
|
71 |
<?php echo $i['additionalInformation']; ?><br />
|
73 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
72 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', 'wpsg')); ?></h4>
|
74 |
<?php echo $i['customerdata']['vname'].' '.$i['customerdata']['name']; ?><br />
|
73 |
<?php echo $i['customerdata']['vname'].' '.$i['customerdata']['name']; ?><br />
|
75 |
<?php echo $i['customerdata']['strasse'].' '.$i['customerdata']['nr']; ?><br />
|
74 |
<?php echo $i['customerdata']['strasse'].' '.$i['customerdata']['nr']; ?><br />
|
76 |
<?php echo $i['customerdata']['plz'].' '.$i['customerdata']['ort']; ?><br />
|
75 |
<?php echo $i['customerdata']['plz'].' '.$i['customerdata']['ort']; ?><br />
|
77 |
</div>
|
76 |
</div>
|
78 |
</div>
|
77 |
</div>
|
79 |
<?php } ?>
|
78 |
<?php } ?>
|
80 |
</div>
|
79 |
</div>
|
81 |
|
80 |
|
82 |
<?php } catch (\Exception $e) { } ?>
|
81 |
<?php } catch (\Exception $e) { wpsg_debug($e); } ?>
|
83 |
|
82 |
|
84 |
<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
|
83 |
<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
|
85 |
|
84 |
|
86 |
<!-- Girocode (EPC) -->
|
85 |
<!-- Girocode (EPC) -->
|
87 |
|
86 |
|
Line 96... |
Line 95... |
96 |
|
95 |
|
97 |
?>
|
96 |
?>
|
98 |
|
97 |
|
99 |
<div class="wpsg_mod_prepayment_girocode">
|
98 |
<div class="wpsg_mod_prepayment_girocode">
|
100 |
<div class="wpsg_mod_prepayment_girocode_left" >
|
99 |
<div class="wpsg_mod_prepayment_girocode_left" >
|
101 |
<h4><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
100 |
<h4><?php echo wpsg_translate(__($img['title'], 'wpsg')); ?></h4>
|
102 |
<br />
|
101 |
<br />
|
103 |
<?php echo '<img class="wpsg_mod_prepayment_girocode_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
102 |
<?php echo '<img class="wpsg_mod_prepayment_girocode_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
104 |
<br>
|
103 |
<br>
|
105 |
<div class="wpsg_mod_prepayment_girocode_left_wrap">
|
104 |
<div class="wpsg_mod_prepayment_girocode_left_wrap">
|
106 |
<div class="wpsg_mod_prepayment_girocode_left_currency">
|
105 |
<div class="wpsg_mod_prepayment_girocode_left_currency">
|
107 |
<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
106 |
<h4><?php echo wpsg_translate(__('Währung', 'wpsg')); ?></h4>
|
108 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
107 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
109 |
</div>
|
108 |
</div>
|
110 |
<div class="wpsg_mod_prepayment_girocode_left_amount">
|
109 |
<div class="wpsg_mod_prepayment_girocode_left_amount">
|
111 |
<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
110 |
<h4><?php echo wpsg_translate(__('Betrag', 'wpsg')); ?></h4>
|
112 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
111 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
113 |
</div>
|
112 |
</div>
|
114 |
</div>
|
113 |
</div>
|
115 |
</div>
|
114 |
</div>
|
116 |
<div class="wpsg_mod_prepayment_girocode_right">
|
115 |
<div class="wpsg_mod_prepayment_girocode_right">
|
117 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
116 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', 'wpsg')); ?></h4>
|
118 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
117 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
119 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
118 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
120 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
119 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
121 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
120 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
122 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
121 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
123 |
<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
122 |
<h4><?php echo wpsg_translate(__('Referenz', 'wpsg')); ?></h4>
|
124 |
<?php echo $img['referenceNumber']; ?><br />
|
123 |
<?php echo $img['referenceNumber']; ?><br />
|
125 |
<?php } ?>
|
124 |
<?php } ?>
|
126 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
125 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', 'wpsg')); ?></h4>
|
127 |
<?php echo $img['additionalInformation']; ?><br />
|
126 |
<?php echo $img['additionalInformation']; ?><br />
|
128 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
127 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', 'wpsg')); ?></h4>
|
129 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
128 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
130 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
129 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
131 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
130 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
132 |
</div>
|
131 |
</div>
|
133 |
</div>
|
132 |
</div>
|
Line 143... |
Line 142... |
143 |
|
142 |
|
144 |
?>
|
143 |
?>
|
145 |
|
144 |
|
146 |
<div class="wpsg_mod_prepayment_qrrechnung">
|
145 |
<div class="wpsg_mod_prepayment_qrrechnung">
|
147 |
<div class="wpsg_mod_prepayment_qrrechnung_left">
|
146 |
<div class="wpsg_mod_prepayment_qrrechnung_left">
|
148 |
<h4><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
147 |
<h4><?php echo wpsg_translate(__($img['title'], 'wpsg')); ?></h4>
|
149 |
<br />
|
148 |
<br />
|
150 |
<?php echo '<img class="wpsg_mod_prepayment_qrrechnung_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
149 |
<?php echo '<img class="wpsg_mod_prepayment_qrrechnung_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
151 |
<br>
|
150 |
<br>
|
152 |
<div class="wpsg_mod_prepayment_qrrechnung_left_wrap">
|
151 |
<div class="wpsg_mod_prepayment_qrrechnung_left_wrap">
|
153 |
<div class="wpsg_mod_prepayment_qrrechnung_left_currency">
|
152 |
<div class="wpsg_mod_prepayment_qrrechnung_left_currency">
|
154 |
<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
153 |
<h4><?php echo wpsg_translate(__('Währung', 'wpsg')); ?></h4>
|
155 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
154 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
156 |
</div>
|
155 |
</div>
|
157 |
<div class="wpsg_mod_prepayment_qrrechnung_left_amount">
|
156 |
<div class="wpsg_mod_prepayment_qrrechnung_left_amount">
|
158 |
<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
157 |
<h4><?php echo wpsg_translate(__('Betrag', 'wpsg')); ?></h4>
|
159 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
158 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
160 |
</div>
|
159 |
</div>
|
161 |
</div>
|
160 |
</div>
|
162 |
</div>
|
161 |
</div>
|
163 |
<div class="wpsg_mod_prepayment_qrrechnung_right">
|
162 |
<div class="wpsg_mod_prepayment_qrrechnung_right">
|
164 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
163 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', 'wpsg')); ?></h4>
|
165 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
164 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
166 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
165 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
167 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
166 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
168 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
167 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
169 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
168 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
170 |
<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
169 |
<h4><?php echo wpsg_translate(__('Referenz', 'wpsg')); ?></h4>
|
171 |
<?php echo $img['referenceNumber']; ?><br />
|
170 |
<?php echo $img['referenceNumber']; ?><br />
|
172 |
<?php } ?>
|
171 |
<?php } ?>
|
173 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
172 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', 'wpsg')); ?></h4>
|
174 |
<?php echo $img['additionalInformation']; ?><br />
|
173 |
<?php echo $img['additionalInformation']; ?><br />
|
175 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
174 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', 'wpsg')); ?></h4>
|
176 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
175 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
177 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
176 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
178 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
177 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
179 |
</div>
|
178 |
</div>
|
180 |
</div>
|
179 |
</div>
|