Line 5... |
Line 5... |
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
//wpsg_debug($this->view['wpsg_mod_prepayment']['subject']);
|
7 |
//wpsg_debug($this->view['wpsg_mod_prepayment']['subject']);
|
8 |
|
8 |
|
9 |
?>
|
9 |
?>
|
- |
|
10 |
|
10 |
<?php echo wpsg_translate(__('Sie haben die Zahlungsart "Vorkasse" gewählt. Überweisen Sie daher den Rechnungsbetrag von #1# auf folgendes Konto:', 'wpsg'), wpsg_ff($this->view['basket']['arCalculation']['sum']['topay_brutto'], $this->get_option('wpsg_currency'))); ?>
|
11 |
<?php echo wpsg_translate(__('Sie haben die Zahlungsart "Vorkasse" gewählt. Überweisen Sie daher den Rechnungsbetrag von #1# auf folgendes Konto:', 'wpsg'), wpsg_ff($this->view['basket']['arCalculation']['sum']['topay_brutto'], $this->get_option('wpsg_currency'))); ?>
|
11 |
<br /><br />
|
12 |
<br /><br />
|
12 |
<?php echo wpsg_translate(__('Kontoinhaber: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber'))); ?><br />
|
13 |
<?php echo wpsg_translate(__('Kontoinhaber: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber'))); ?><br />
|
13 |
<?php echo wpsg_translate(__('IBAN: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban'))); ?><br />
|
14 |
<?php echo wpsg_translate(__('IBAN: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban'))); ?><br />
|
14 |
<?php echo wpsg_translate(__('Bank: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank'))); ?><br />
|
15 |
<?php echo wpsg_translate(__('Bank: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank'))); ?><br />
|
15 |
<?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'))); ?>
|
16 |
<br /><br />
|
17 |
<br /><br />
|
17 |
<?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 />
|
18 |
|
20 |
|
19 |
<?php if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
|
21 |
<?php if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
|
20 |
|
22 |
|
21 |
<p>
|
- |
|
22 |
<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
|
- |
|
23 |
</p>
|
- |
|
24 |
|
- |
|
25 |
<?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
|
23 |
<?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
|
26 |
|
24 |
|
27 |
<?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
|
25 |
<?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
|
28 |
|
26 |
|
29 |
<!-- QR-CODE für EPC und SWISS -->
|
27 |
<!-- Girocode und QR-Rechnung -->
|
30 |
|
28 |
|
31 |
<?php
|
29 |
<?php
|
32 |
|
30 |
|
33 |
$img = array();
|
31 |
$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']));
|
32 |
$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']));
|
- |
|
33 |
|
- |
|
34 |
?>
|
35 |
|
35 |
|
36 |
echo '<div style="display: flex; justify-content: center; flex; gap: 20px;">';
|
36 |
<div style="display: flex; justify-content: center; flex-direction: column; gap: 20px;">
|
37 |
foreach ($img as $i) {
|
37 |
<?php foreach ($img as $i) { ?>
|
- |
|
38 |
<div class="wpsg_mod_prepayment_info" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
|
- |
|
39 |
<div class="wpsg_mod_prepayment_info_left" style="display: flex; flex-direction: column;">
|
- |
|
40 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__($i['title'], $wpsg)); ?></h4>
|
- |
|
41 |
<br />
|
- |
|
42 |
<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$i['hash'].'" />'; ?>
|
38 |
|
43 |
<br>
|
- |
|
44 |
<div style="display: flex; gap: 25%;">
|
- |
|
45 |
<div style="display: flex; flex-direction: column;">
|
- |
|
46 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
- |
|
47 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
39 |
echo '<div>';
|
48 |
</div>
|
- |
|
49 |
<div style="display: flex; flex-direction: column;">
|
40 |
echo '<h4 style="margin-bottom: -15px; font-weight: bold;">'.$i['title'].':'.'<h4>';
|
50 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
- |
|
51 |
<?php echo sprintf("%.2f", $i['invoiceAmount']); ?>
|
- |
|
52 |
</div>
|
- |
|
53 |
</div>
|
- |
|
54 |
</div>
|
- |
|
55 |
<div class="wpsg_mod_prepayment_info_right" style="display: flex; flex-direction: column;">
|
- |
|
56 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
- |
|
57 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
- |
|
58 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
- |
|
59 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
41 |
echo '<div class="order_done_qrcode"><img style="width: 240px; height:240px; border: solid 1px; padding: 25px;" src="data:image/png;base64,'.$i['hash'].'" /></div>';
|
60 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
- |
|
61 |
<?php if (!empty($i['referenceNumber'])) { ?>
|
- |
|
62 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
- |
|
63 |
<?php echo $i['referenceNumber']; ?><br />
|
- |
|
64 |
<?php } ?>
|
- |
|
65 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
- |
|
66 |
<?php echo $i['additionalInformation']; ?><br />
|
- |
|
67 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
- |
|
68 |
<?php echo $i['customerdata']['vname'].' '.$i['customerdata']['name']; ?><br />
|
- |
|
69 |
<?php echo $i['customerdata']['strasse'].' '.$i['customerdata']['nr']; ?><br />
|
- |
|
70 |
<?php echo $i['customerdata']['plz'].' '.$i['customerdata']['ort']; ?><br />
|
42 |
echo '</div>';
|
71 |
</div>
|
43 |
|
72 |
</div>
|
44 |
}
|
73 |
<?php } ?>
|
45 |
echo '</div>'
|
74 |
</div>
|
46 |
|
75 |
|
47 |
?>
|
- |
|
48 |
|
76 |
|
49 |
<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
|
77 |
<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
|
50 |
|
78 |
|
51 |
<!-- QR-CODE für EPC -->
|
79 |
<!-- Girocode (EPC) -->
|
- |
|
80 |
|
- |
|
81 |
<p>
|
- |
|
82 |
<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
|
- |
|
83 |
</p>
|
52 |
|
84 |
|
53 |
<?php
|
85 |
<?php
|
54 |
|
86 |
|
55 |
$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')));
|
87 |
$img = array();
|
56 |
|
- |
|
57 |
echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
|
88 |
$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']));
|
58 |
|
89 |
|
59 |
?>
|
90 |
?>
|
60 |
|
91 |
|
- |
|
92 |
<div class="wpsg_mod_prepayment_girocode" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
|
- |
|
93 |
<div class="wpsg_mod_prepayment_girocode_left" style="display: flex; flex-direction: column;">
|
- |
|
94 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
- |
|
95 |
<br />
|
- |
|
96 |
<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
- |
|
97 |
<br>
|
- |
|
98 |
<div style="display: flex; gap: 25%;">
|
- |
|
99 |
<div style="display: flex; flex-direction: column;">
|
- |
|
100 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
- |
|
101 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
- |
|
102 |
</div>
|
- |
|
103 |
<div style="display: flex; flex-direction: column;">
|
- |
|
104 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
- |
|
105 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
- |
|
106 |
</div>
|
- |
|
107 |
</div>
|
- |
|
108 |
</div>
|
- |
|
109 |
<div class="wpsg_mod_prepayment_girocode_right" style="display: flex; flex-direction: column;">
|
- |
|
110 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
- |
|
111 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
- |
|
112 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
- |
|
113 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
- |
|
114 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
- |
|
115 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
- |
|
116 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
- |
|
117 |
<?php echo $img['referenceNumber']; ?><br />
|
- |
|
118 |
<?php } ?>
|
- |
|
119 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
- |
|
120 |
<?php echo $img['additionalInformation']; ?><br />
|
- |
|
121 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
- |
|
122 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
- |
|
123 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
- |
|
124 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
- |
|
125 |
</div>
|
- |
|
126 |
</div>
|
- |
|
127 |
|
61 |
<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { ?>
|
128 |
<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { ?>
|
62 |
|
129 |
|
63 |
<!-- QR-CODE für SWISS -->
|
130 |
<!-- QR-Rechnung (SWISS) -->
|
64 |
|
131 |
|
65 |
<?php
|
132 |
<?php
|
66 |
|
133 |
|
- |
|
134 |
$img = array();
|
67 |
$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']));
|
135 |
$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']));
|
68 |
|
136 |
|
69 |
echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
|
- |
|
70 |
|
- |
|
71 |
?>
|
137 |
?>
|
- |
|
138 |
|
- |
|
139 |
<div class="wpsg_mod_prepayment_qrrechnung" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
|
- |
|
140 |
<div class="wpsg_mod_prepayment_qrrechnung_left" style="display: flex; flex-direction: column;">
|
- |
|
141 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
- |
|
142 |
<br />
|
- |
|
143 |
<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
- |
|
144 |
<br>
|
- |
|
145 |
<div style="display: flex; gap: 25%;">
|
- |
|
146 |
<div style="display: flex; flex-direction: column;">
|
- |
|
147 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
- |
|
148 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
- |
|
149 |
</div>
|
- |
|
150 |
<div style="display: flex; flex-direction: column;">
|
- |
|
151 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
- |
|
152 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
- |
|
153 |
</div>
|
- |
|
154 |
</div>
|
- |
|
155 |
</div>
|
- |
|
156 |
<div class="wpsg_mod_prepayment_qrrechnung_right" style="display: flex; flex-direction: column;">
|
- |
|
157 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
- |
|
158 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
- |
|
159 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
- |
|
160 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
- |
|
161 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
- |
|
162 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
- |
|
163 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
- |
|
164 |
<?php echo $img['referenceNumber']; ?><br />
|
- |
|
165 |
<?php } ?>
|
- |
|
166 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
- |
|
167 |
<?php echo $img['additionalInformation']; ?><br />
|
- |
|
168 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
- |
|
169 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
- |
|
170 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
- |
|
171 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
- |
|
172 |
</div>
|
- |
|
173 |
</div>
|
72 |
|
174 |
|
73 |
<?php } ?>
|
175 |
<?php } ?>
|
74 |
|
176 |
|
75 |
<?php } ?>
|
177 |
<?php } ?>
|
76 |
|
178 |
|