Subversion Repositories wpShopGermany4

Rev

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