summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mailtemplates/html/customer.phtml12
-rw-r--r--views/mods/mod_prepayment/mail.phtml2
-rw-r--r--views/mods/mod_prepayment/order_done.phtml19
3 files changed, 21 insertions, 12 deletions
diff --git a/views/mailtemplates/html/customer.phtml b/views/mailtemplates/html/customer.phtml
index 181fbcc..60d1b2b 100644
--- a/views/mailtemplates/html/customer.phtml
+++ b/views/mailtemplates/html/customer.phtml
@@ -166,13 +166,19 @@
<br />
<?php
+
require_once WPSG_PATH_LIB.'phpgirocode.class.php';
- if (isset($this->view['mod_prepayment']['subject'])) {
+
+ if (isset($this->view['mod_prepayment']['subject'])) {
+
if (in_array('kundenmail.phtml', $this->arTemplateStack)) {
- echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
- $this->view['mod_prepayment']['subject'], 3, PhpGirocode::OUTPUT_FILE));
+
+ 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));
+
}
+
}
+
?>
diff --git a/views/mods/mod_prepayment/mail.phtml b/views/mods/mod_prepayment/mail.phtml
index 3c8122d..539f502 100644
--- a/views/mods/mod_prepayment/mail.phtml
+++ b/views/mods/mod_prepayment/mail.phtml
@@ -12,4 +12,4 @@
<?php echo wpsg_pad_right(__('IBAN', 'wpsg').':', 35); ?><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?>
<?php echo wpsg_pad_right(__('Bank', 'wpsg').':', 35); ?><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank')); ?>
<?php echo wpsg_pad_right(__('BIC-/SWIFT-Code', 'wpsg').':', 35); ?><?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift')); ?>
-<?php echo wpsg_translate(__('Betreff: #1#', 'wpsg'), $this->view['mod_prepayment']['subject']); ?> \ No newline at end of file
+<?php echo wpsg_pad_right(__('Betreff: #1#', 'wpsg'), 35); ?><?php echo $this->view['mod_prepayment']['subject']; ?> \ No newline at end of file
diff --git a/views/mods/mod_prepayment/order_done.phtml b/views/mods/mod_prepayment/order_done.phtml
index a1a3a15..bd3cc55 100644
--- a/views/mods/mod_prepayment/order_done.phtml
+++ b/views/mods/mod_prepayment/order_done.phtml
@@ -17,16 +17,19 @@
<?php echo wpsg_translate(__('Bitte als Betreff angeben: "#1#"', 'wpsg'), $this->view['wpsg_mod_prepayment']['subject']); ?>
<?php if (isset($this->view['wpsg_mod_prepayment']['subject'])) { ?>
- <p><?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?></p>
+
+ <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.'" />';
- $img = $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
- $this->view['wpsg_mod_prepayment']['subject'], 8, PhpGirocode::OUTPUT_BASE64));
?>
- <img src="data:image/gif;base64,<?php echo $img; ?>" alt="" />
-
- <pre style="display:none;"><?php echo $this->callMod('wpsg_mod_prepayment', 'genQRCode', array($this->view['basket']['sum']['preis_gesamt_brutto'],
- $this->view['wpsg_mod_prepayment']['subject'], 8, PhpGirocode::OUTPUT_TEST));
- ?></pre>
+
<?php } ?> \ No newline at end of file