Subversion Repositories wpShopGermany4

Rev

Rev 7672 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7490 daniel 1
<?php
7900 daniel 2
 
3
    /** @var wpsg_order $oOrder */
4
    $oOrder = $this->view['oOrder'];
5
 
7490 daniel 6
	if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto';
7
	else $display_brutto_netto = 'netto';
8
 
9
?><div class="baskettable_wrap">
3681 daniel 10
	<table class="baskettable" cellpadding="2" cellspacing="0" style="cell-padding:4px;">
3679 daniel 11
		<tr class="head">
3681 daniel 12
			<th valign="middle" style="cell-padding:4px; padding:4px; line-height:100%; vertical-align:middle;" class="col_pos"><?php echo __('Pos', 'wpsg'); ?></th>
13
			<th valign="middle" style="cell-padding:4px; padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Produkt', 'wpsg'); ?></th>
14
			<th valign="middle" style="cell-padding:4px; padding:4px; line-height:100%; vertical-align:middle;" class="col_price"><?php echo __('Stückpreis', 'wpsg'); ?></th>
3679 daniel 15
			<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
4446 daniel 16
			<th valign="middle" style="cell-padding:4px; padding:4px; line-height:100%; min-width:50px; width:50px; vertical-align:middle;" class="col_mwst"><?php echo __('MwSt.', 'wpsg'); ?></th>
3679 daniel 17
			<?php } ?>
3681 daniel 18
			<th valign="middle" style="cell-padding:4px; padding:4px; line-height:100%; vertical-align:middle;" class="col_amount"><?php echo __('Anzahl', 'wpsg'); ?></th>
19
			<th valign="middle" style="cell-padding:4px; padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?php echo __('Summe', 'wpsg'); ?></th>
3679 daniel 20
		</tr>
21
		<?php $i = 0; foreach ((array)$this->view['basket']['produkte'] as $p) { $i ++; ?>
22
		<tr class="productrow <?php echo ((($i % 2) == 0)?'productrow_odd':'productrow_even'); ?>">
3681 daniel 23
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos td_bt"><?php echo $i; ?>.</td>
4388 daniel 24
			<td style="padding:0px; vertical-align:middle;" class="col_name td_bt">
25
 
4385 daniel 26
				<table cellpadding="0" cellspacing="0">
4388 daniel 27
					<tr>
28
						<td style="padding:0px; ">
6491 hartmut 29
							<?php if (wpsg_isSizedInt($this->get_option('wpsg_imagehandler_overviewimage'))) {
30
 
31
								if (isset($p['product_key'])) {
32
									$bild = $this->imagehandler->getAttachmentID($p['product_key']);
33
								} else {
34
									$arBilder = $this->imagehandler->getAttachmentIDs($this->getProduktId($p['id']));
35
									$bild = $arBilder[0];
36
								}
37
							?>
38
							<?php if (wpsg_isSizedString($bild)) { ?>
4440 daniel 39
							<a style="width:50px; width:50px; margin-right:10px; float:left;" href="<?php echo $this->getProduktLink($this->getProduktId($p['id'])); ?>" title="<?php echo wpsg_hspc(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name']))); ?>">
6038 daniel 40
 
6491 hartmut 41
								<?php echo wp_get_attachment_image($bild, Array(50, 50)); ?>
4384 daniel 42
							</a>
4388 daniel 43
							<?php } ?>
44
							<?php } ?>
4384 daniel 45
						</td>
4442 daniel 46
						<td valign="middle" style="padding:4px; line-height:125%; vertical-align:middle; min-height:50px;">
4440 daniel 47
							<a href="<?php echo $this->getProduktLink($this->getProduktId($p['id'])); ?>" title="<?php echo wpsg_hspc(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name']))); ?>"><?php echo wpsg_hspc(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name']))); ?></a>
4388 daniel 48
						</td>
4384 daniel 49
					</tr>
50
				</table>
4388 daniel 51
 
4379 daniel 52
			</td>
3681 daniel 53
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price td_bt"><?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?></td>
3679 daniel 54
			<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
3681 daniel 55
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst td_bt"><?php echo wpsg_ff($p['mwst_value'], '%'); ?></td>
3679 daniel 56
			<?php } ?>
3681 daniel 57
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount td_bt"><?php echo $p['menge']; ?></td>
58
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum td_bt"><?php echo wpsg_ff($p['preis'] * $p['menge'], $this->get_option('wpsg_currency')); ?></td>
3679 daniel 59
		</tr>
60
		<tr class="productrow productrow2 <?php echo ((($i % 2) == 0)?'productrow_odd':'productrow_even'); ?>">
3681 daniel 61
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos">&nbsp;</td>
62
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Art. Nr.', 'wpsg'); ?>:</td>
63
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?'4':'3'); ?>">
3679 daniel 64
				<?php echo wpsg_hspc($p['anr']); ?>
