Subversion Repositories wpShopGermany4

Rev

Rev 8353 | 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
?>
8341 karl 10
 
7920 daniel 11
<?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 12
<br /><br />
3748 daniel 13
<?php echo wpsg_translate(__('Kontoinhaber: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber'))); ?><br />
14
<?php echo wpsg_translate(__('IBAN: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban'))); ?><br />
15
<?php echo wpsg_translate(__('Bank: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_bank'))); ?><br />
16
<?php echo wpsg_translate(__('BIC-/SWIFT-Code: #1#', 'wpsg'), $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_swift'))); ?>
1618 david 17
<br /><br />
6664 thomas 18
<?php echo wpsg_translate(__('Bitte als Betreff angeben: "#1#"', 'wpsg'), $this->view['wpsg_mod_prepayment']['subject']); ?>
8341 karl 19
<br /><br />
6664 thomas 20
 
8332 karl 21
<?php if ( isset($this->view['wpsg_mod_prepayment']['subject']) && ($this->get_option('wpsg_mod_prepayment_qrcode') == true) ) { ?>
22
 
8336 karl 23
	<?php require_once WPSG_PATH_LIB.'phpgirocode.class.php'; ?>
24
 
25
	<?php if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '0') { ?>
6664 thomas 26
 
8341 karl 27
		<!-- Girocode und QR-Rechnung -->
8336 karl 28
 
29
		<?php
30
 
8369 daniel 31
		try {
32
 
8336 karl 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']));
8369 daniel 35
 
36
 
8341 karl 37
		?>
8369 daniel 38
 
8353 karl 39
		<div class="wpsg_mod_prepayment_info_wrap">
8341 karl 40
			<?php foreach ($img as $i) { ?>
8353 karl 41
				<div class="wpsg_mod_prepayment_info">
42
					<div class="wpsg_mod_prepayment_info_left">
43
                    <div class="wpsg_mod_prepayment_info_left_qr-download">
44
						<h4><?php echo wpsg_translate(__($i['title'], $wpsg)); ?></h4>
45
						<?php if (isset($i['filepath'])) { ?><a title="Downloadlink für die QR-Rechnung" target="_blank" href="<?php echo $this->callMod('wpsg_mod_prepayment', 'getFrontendLink', [$i['order_id']]); ?>"><i class="fa fa-download" aria-hidden="true"></i></a><?php } ?>
46
                    </div>
47
                        <br />
48
						<?php echo '<img class="wpsg_mod_prepayment_info_left_qrcodeimg" src="data:image/png;base64,'.$i['hash'].'" />'; ?>
8341 karl 49
						<br />
8353 karl 50
						<div class="wpsg_mod_prepayment_info_left_wrap">
51
							<div class="wpsg_mod_prepayment_info_left_currency">
52
								<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
8341 karl 53
								<?php echo $this->get_option('wpsg_currency'); ?>
54
							</div>
8353 karl 55
							<div class="wpsg_mod_prepayment_info_left_amount">
56
								<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
8341 karl 57
								<?php echo sprintf("%.2f", $i['invoiceAmount']); ?>
58
							</div>
59
						</div>
60
					</div>
8353 karl 61
					<div class="wpsg_mod_prepayment_info_right">
62
						<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
8341 karl 63
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
64
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
65
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
66
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
67
						<?php if (!empty($i['referenceNumber'])) { ?>
8353 karl 68
							<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
8341 karl 69
							<?php echo $i['referenceNumber']; ?><br />
70
						<?php } ?>
8353 karl 71
						<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
8341 karl 72
						<?php echo $i['additionalInformation']; ?><br />
8353 karl 73
						<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
8341 karl 74
						<?php echo $i['customerdata']['vname'].' '.$i['customerdata']['name']; ?><br />
75
						<?php echo $i['customerdata']['strasse'].' '.$i['customerdata']['nr']; ?><br />
76
						<?php echo $i['customerdata']['plz'].' '.$i['customerdata']['ort']; ?><br />
77
					</div>
78
				</div>
79
			<?php } ?>
80
		</div>
8336 karl 81
 
8369 daniel 82
		<?php } catch (\Exception $e) { } ?>
8336 karl 83
 
8341 karl 84
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
8336 karl 85
 
8341 karl 86
		<!-- Girocode (EPC) -->
8336 karl 87
 
8341 karl 88
		<p>
89
			<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
90
		</p>
8336 karl 91
 
92
		<?php
93
 
8341 karl 94
			$img = array();
95
			$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']));
96
 
8336 karl 97
		?>
98
 
8353 karl 99
		<div class="wpsg_mod_prepayment_girocode">
100
			<div class="wpsg_mod_prepayment_girocode_left" >
101
				<h4><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
8341 karl 102
				<br />
8353 karl 103
				<?php echo '<img class="wpsg_mod_prepayment_girocode_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
8341 karl 104
				<br>
8353 karl 105
				<div class="wpsg_mod_prepayment_girocode_left_wrap">
106
					<div class="wpsg_mod_prepayment_girocode_left_currency">
107
						<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
8341 karl 108
						<?php echo $this->get_option('wpsg_currency'); ?>
109
					</div>
8353 karl 110
					<div class="wpsg_mod_prepayment_girocode_left_amount">
111
						<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
8341 karl 112
						<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
113
					</div>
114
				</div>
115
			</div>
8353 karl 116
			<div class="wpsg_mod_prepayment_girocode_right">
117
				<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
8341 karl 118
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
119
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
120
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
121
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
122
				<?php if (!empty($img['referenceNumber'])) { ?>
8353 karl 123
					<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
8341 karl 124
					<?php echo $img['referenceNumber']; ?><br />
125
				<?php } ?>
8353 karl 126
				<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
8341 karl 127
				<?php echo $img['additionalInformation']; ?><br />
8353 karl 128
				<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
8341 karl 129
				<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
130
				<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
131
				<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
132
			</div>
133
		</div>
134
 
8336 karl 135
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { ?>
136
 
8341 karl 137
		<!-- QR-Rechnung (SWISS) -->
8336 karl 138
 
139
		<?php
140
 
8341 karl 141
			$img = array();
142
			$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']));
8336 karl 143
 
144
		?>
8341 karl 145
 
8353 karl 146
		<div class="wpsg_mod_prepayment_qrrechnung">
147
			<div class="wpsg_mod_prepayment_qrrechnung_left">
148
				<h4><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
8341 karl 149
				<br />
8353 karl 150
				<?php echo '<img class="wpsg_mod_prepayment_qrrechnung_left_qrcodeimg" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
8341 karl 151
				<br>
8353 karl 152
				<div class="wpsg_mod_prepayment_qrrechnung_left_wrap">
153
					<div class="wpsg_mod_prepayment_qrrechnung_left_currency">
154
						<h4><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
8341 karl 155
						<?php echo $this->get_option('wpsg_currency'); ?>
156
					</div>
8353 karl 157
					<div class="wpsg_mod_prepayment_qrrechnung_left_amount">
158
						<h4><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
8341 karl 159
						<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
160
					</div>
161
				</div>
162
			</div>
8353 karl 163
			<div class="wpsg_mod_prepayment_qrrechnung_right">
164
				<h4><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
8341 karl 165
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
166
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
167
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
168
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
169
				<?php if (!empty($img['referenceNumber'])) { ?>
8353 karl 170
					<h4><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
8341 karl 171
					<?php echo $img['referenceNumber']; ?><br />
172
				<?php } ?>
8353 karl 173
				<h4><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
8341 karl 174
				<?php echo $img['additionalInformation']; ?><br />
8353 karl 175
				<h4><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
8341 karl 176
				<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
177
				<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
178
				<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
179
			</div>
180
		</div>
8336 karl 181
 
182
	<?php } ?>
7335 daniel 183
 
6664 thomas 184
<?php } ?>