Subversion Repositories wpShopGermany4

Rev

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