65
			</td>
66
		</tr>
67
		<?php $this->view['i'] = $i; $this->callMods('mail_row', array($i, $p)); ?>
4132 daniel 68
		<?php if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
69
		<tr class="productrow productrow2 <?php echo ((($this->view['i'] % 2) == 0)?'productrow_odd':'productrow_even'); ?>">
70
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos">&nbsp;</td>
71
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Mögliche Versandarten', 'wpsg'); ?>:</td>
72
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_productvars_value">
73
				<?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
74
				<?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
75
				<?php } ?>
76
			</td>
77
		</tr>
3648 daniel 78
		<?php } ?>
4132 daniel 79
		<?php } ?>
7490 daniel 80
		<?php if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) { $bLine = true; ?>
81
			<?php foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) { ?>
82
				<tr class="voucherrow">
7510 daniel 83
					<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos"> </td>
7490 daniel 84
					<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo wpsg_translate(__('Gutschein (#1#)', 'wpsg'), $gs['code']); ?></td>
85
					<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price"><?php echo wpsg_ff($gs['set'], ((strpos($gs['set'], '%') !== false)?'%':$this->get_option('wpsg_currency'))); ?></td>
86
					<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
87
						<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst"><?php echo __('Anteilig', 'wpsg'); ?></td>
88
					<?php } ?>
89
					<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">1</td>
90
					<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?php echo wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency')); ?></td>
91
				</tr>
3679 daniel 92
			<?php } ?>
7490 daniel 93
		<?php } ?>
3679 daniel 94
		<tr class="spacer">
3681 daniel 95
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="td_bt" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?'6':'5'); ?>">&nbsp;</td>
3679 daniel 96
		</tr>
97
	 	<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?>
3681 daniel 98
	  <tr class="discountrow">
99
	    <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="2"><?php echo __('Abzüglich Rabatt', 'wpsg'); ?>:</td>
100
	    <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price">&nbsp;</td>
101
	    <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
102
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst">&nbsp;</td>
3648 daniel 103
			<?php } ?>
3681 daniel 104
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
105
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?php echo wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')); ?></td>
3679 daniel 106
		</tr>
3648 daniel 107
		<?php } ?>
3679 daniel 108
		<tr class="subtotalrow">
3681 daniel 109
	    <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="2"><?php echo __('Zwischensumme', 'wpsg'); ?>:</td>
110
	    <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price">&nbsp;</td>
111
	    <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
112
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst"></td>
3648 daniel 113
			<?php } ?>
3681 daniel 114
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
115
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?php echo wpsg_ff($this->view['basket']['sum']['preis'], $this->get_option('wpsg_currency')); ?></td>
7672 daniel 116
		</tr>
117
		<?php if ($this->view['basket']['sum']['preis_shipping'] != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
3679 daniel 118
		<tr class="shippingtotalrow">
3681 daniel 119
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="2"><?php echo __('Versandkosten', 'wpsg'); ?>:</td>
120
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price">&nbsp;</td>
3679 daniel 121
			<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
3681 daniel 122
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst">
3679 daniel 123
				<?php if (!wpsg_isSizedInt($this->arShipping[$this->view['basket']['checkout']['payment']]['mwst'])) { ?>
124
				<?php echo __('Anteilig', 'wpsg'); ?>
125
				<?php } else { ?>
126
				<?php echo wpsg_ff($this->arShipping[$this->view['basket']['checkout']['shipping']]['mwst_value'], '% '); ?>
127
				<?php } ?>
128
			</td>
129
			<?php } ?>
3681 daniel 130
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
131
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?php echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency')); ?></td>
3679 daniel 132
		</tr>
7672 daniel 133
		<?php } ?>
