Subversion Repositories wpShopGermany4

Rev

Rev 8344 | 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
 
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
 
8341 karl 36
		<div style="display: flex; justify-content: center; flex-direction: column; gap: 20px;">
37
			<?php foreach ($img as $i) { ?>
38
				<div class="wpsg_mod_prepayment_info" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
39
					<div class="wpsg_mod_prepayment_info_left" style="display: flex; flex-direction: column;">
40
						<h4 style="margin: 0;"><?php echo wpsg_translate(__($i['title'], $wpsg)); ?></h4>
8346 karl 41
						<?php if (isset($i['filepath'])) { ?><a title="Downloadlink für die QR-Rechnung" style="box-shadow:none; font-size:smaller; font-style:italic; text-decoration:underline;" target="_blank" href="<?php echo $this->callMod('wpsg_mod_prepayment', 'getFrontendLink', [$i['order_id']]); ?>">Download</a><?php } ?>
8341 karl 42
						<br />
43
						<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$i['hash'].'" />'; ?>
8343 karl 44
						<br />
8341 karl 45
						<div style="display: flex; gap: 25%;">
46
							<div style="display: flex; flex-direction: column;">
47
								<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
48
								<?php echo $this->get_option('wpsg_currency'); ?>
49
							</div>
50
							<div style="display: flex; flex-direction: column;">
51
								<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
52
								<?php echo sprintf("%.2f", $i['invoiceAmount']); ?>
53
							</div>
54
						</div>
55
					</div>
56
					<div class="wpsg_mod_prepayment_info_right" style="display: flex; flex-direction: column;">
57
						<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
58
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
59
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
60
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
61
						<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
62
						<?php if (!empty($i['referenceNumber'])) { ?>
63
							<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
64
							<?php echo $i['referenceNumber']; ?><br />
65
						<?php } ?>
66
						<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
67
						<?php echo $i['additionalInformation']; ?><br />
68
						<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
69
						<?php echo $i['customerdata']['vname'].' '.$i['customerdata']['name']; ?><br />
70
						<?php echo $i['customerdata']['strasse'].' '.$i['customerdata']['nr']; ?><br />
71
						<?php echo $i['customerdata']['plz'].' '.$i['customerdata']['ort']; ?><br />
72
					</div>
73
				</div>
74
			<?php } ?>
75
		</div>
8336 karl 76
 
77
 
8341 karl 78
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '1') { ?>
8336 karl 79
 
8341 karl 80
		<!-- Girocode (EPC) -->
8336 karl 81
 
8341 karl 82
		<p>
83
			<?php echo __('Wenn Ihre Banking-App Girocode unterstützt, können Sie diesen QRCode scannen.', 'wpsg'); ?>
84
		</p>
8336 karl 85
 
86
		<?php
87
 
8341 karl 88
			$img = array();
89
			$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']));
90
 
8336 karl 91
		?>
92
 
8341 karl 93
		<div class="wpsg_mod_prepayment_girocode" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
94
			<div class="wpsg_mod_prepayment_girocode_left" style="display: flex; flex-direction: column;">
95
				<h4 style="margin: 0;"><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
96
				<br />
97
				<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
98
				<br>
99
				<div style="display: flex; gap: 25%;">
100
					<div style="display: flex; flex-direction: column;">
101
						<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
102
						<?php echo $this->get_option('wpsg_currency'); ?>
103
					</div>
104
					<div style="display: flex; flex-direction: column;">
105
						<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
106
						<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
107
					</div>
108
				</div>
109
			</div>
110
			<div class="wpsg_mod_prepayment_girocode_right" style="display: flex; flex-direction: column;">
111
				<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
112
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
113
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
114
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
115
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
116
				<?php if (!empty($img['referenceNumber'])) { ?>
117
					<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
118
					<?php echo $img['referenceNumber']; ?><br />
119
				<?php } ?>
120
				<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
121
				<?php echo $img['additionalInformation']; ?><br />
122
				<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
123
				<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
124
				<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
125
				<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
126
			</div>
127
		</div>
128
 
8336 karl 129
	<?php } else if ($this->get_option('wpsg_mod_prepayment_qrcode_country') == '2') { ?>
130
 
8341 karl 131
		<!-- QR-Rechnung (SWISS) -->
8336 karl 132
 
133
		<?php
134
 
8341 karl 135
			$img = array();
136
			$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 137
 
138
		?>
8341 karl 139
 
140
		<div class="wpsg_mod_prepayment_qrrechnung" style="display: flex; gap: 20px; border: 1px solid #000; padding: 20px;">
141
			<div class="wpsg_mod_prepayment_qrrechnung_left" style="display: flex; flex-direction: column;">
142
				<h4 style="margin: 0;"><?php echo wpsg_translate(__($img['title'], $wpsg)); ?></h4>
8346 karl 143
				<?php if (isset($i['filepath'])) { ?><a title="Downloadlink für die QR-Rechnung" style="box-shadow:none; font-size:smaller; font-style:italic; text-decoration:underline;" target="_blank" href="<?php echo $this->callMod('wpsg_mod_prepayment', 'getFrontendLink', [$i['order_id']]); ?>">Download</a><?php } ?>
8341 karl 144
				<br />
145
				<?php echo '<img style="width: 240px; height:240px;" src="data:image/png;base64,'.$img['hash'].'" />'; ?>
146
				<br>
147
				<div style="display: flex; gap: 25%;">
148
					<div style="display: flex; flex-direction: column;">
149
						<h4 style="margin: 0;"><?php echo wpsg_translate(__('Währung', $wpsg)); ?></h4>
150
						<?php echo $this->get_option('wpsg_currency'); ?>
151
					</div>
152
					<div style="display: flex; flex-direction: column;">
153
						<h4 style="margin: 0;"><?php echo wpsg_translate(__('Betrag', $wpsg)); ?></h4>
154
						<?php echo sprintf("%.2f", $img['invoiceAmount']); ?>
155
					</div>
156
				</div>
157
			</div>
158
			<div class="wpsg_mod_prepayment_qrrechnung_right" style="display: flex; flex-direction: column;">
159
				<h4 style="margin: 0;"><?php echo wpsg_translate(__('Konto / Zahlbar an', $wpsg)); ?></h4>
160
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_iban')); ?><br />
161
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_mod_prepayment_kinhaber')); ?><br />
162
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_street')); ?><br />
163
				<?php echo $this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_zip')).' '.$this->replaceUniversalPlatzhalter($this->get_option('wpsg_shopdata_city')); ?><br />
164
				<?php if (!empty($img['referenceNumber'])) { ?>
165
					<h4 style="margin: 0;"><?php echo wpsg_translate(__('Referenz', $wpsg)); ?></h4>
166
					<?php echo $img['referenceNumber']; ?><br />
167
				<?php } ?>
168
				<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zusätzliche Informationen', $wpsg)); ?></h4>
169
				<?php echo $img['additionalInformation']; ?><br />
170
				<h4 style="margin: 0;"><?php echo wpsg_translate(__('Zahlbar durch', $wpsg)); ?></h4>
171
				<?php echo $img['customerdata']['vname'].' '.$img['customerdata']['name']; ?><br />
172
				<?php echo $img['customerdata']['strasse'].' '.$img['customerdata']['nr']; ?><br />
173
				<?php echo $img['customerdata']['plz'].' '.$img['customerdata']['ort']; ?><br />
174
			</div>
175
		</div>
8336 karl 176
 
177
	<?php } ?>
7335 daniel 178
 
6664 thomas 179
<?php } ?>