Subversion Repositories wpShopGermany4

Rev

Rev 8332 | Rev 8341 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1105 daniel 1
<?php
2
 
3
	/**
7110 thomas 4
	 * Template welches bei der Zahlungsart "Vorkasse" nach Abschluss einer Bestellung angezeigt wird
1105 daniel 5
	 */
6
 
1618 david 7
	//wpsg_debug($this->view['wpsg_mod_prepayment']['subject']);
7920 daniel 8
 
1105 daniel 9
?>
7920 daniel 10
<?php echo wpsg_translate(__('Sie haben die Zahlungsart "Vorkasse" gewählt. Überweisen Sie daher den Rechnungsbetrag von #1# auf folgendes Konto:', 'wpsg'), wpsg_ff($this->view['basket']['arCalculation']['sum']['topay_brutto'], $this->get_option('wpsg_currency'))); ?>
1105 daniel 11
<br /><br />
3748 daniel 12
<?php echo wpsg_translate(__('Kontoinhaber: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber'))); ?><br />
13
<?php echo wpsg_translate(__('IBAN: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban'))); ?><br />
14
<?php echo wpsg_translate(__('Bank: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank'))); ?><br />
15
<?php echo wpsg_translate(__('BIC-/SWIFT-Code: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift'))); ?>
1618 david 16
<br /><br />
6664 thomas 17
<?php echo wpsg_translate(__('Bitte als Betreff angeben: "#1#"', 'wpsg'), $this->view['wpsg_mod_prepayment']['subject']); ?>
18
 
8332 karl 19
<?php if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
20
 
7335 daniel 21
	<p>
22
		<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
23
	</p>
8336 karl 24
 
25
	<?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
26
 
27
	<?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
6664 thomas 28
 
8336 karl 29
		<!-- QR-CODE für EPC und SWISS -->
30
 
31
		<?php
32
 
33
			$img = array();
34
			$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']));
35
 
36
			echo '<div style="display: flex; justify-content: center; flex; gap: 20px;">';
37
			foreach ($img as $i) {
38
 
39
				echo '<div>';
40
					echo '<h4 style="margin-bottom: -15px; font-weight: bold;">'.$i['title'].':'.'<h4>';
41
					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>';
42
				echo '</div>';
43
 
44
			}
45
			echo '</div>'
46
 
47
		?>
48
 
49
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
50
 
51
		<!-- QR-CODE für EPC -->
52
 
53
		<?php
54
 
55
			$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')));
56
 
57
			echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
58
 
59
		?>
60
 
61
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { ?>
62
 
63
		<!-- QR-CODE für SWISS -->
64
 
65
		<?php
66
 
67
			$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']));
68
 
69
			echo '<img style="width: 320px; height:320px;" src="data:image/png;base64,'.$img.'" />';
70
 
71
		?>
72
 
73
	<?php } ?>
7335 daniel 74
 
6664 thomas 75
<?php } ?>