Subversion Repositories wpShopGermany4

Rev

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