Subversion Repositories wpShopGermany4

Rev

Rev 6491 | Rev 7510 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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