diff options
| author | karl <noreply@maennchen1.de> | 2023-07-28 14:19:34 +0000 |
|---|---|---|
| committer | karl <noreply@maennchen1.de> | 2023-07-28 14:19:34 +0000 |
| commit | 990c8b80689c81a06acd4b4d174c5618ad8fd525 (patch) | |
| tree | 79c76a7a52c78039ca77382ccd6d8b42fea4aa78 /views/mods/mod_prepayment/order_done.phtml | |
| parent | dc2b852a13bbe361c6dbf6a41bed60d134a6f9c7 (diff) | |
- Feature: Modul Vorkasse: QR-Code von QR-Rechnung (Schweiz) kann nun auf der Bestellabschlussseite/Bestellmail angezeigt werden.
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8336 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_prepayment/order_done.phtml')
| -rw-r--r-- | views/mods/mod_prepayment/order_done.phtml | 58 |
1 files changed, 49 insertions, 9 deletions
diff --git a/views/mods/mod_prepayment/order_done.phtml b/views/mods/mod_prepayment/order_done.phtml index d1505d4..dfd6c4b 100644 --- a/views/mods/mod_prepayment/order_done.phtml +++ b/views/mods/mod_prepayment/order_done.phtml @@ -21,15 +21,55 @@ <p>
<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
</p>
-
- <?php
-
- require_once WPSG_PATH_LIB.'phpgirocode.class.php';
-
- $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'], 8, PhpGirocode::OUTPUT_BASE64));
-
- echo '<img src="data:image/png;base64,'.$img.'" />';
+
+ <?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
+
+ <?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
- ?>
+ <!-- QR-CODE für EPC und SWISS -->
+
+ <?php
+
+ $img = array();
+ $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']));
+
+ echo '<div style="display: flex; justify-content: center; flex; gap: 20px;">';
+ foreach ($img as $i) {
+
+ echo '<div>';
+ echo '<h4 style="margin-bottom: -15px; font-weight: bold;">'.$i['title'].':'.'<h4>';
+ 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>';
+ echo '</div>';
+
+ }
+ echo '</div>'
+
+ ?>
+
+ <?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
+
+ <!-- QR-CODE für EPC -->
+
+ <?php
+
+ $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')));
+
+ echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
+
+ ?>
+
+ <?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { ?>
+
+ <!-- QR-CODE für SWISS -->
+
+ <?php
+
+ $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']));
+
+ echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
+
+ ?>
+
+ <?php } ?>
<?php } ?>
\ No newline at end of file |
