Line 31... |
Line 31... |
31 |
$img = array();
|
31 |
$img = array();
|
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']));
|
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 |
|
33 |
|
34 |
?>
|
34 |
?>
|
35 |
|
35 |
|
36 |
<div style="display: flex; justify-content: center; flex-direction: column; gap: 20px;">
|
36 |
<div class="wpsg_mod_prepayment_info_wrap">
|
37 |
<?php 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;">
|
38 |
<div class="wpsg_mod_prepayment_info">
|
39 |
<div class="wpsg_mod_prepayment_info_left" style="display: flex; flex-direction: column;">
|
39 |
<div class="wpsg_mod_prepayment_info_left">
|
- |
|
40 |
<div class="wpsg_mod_prepayment_info_left_qr-download">
|
- |
|
41 |
<h4><?php echo wpsg_translate(__($i['title'], $wpsg)); ?></h4>
|
40 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__($i['title'], $wpsg)); ?></h4>
|
42 |
<?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 } ?>
|
- |
|
43 |
</div>
|
- |
|
44 |
<br />
|
41 |
<?php if (isset($i['filepath'])) { ?><a title="Downloadlink für die QR-Rechnung" style="box-shadow:none; font-size:smaller; font-style:italic; text-decoration:underline;" target="_blank" href="<?php echo $this->callMod('wpsg_mod_prepayment', 'getFrontendLink', [$i['order_id']]); ?>">Download</a><?php } ?>
|
45 |
<?php echo '<img class="wpsg_mod_prepayment_info_left_qrcodeimg" src="data:image/png;base64,'.$i['hash'].'" />'; ?>
|
42 |
<br />
|
46 |
<br />
|
43 |
<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$i['hash'].'" />'; ?>
|
- |
|
44 |
<br />
|
- |
|
45 |
<div style="display: flex; gap: 25%;">
|
47 |
<div class="wpsg_mod_prepayment_info_left_wrap">
|
46 |
<div style="display: flex; flex-direction: column;">
|
48 |
<div class="wpsg_mod_prepayment_info_left_currency">
|
47 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
49 |
<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
48 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
50 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
49 |
</div>
|
51 |
</div>
|
50 |
<div style="display: flex; flex-direction: column;">
|
52 |
<div class="wpsg_mod_prepayment_info_left_amount">
|
51 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
53 |
<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
52 |
<?php echo sprintf("%.2f", $i['invoiceAmount']); ?>
|
54 |
<?php echo sprintf("%.2f", $i['invoiceAmount']); ?>
|
53 |
</div>
|
55 |
</div>
|
54 |
</div>
|
56 |
</div>
|
55 |
</div>
|
57 |
</div>
|
56 |
<div class="wpsg_mod_prepayment_info_right" style="display: flex; flex-direction: column;">
|
58 |
<div class="wpsg_mod_prepayment_info_right">
|
57 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
59 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
58 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
60 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
59 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
61 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
60 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
62 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
61 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
63 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
62 |
<?php if (!empty($i['referenceNumber'])) { ?>
|
64 |
<?php if (!empty($i['referenceNumber'])) { ?>
|
63 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
65 |
<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
64 |
<?php echo $i['referenceNumber']; ?><br />
|
66 |
<?php echo $i['referenceNumber']; ?><br />
|
65 |
<?php } ?>
|
67 |
<?php } ?>
|
66 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
68 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
67 |
<?php echo $i['additionalInformation']; ?><br />
|
69 |
<?php echo $i['additionalInformation']; ?><br />
|
68 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
70 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
69 |
<?php echo $i['customerdata']['vname'].' '.$i['customerdata']['name']; ?><br />
|
71 |
<?php echo $i['customerdata']['vname'].' '.$i['customerdata']['name']; ?><br />
|
70 |
<?php echo $i['customerdata']['strasse'].' '.$i['customerdata']['nr']; ?><br />
|
72 |
<?php echo $i['customerdata']['strasse'].' '.$i['customerdata']['nr']; ?><br />
|
71 |
<?php echo $i['customerdata']['plz'].' '.$i['customerdata']['ort']; ?><br />
|
73 |
<?php echo $i['customerdata']['plz'].' '.$i['customerdata']['ort']; ?><br />
|
72 |
</div>
|
74 |
</div>
|
73 |
</div>
|
75 |
</div>
|
Line 88... |
Line 90... |
88 |
$img = array();
|
90 |
$img = array();
|
89 |
$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']));
|
91 |
$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']));
|
90 |
|
92 |
|
91 |
?>
|
93 |
?>
|
92 |
|
94 |
|
93 |
<div class="wpsg_mod_prepayment_girocode" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
|
95 |
<div class="wpsg_mod_prepayment_girocode">
|
94 |
<div class="wpsg_mod_prepayment_girocode_left" style="display: flex; flex-direction: column;">
|
96 |
<div class="wpsg_mod_prepayment_girocode_left" >
|
95 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
97 |
<h4><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
96 |
<br />
|
98 |
<br />
|
97 |
<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
99 |
<?php echo '<img class="wpsg_mod_prepayment_girocode_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
98 |
<br>
|
100 |
<br>
|
99 |
<div style="display: flex; gap: 25%;">
|
101 |
<div class="wpsg_mod_prepayment_girocode_left_wrap">
|
100 |
<div style="display: flex; flex-direction: column;">
|
102 |
<div class="wpsg_mod_prepayment_girocode_left_currency">
|
101 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
103 |
<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
102 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
104 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
103 |
</div>
|
105 |
</div>
|
104 |
<div style="display: flex; flex-direction: column;">
|
106 |
<div class="wpsg_mod_prepayment_girocode_left_amount">
|
105 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
107 |
<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
106 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
108 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
107 |
</div>
|
109 |
</div>
|
108 |
</div>
|
110 |
</div>
|
109 |
</div>
|
111 |
</div>
|
110 |
<div class="wpsg_mod_prepayment_girocode_right" style="display: flex; flex-direction: column;">
|
112 |
<div class="wpsg_mod_prepayment_girocode_right">
|
111 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
113 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
112 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
114 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
113 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
115 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
114 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
116 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
115 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
117 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
116 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
118 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
117 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
119 |
<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
118 |
<?php echo $img['referenceNumber']; ?><br />
|
120 |
<?php echo $img['referenceNumber']; ?><br />
|
119 |
<?php } ?>
|
121 |
<?php } ?>
|
120 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
122 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
121 |
<?php echo $img['additionalInformation']; ?><br />
|
123 |
<?php echo $img['additionalInformation']; ?><br />
|
122 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
124 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
123 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
125 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
124 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
126 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
125 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
127 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
126 |
</div>
|
128 |
</div>
|
127 |
</div>
|
129 |
</div>
|
Line 135... |
Line 137... |
135 |
$img = array();
|
137 |
$img = array();
|
136 |
$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']));
|
138 |
$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']));
|
137 |
|
139 |
|
138 |
?>
|
140 |
?>
|
139 |
|
141 |
|
140 |
<div class="wpsg_mod_prepayment_qrrechnung" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
|
142 |
<div class="wpsg_mod_prepayment_qrrechnung">
|
141 |
<div class="wpsg_mod_prepayment_qrrechnung_left" style="display: flex; flex-direction: column;">
|
143 |
<div class="wpsg_mod_prepayment_qrrechnung_left">
|
142 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
- |
|
143 |
<?php if (isset($i['filepath'])) { ?><a title="Downloadlink für die QR-Rechnung" style="box-shadow:none; font-size:smaller; font-style:italic; text-decoration:underline;" target="_blank" href="<?php echo $this->callMod('wpsg_mod_prepayment', 'getFrontendLink', [$i['order_id']]); ?>">Download</a><?php } ?>
|
144 |
<h4><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
|
144 |
<br />
|
145 |
<br />
|
145 |
<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
146 |
<?php echo '<img class="wpsg_mod_prepayment_qrrechnung_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
|
146 |
<br>
|
147 |
<br>
|
147 |
<div style="display: flex; gap: 25%;">
|
148 |
<div class="wpsg_mod_prepayment_qrrechnung_left_wrap">
|
148 |
<div style="display: flex; flex-direction: column;">
|
149 |
<div class="wpsg_mod_prepayment_qrrechnung_left_currency">
|
149 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
150 |
<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
|
150 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
151 |
<?php echo $this->get_option('wpsg_currency'); ?>
|
151 |
</div>
|
152 |
</div>
|
152 |
<div style="display: flex; flex-direction: column;">
|
153 |
<div class="wpsg_mod_prepayment_qrrechnung_left_amount">
|
153 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
154 |
<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
|
154 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
155 |
<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
|
155 |
</div>
|
156 |
</div>
|
156 |
</div>
|
157 |
</div>
|
157 |
</div>
|
158 |
</div>
|
158 |
<div class="wpsg_mod_prepayment_qrrechnung_right" style="display: flex; flex-direction: column;">
|
159 |
<div class="wpsg_mod_prepayment_qrrechnung_right">
|
159 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
160 |
<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
|
160 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
161 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
|
161 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
162 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
|
162 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
163 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
|
163 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
164 |
<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
|
164 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
165 |
<?php if (!empty($img['referenceNumber'])) { ?>
|
165 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
166 |
<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
|
166 |
<?php echo $img['referenceNumber']; ?><br />
|
167 |
<?php echo $img['referenceNumber']; ?><br />
|
167 |
<?php } ?>
|
168 |
<?php } ?>
|
168 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
169 |
<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
|
169 |
<?php echo $img['additionalInformation']; ?><br />
|
170 |
<?php echo $img['additionalInformation']; ?><br />
|
170 |
<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
171 |
<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
|
171 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
172 |
<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
|
172 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
173 |
<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
|
173 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
174 |
<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
|
174 |
</div>
|
175 |
</div>
|
175 |
</div>
|
176 |
</div>
|