summaryrefslogtreecommitdiff
path: root/views/mailtemplates/html/customer.phtml
diff options
context:
space:
mode:
authorkarl <noreply@maennchen1.de>2023-07-28 14:19:34 +0000
committerkarl <noreply@maennchen1.de>2023-07-28 14:19:34 +0000
commit990c8b80689c81a06acd4b4d174c5618ad8fd525 (patch)
tree79c76a7a52c78039ca77382ccd6d8b42fea4aa78 /views/mailtemplates/html/customer.phtml
parentdc2b852a13bbe361c6dbf6a41bed60d134a6f9c7 (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/mailtemplates/html/customer.phtml')
-rw-r--r--views/mailtemplates/html/customer.phtml20
1 files changed, 18 insertions, 2 deletions
diff --git a/views/mailtemplates/html/customer.phtml b/views/mailtemplates/html/customer.phtml
index b3a2e7d..4441268 100644
--- a/views/mailtemplates/html/customer.phtml
+++ b/views/mailtemplates/html/customer.phtml
@@ -169,11 +169,27 @@
require_once WPSG_PATH_LIB.'phpgirocode.class.php';
- if (isset($this->view['mod_prepayment']['subject'])) {
+ if (isset($this->view['mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true)) {
if (in_array('kundenmail.phtml', $this->arTemplateStack)) {
+
- echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_FILE));
+ if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') {
+
+ $qrcodes = array();
+ $qrcodes = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['wpsg_mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_FILE, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
+
+ foreach ($qrcodes as $qr) echo $qr;
+
+ } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') {
+
+ echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_FILE, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
+
+ } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') {
+
+ echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['o_id'], $this->view['mod_prepayment']['subject'], $this->view['basket']['sum']['preis_gesamt_brutto'], 3, PhpGirocode::OUTPUT_FILE, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket']));
+
+ }
}