Subversion Repositories wpShopGermany4

Rev

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

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