4132 daniel 134
		<?php if (wpsg_isSizedArray($this->view['basket']['shipping']['methods'])) { ?>
135
		<?php foreach ($this->view['basket']['shipping']['methods'] as $shipping) { ?>
136
		<tr class="shippingtotalrow shippingsubrow">
137
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos">&nbsp;</td>
138
			<td style="padding:4px; line-height:100%; vertical-align:middle;" colspan="2" class="col_name"><?php echo wpsg_hspc($this->getShippingName($shipping)); ?></td>
139
			<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
140
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst">
141
				<?php if ($this->view['basket']['shipping'][$shipping]['tax_rata'] == 1) { ?>
142
				<?php echo __('Anteilig', 'wpsg'); ?>
143
				<?php } else { ?>
144
				<?php echo wpsg_ff($this->view['basket']['shipping'][$shipping]['mwst'], '%'); ?>
145
				<?php } ?>
146
			</td>
147
			<?php } ?>
148
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
149
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum">
150
				<?php if ($this->get_option('wpsg_preisangaben_frontend') == WPSG_NETTO) { ?>
151
				<?php echo wpsg_ff($this->view['basket']['shipping'][$shipping]['preis_shipping_netto'], $this->get_option('wpsg_currency')); ?>
152
				<?php } else { ?>
153
				<?php echo wpsg_ff($this->view['basket']['shipping'][$shipping]['preis_shipping_brutto'], $this->get_option('wpsg_currency')); ?>
154
				<?php } ?>
155
			</td>
156
		</tr>
157
		<?php } ?>
158
		<?php } ?>
7672 daniel 159
		<?php if ($this->view['basket']['sum']['preis_payment'] != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
3679 daniel 160
		<tr class="paymenttotalrow">
3681 daniel 161
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="2"><?php echo __('Zahlungskosten', 'wpsg'); ?>:</td>
162
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price">&nbsp;</td>
3679 daniel 163
			<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
3681 daniel 164
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst">
3679 daniel 165
				<?php if (!wpsg_isSizedInt($this->arPayment[$this->view['basket']['checkout']['payment']]['mwst'])) { ?>
166
				<?php echo __('Anteilig', 'wpsg'); ?>
167
				<?php } else { ?>
168
				<?php echo wpsg_ff($this->arPayment[$this->view['basket']['checkout']['payment']]['mwst_value'], '% '); ?>
169
				<?php } ?>
170
			</td>
171
			<?php } ?>
3681 daniel 172
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
173
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?php echo wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency')); ?></td>
3679 daniel 174
		</tr>
7672 daniel 175
		<?php } ?>
3679 daniel 176
		<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
3681 daniel 177
		<tr class="smallbuisnessrulerow">
178
			<td style="padding:4px; line-height:100%; vertical-align:middle;" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') === '1')?'6':'5'); ?>">
3679 daniel 179
				<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
180
			</td>
181
		</tr>
182
		<?php } else { ?>
183
		<?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
184
		<tr class="taxrow">
3681 daniel 185
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?'5':'4'); ?>">
3679 daniel 186
				<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
187
				<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
188
				<?php } else { ?>
189
				<?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
190
				<?php } ?>:
191
			</td>
3681 daniel 192
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><?php echo wpsg_ff($mwst['sum'], $this->get_option('wpsg_currency')); ?></td>
3679 daniel 193
		</tr>
3648 daniel 194
		<?php } ?>
195
		<?php } ?>
3679 daniel 196
		<tr class="totalrow">
3681 daniel 197
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="2"><?php echo __('Gesamtpreis', 'wpsg'); ?>:</td>
198
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_price">&nbsp;</td>
3679 daniel 199
			<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
3681 daniel 200
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_mwst"></td>
3679 daniel 201
			<?php } ?>
3681 daniel 202
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_amount">&nbsp;</td>
203
			<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_sum"><strong><?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?></strong></td>
3679 daniel 204
		</tr>
7574 daniel 205
		<?php $this->callMods('mail_order_end', [&$this->view['basket']['arCalculation'], true]); ?>
3679 daniel 206
	</table>
7900 daniel 207
 
208
    <?php
209
 
210
        $arCV = $oOrder->getCustomer()->getCustomerVariables();
211
 
212
        if (wpsg_isSizedArray($arCV)) { ?>
213
 
214
            <strong><?php echo __('Weitere Kundendaten', 'wpsg'); ?>:</strong><br />
215
 
216
            <table>
217
 
218
                <?php foreach ($arCV as $cv) { ?>
219
                    <tr>
220
                        <th><?php echo $cv['label']; ?></th>
221
                        <td><?php echo $cv['value']; ?></td>
222
                    </tr>
223
                <?php } ?>
224
 
225
            </table>
226
 
227
        <?php }
228
 
229
    ?>
230
 
3679 daniel 231
</div>
232
 
3648 daniel 233
<br />