From 8806540b571a2b87addbfb5ce5faa3488f38cc6d Mon Sep 17 00:00:00 2001 From: karl Date: Tue, 1 Aug 2023 12:05:02 +0000 Subject: - Modul Vorkasse: abgesicherter QR-Code in Bestellemail integriert - Changelog aktualisiert git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8342 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_prepayment/mail_html.phtml | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'views/mods/mod_prepayment/mail_html.phtml') diff --git a/views/mods/mod_prepayment/mail_html.phtml b/views/mods/mod_prepayment/mail_html.phtml index 40c6353..370704c 100644 --- a/views/mods/mod_prepayment/mail_html.phtml +++ b/views/mods/mod_prepayment/mail_html.phtml @@ -30,4 +30,54 @@ : view['mod_prepayment']['subject']); ?> + view['mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true)) { + + require_once WPSG_PATH_LIB.'phpgirocode.class.php'; + + echo ''.__('Zahlen via QR Code', 'wpsg').':'; + + 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_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket'])); + foreach ($qrcodes as $qr) { + + // Base64 QR-Image + if ($qr['title'] == 'QR-Rechnung') echo ''; + else echo ''; + echo ''.__($qr['title'], 'wpsg').''; + echo 'qrcode'; + echo ''; + + } + + } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { + + $qrcode = $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_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket'])); + + echo ' + + '.__($qrcode['title'], 'wpsg').': + '.$qrcode['hash'].' + + '; + + } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { + + $qrcode = $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_BASE64, $this->get_option('wpsg_mod_prepayment_qrcode_country'), $this->view['basket'])); + + echo ' + + '.__($qrcode['title'], 'wpsg').': + '.$qrcode['hash'].' + + '; + + } + + } + + ?> \ No newline at end of file -- cgit v1.2.3