Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für den Warenkorb
5
	 */
6338 hartmut 6
 
4061 daniel 7
	//wpsg_debug($this->view['basket']);
7486 daniel 8
	//wpsg_debug($this->view['basket']['arCalculation']);
4191 daniel 9
	//wpsg_debug($_SESSION);
10
	//wpsg_debug($this->arShipping);
6278 daniel 11
 
12
	//wpsg_debug(__('Deutschland', 'wpsg'));
7490 daniel 13
 
7486 daniel 14
	if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto';
15
	else $display_brutto_netto = 'netto';
16
 
6278 daniel 17
?>
3444 daniel 18
<div class="wpsg wpsg_basket <?php echo ((isset($_REQUEST['wpsg_basket_ajax']))?'wpsg_basket_ajax':''); ?>">
6338 hartmut 19
 
6149 hartmut 20
	<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
21
	<?php } else {?>
1067 daniel 22
	<?php echo $this->writeFrontendMessage(); ?>
6149 hartmut 23
	<?php } ?>
6338 hartmut 24
 
5022 daniel 25
	<?php $this->callMods('basket_top'); ?>
6338 hartmut 26
 
1067 daniel 27
	<?php if (sizeof($this->view['basket']['produkte']) > 0) { ?>
5019 thomas 28
 
6149 hartmut 29
	<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
6330 hartmut 30
	<?php } else {?>
6149 hartmut 31
		<?php $GLOBALS['step'] = 1; $this->render(WPSG_PATH_VIEW.'/warenkorb/progress.phtml'); ?>
6330 hartmut 32
	<?php } ?>
6149 hartmut 33
 
6330 hartmut 34
	<?php if (!isset($this->view['noFormTag'])) { ?>
7002 daniel 35
	<form id="wpsg_basket_form" name="wpsg_basket_form"  method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_CHECKOUT); ?>" enctype="multipart/form-data">
6149 hartmut 36
	<?php } ?>
6338 hartmut 37
 
7260 roger 38
		<h2><?php echo __('Ihr Warenkorb', 'wpsg'); ?></h2>
6338 hartmut 39
 
3460 daniel 40
		<div class="wpsg_spacer"></div>
6338 hartmut 41
 
6314 daniel 42
		<div class="basket_product_wrap">
6338 hartmut 43
 
6332 hartmut 44
			<?php $i = 0; foreach ($this->view['basket']['produkte'] as $k => $product_data) { $i ++; ?>
6330 hartmut 45
 
6314 daniel 46
			<div class="basket_product_row">
6338 hartmut 47
 
6454 hartmut 48
				<?php $this->view['$bPicture'] = false;
6330 hartmut 49
 
6454 hartmut 50
				?>
51
				<?php if ($this->get_option('wpsg_imagehandler_basketimage') == '1') {
6338 hartmut 52
 
6330 hartmut 53
				?>
6314 daniel 54
				<div class="productimage">
6338 hartmut 55
 
6330 hartmut 56
					<?php
57
					if (isset($product_data['product_key'])) {
6454 hartmut 58
						$arAttachmentIDs = $this->imagehandler->getAttachmentIDs($product_data['product_key']);
59
						$attachmentID = $this->imagehandler->getAttachmentID($product_data['product_key']);
60
 
61
                        echo wp_get_attachment_image($attachmentID, 'medium');
62
 
6330 hartmut 63
					}
6454 hartmut 64
					if ($attachmentID > 0) $this->view['$bPicture'] = true;
65
					//echo "<img src=".$url." alt='' />";
6330 hartmut 66
					?>
6314 daniel 67
				</div>
68
				<?php } ?>
6330 hartmut 69
 
6314 daniel 70
				<div class="product_content">
6338 hartmut 71
 
6314 daniel 72
					<div class="product_name">
73
						<?php if ($this->getProduktLink($product_data)) { ?>
74
						<a href="<?php echo $this->getProduktLink($product_data); ?>"><?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?></a>
75
						<?php } else { ?>
76
						<?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?>
77
						<?php } ?>
6338 hartmut 78
 
6314 daniel 79
						<?php if (wpsg_isSizedString($product_data['shortdesc'])) { ?>
80
						<div class="product_shortdesc"><?php echo $product_data['shortdesc']; ?></div>
81
						<?php } ?>
6338 hartmut 82
 
6314 daniel 83
					</div>
6338 hartmut 84
 
6314 daniel 85
					<div class="product_action">
6330 hartmut 86
						<div class="title">
6331 hartmut 87
							<?php echo __("Anzahl", "wpsg"); ?>
6330 hartmut 88
						</div>
6314 daniel 89
						<div class="amount">
6338 hartmut 90
 
6314 daniel 91
							<input class="wpsg_form_submit_return" type="text" name="wpsg[menge][<?php echo $product_data['product_index']; ?>]" <?php echo ((wpsg_isTrue($product_data['oneOnly']) || wpsg_isSizedInt($product_data['basket_multiple'], 4))?'readonly="readonly"':''); ?> value="<?php echo wpsg_hspc($product_data['menge']); ?>" size="3" />
6914 daniel 92
 
93
							<a class="wpsg_basket_removelink" href="<?php echo $this->getRemoveLinkURL($product_data['product_index']); ?>" title="<?php echo __('Produkt aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie das Produkt aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');">
94
								<img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
95
							</a>
96
 
6314 daniel 97
						</div>
6330 hartmut 98
					</div>
99
					<div class="product_action">
100
						<div class="title">
101
							<?php echo __("Einzelpreis", "wpsg"); ?>
102
						</div>
6314 daniel 103
						<div class="price">
104
							<?php echo wpsg_ff($product_data['preis'], $this->get_option('wpsg_currency')); ?>
105
						</div>
6330 hartmut 106
					</div>
107
					<div class="product_action">
108
						<div class="title">
109
							<?php echo __("Gesamtpreis", "wpsg"); ?>
110
						</div>
6314 daniel 111
						<div class="price_total">
112
							<?php echo wpsg_ff($product_data['menge'] * $product_data['preis'], $this->get_option('wpsg_currency')); ?>
113
						</div>
114
					</div>
6338 hartmut 115
 
6330 hartmut 116
					<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
117
					<div class="product_info">
7243 daniel 118
 
119
						<?php echo __("MwSt.", "wpsg"); ?>
120
 
6330 hartmut 121
						<div class="valuer">
122
							<?php echo wpsg_ff($product_data['mwst_value'], ' %'); ?>
123
						</div>
124
						<div class="dummyr">
125
							<?php echo __('&nbsp;'); ?>
126
						</div>
6338 hartmut 127
 
6330 hartmut 128
					</div>
129
					<?php } ?>
130
 
6332 hartmut 131
					<?php $strBasketRow = ''; ob_start(); $this->callMods('basket_row', array(&$product_data, $i)); $strBasketRow = ob_get_contents(); ob_end_clean(); ?>
6330 hartmut 132
					<?php echo $strBasketRow; ?>
6338 hartmut 133
 
6314 daniel 134
				</div>
6338 hartmut 135
 
6314 daniel 136
			</div>
6338 hartmut 137
 
6330 hartmut 138
			<?php }   // foreach products ?>
6338 hartmut 139
 
6314 daniel 140
		</div>
6338 hartmut 141
 
6330 hartmut 142
		<div class="basket_sum_wrap">
6338 hartmut 143
 
6330 hartmut 144
			<?php $this->callMods('basket_row_afterproducts', array(&$p, $i)); ?>
6338 hartmut 145
 
6330 hartmut 146
			<?php $bLine = false; ?>
7486 daniel 147
 
148
			<?php if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) { $bLine = true; ?>
7349 daniel 149
 
7486 daniel 150
				<?php foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) { ?>
151
 
152
					<div class="basket_sum_row">
153
						<div class="title">
154
							<?php echo __('Gutschein', 'wpsg'); ?> <?php echo ((wpsg_isSizedString($gs['code']))?'('.$gs['code'].')':''); ?>
7488 thomas 155
							<a class="wpsg_basket_removelink" href="<?php echo str_replace('&', '&amp;', $this->getRemoveLinkURL('voucher_'.$gs['id'])); ?>" title="<?php echo __('Gutschein aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass sie den Gutschein aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');"><img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" /></a>
7486 daniel 156
						</div>
157
						<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
158
							<div class="colgsr"><?php echo __('anteilig', 'wpsg'); ?></div>
159
						<?php } ?>
160
						<div class="value"><?php
161
 
162
							echo wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
7349 daniel 163
 
7486 daniel 164
							if (strpos($gs['set'], '%') !== false) {
165
 
166
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($gs['set']), '%').')</span>';
167
 
168
							}
169
 
170
						?></div>
7349 daniel 171
 
7486 daniel 172
					</div>
7349 daniel 173
 
7486 daniel 174
				<?php } ?>
7349 daniel 175
 
6330 hartmut 176
			<?php } ?>
6338 hartmut 177
 
6330 hartmut 178
			<div class="basket_sum_row">
179
				<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && wpsg_tf($this->view['basket']['sum']['preis_rabatt']) > 0) { ?>
180
					<div class="title">
181
						<?php echo __("Rabatt", "wpsg"); $bLine = true; ?>:
2766 daniel 182
					</div>
6330 hartmut 183
					<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
184
						<div class="value">
185
							<?php echo __('anteilig', 'wpsg'); ?>
186
						</div>
2766 daniel 187
					<?php } ?>
6330 hartmut 188
						<div class="value">
189
							<?php echo '-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')); ?>
190
						</div>
191
				<?php } ?>
192
			</div>
193
 
194
			<?php if ($bLine == true) { ?>
195
				<div class="wpsg_spacer"></div>
1067 daniel 196
			<?php } ?>
6330 hartmut 197
 
198
			<div class="basket_sum_row">
199
				<div class="title2">
3024 daniel 200
					<?php if ($this->get_option("wpsg_kleinunternehmer") == "1") { ?>
6330 hartmut 201
						<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
3024 daniel 202
					<?php } else { ?>
6330 hartmut 203
						<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
6338 hartmut 204
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
6330 hartmut 205
						<?php } else { ?>
206
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
207
						<?php } ?>
3024 daniel 208
					<?php } ?>
6330 hartmut 209
				</div>
210
				<div class="value">
2742 daniel 211
					<?php echo wpsg_ff($this->view['basket']['sum']['preis'], $this->get_option('wpsg_currency')); ?>
6330 hartmut 212
				</div>
213
			</div>
6338 hartmut 214
 
6330 hartmut 215
			<div class="basket_sum_row">
216
				<div class="title">
2742 daniel 217
					<?php echo wpsg_translate(__('<a href="#1#">Versandkosten</a>:', 'wpsg'),
218
						$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN)
4893 daniel 219
					); ?>
6340 hartmut 220
					<br />
6330 hartmut 221
					<?php if (sizeof($this->arShipping) > 1) { ?>
2742 daniel 222
					<select name="set_shipping" class="wpsg_form_submit set_shipping">
3444 daniel 223
						<option><?php echo __('Bitte wählen', 'wpsg')?></option>
6330 hartmut 224
						<?php foreach ($this->arShipping as $s_id => $s) { ?>
4122 daniel 225
						<option <?php echo (($s['id'] == $this->view['basket']['checkout']['shipping'])?'selected="selected"':''); ?> value="<?php echo $s_id; ?>"><?php echo wpsg_hspc(__($s['name'], 'wpsg')); ?></option>
2742 daniel 226
						<?php } ?>
227
					</select>
5958 daniel 228
					<?php } else if (!wpsg_isSizedArray($this->arShipping) || !array_key_exists($this->view['basket']['checkout']['shipping'], $this->arShipping)) { ?>
229
					<span><?php echo __('Keine Versandart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
230
					<?php } else { ?>
4893 daniel 231
					<span><?php echo $this->arShipping[$this->view['basket']['checkout']['shipping']]['name']; ?></span>
232
					<?php } ?>
2988 daniel 233
					<?php if ($this->get_option('wpsg_hideBasketCountrySelect') != '1') { ?>
6149 hartmut 234
					<select name="set_land" id="set_land" class="wpsg_form_submit set_land">
2742 daniel 235
						<?php foreach ($this->view['arLander'] as $l_id => $l) { ?>
4062 daniel 236
						<option <?php echo (($l_id == $this->getFrontendCountry(true))?'selected="selected"':''); ?> value="<?php echo $l_id; ?>"><?php echo wpsg_hspc(__($l, 'wpsg')); ?></option>
2742 daniel 237
						<?php } ?>
6330 hartmut 238
					</select>
2988 daniel 239
					<?php } else { ?>
240
					<input type="hidden" name="set_land" value="<?php echo $this->view['basket']['checkout']['shipping_land']; ?>" />
241
					<?php } ?>
6330 hartmut 242
				</div>
243
				<div class="value">
7358 daniel 244
					<?php if ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') && isset($this->view['basket']['arCalculation']['shipping'][0]['tax_key'])) {
7347 daniel 245
 
246
						$shipping_tax_key = $this->view['basket']['arCalculation']['shipping'][0]['tax_key'];
7358 daniel 247
 
7347 daniel 248
						if ($shipping_tax_key === '0') {
249
 
6330 hartmut 250
							echo __('anteilig', 'wpsg');
7347 daniel 251
 
252
						} else {
253
 
254
							echo wpsg_ff($this->view['basket']['arCalculation']['tax'][$shipping_tax_key]['tax_value'], '%');
255
 
6330 hartmut 256
						}
7347 daniel 257
 
258
				 	} ?>
259
				</div>
260
				<div class="value">
261
					<?php
262
 
7358 daniel 263
						if (isset($this->view['basket']['arCalculation']['shipping'][0]['tax_key'])) {
7347 daniel 264
 
7358 daniel 265
							echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency'));
7347 daniel 266
 
7358 daniel 267
							if (strpos($this->view['basket']['arCalculation']['shipping'][0]['set'], '%') !== false) {
268
 
269
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['shipping'][0]['set']), '%').')</span>';
270
 
271
							}
7347 daniel 272
 
6330 hartmut 273
						}
7347 daniel 274
 
6330 hartmut 275
					?>
276
				</div>
277
			</div>
6338 hartmut 278
 
4323 daniel 279
			<?php /* Zeile für Zahlungsart BEGIN */ ?>
280
			<?php if (!$this->hasMod('wpsg_mod_crefopay')) { ?>
6330 hartmut 281
				<div class="basket_sum_row">
282
					<div class="title">
283
						<?php echo __('Zahlungsart:', 'wpsg').'&nbsp;&nbsp;&nbsp;&nbsp;'; ?>
284
						<?php if (sizeof($this->arPayment) > 1) { ?>
6332 hartmut 285
						<select name="set_payment" class="wpsg_form_submit set_payment">
286
							<option><?php echo __('Bitte wählen', 'wpsg')?></option>
6330 hartmut 287
							<?php foreach ($this->arPayment as $p_id => $p) { ?>
288
							<option <?php echo (($p['id'] == $this->view['basket']['checkout']['payment'])?'selected="selected"':''); ?> value="<?php echo $p_id; ?>"><?php echo wpsg_hspc($p['name']); ?></option>
289
							<?php } ?>
290
						</select>
291
						<?php } else if (!wpsg_isSizedArray($this->arPayment) || !array_key_exists($this->view['basket']['checkout']['payment'], $this->arPayment)) { ?>
292
						<span><?php echo __('Keine Zahlungsart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
293
						<?php } else { ?>
294
						<span><?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?></span>
2742 daniel 295
						<?php } ?>
6330 hartmut 296
					</div>
297
					<div class="value">
7358 daniel 298
						<?php if ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') && isset($this->view['basket']['arCalculation']['payment'][0]['tax_key'])) {
7347 daniel 299
 
300
							$payment_tax_key = $this->view['basket']['arCalculation']['payment'][0]['tax_key'];
301
 
302
							if ($payment_tax_key === '0') {
303
 
6330 hartmut 304
								echo __('anteilig', 'wpsg');
7347 daniel 305
 
306
							} else {
307
 
308
								echo wpsg_ff($this->view['basket']['arCalculation']['tax'][$payment_tax_key]['tax_value'], '%');
309
 
6330 hartmut 310
							}
7347 daniel 311
 
6330 hartmut 312
						} ?>
313
					</div>
314
					<div class="value">
7347 daniel 315
						<?php
316
 
7358 daniel 317
							if (isset($this->view['basket']['arCalculation']['payment'][0]['tax_key'])) {
318
 
319
								echo wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency'));
320
 
321
								if (strpos($this->view['basket']['arCalculation']['payment'][0]['set'], '%') !== false) {
322
 
323
									echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['payment'][0]['set']), '%').')</span>';
324
 
325
								}
7347 daniel 326
 
327
							}
328
 
329
						?>
6330 hartmut 330
					</div>
331
				</div>
4323 daniel 332
			<?php } ?>
333
			<?php /* Zeile für Zahlungsart ENDE */ ?>
6330 hartmut 334
 
1564 daniel 335
			<?php if (get_option("wpsg_kleinunternehmer") == "1") { ?>
6330 hartmut 336
				<div class="basket_sum_row">
337
					<div class="title2">
338
						<?php echo get_option('wpsg_kleinunternehmer_text'); ?>
339
					</div>
340
					<div class="value">
341
						<?php echo __('&nbsp;'); ?>
342
					</div>
343
				</div>
344
 
345
				<div class="basket_sum_row">
346
					<div class="title2">
347
						<?php echo __('Gesamtpreis', 'wpsg'); ?>:
348
					</div>
349
					<div class="sum">
350
						<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
351
					</div>
352
				</div>
353
			<?php } else { ?>
354
 
355
				<div class="basket_sum_row">
356
					<div class="title2">
4089 daniel 357
						<?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:
6330 hartmut 358
					</div>
359
					<div class="sum">
4089 daniel 360
						<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_netto'], $this->get_option('wpsg_currency')); ?>
6330 hartmut 361
					</div>
362
				</div>
363
 
364
				<?php foreach ($this->view['basket']['mwst'] as $mwst) { ?>
365
					<div class="basket_sum_row">
366
						<div class="title2">
6332 hartmut 367
							<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), __($mwst['name'], 'wpsg')); ?>:
6330 hartmut 368
						</div>
369
						<div class="value">
370
							<?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
371
						</div>
372
					</div>
1564 daniel 373
				<?php } ?>
6330 hartmut 374
				<div class="wpsg_spacer"></div>
375
				<div class="basket_sum_row">
376
					<div class="title2">
4089 daniel 377
						<?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:
6330 hartmut 378
					</div>
379
					<div class="sum">
4089 daniel 380
						<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
6330 hartmut 381
					</div>
382
				</div>
383
				<div class="wpsg_spacer"></div>
1067 daniel 384
			<?php } ?>
7486 daniel 385
 
386
			<?php $this->callMod('wpsg_mod_gutschein', 'basket_row_end_coupon'); ?>
387
 
2783 daniel 388
			<?php $this->callMods('basket_row_end', array(&$this->view)); ?>
6338 hartmut 389
 
6330 hartmut 390
			<br />
391
			<div class="wpsg_spacer"></div>
7214 daniel 392
 
6330 hartmut 393
			<?php $this->callMods('basket_inner_prebutton', array(&$this->view)); ?>
6338 hartmut 394
 
6330 hartmut 395
		</div>
6338 hartmut 396
 
4996 daniel 397
		<input type="hidden" name="wpsg_basket_submit" value="1" />
6338 hartmut 398
 
3448 daniel 399
		<input type="submit" class="wpsg_button wpsg_refreshbutton" value="<?php echo __('aktualisieren', 'wpsg'); ?>" name="wpsg_basket_refresh" />
6149 hartmut 400
		<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
401
		<?php } else { ?>
7214 daniel 402
			<input type="submit" class="wpsg_button wpsg_checkoutbutton" id="wpsg_basket_submit" value="<?php echo __('zur Kasse', 'wpsg'); ?>" name="wpsg_checkout" />
6338 hartmut 403
 
6149 hartmut 404
			<br /><br />
7379 thomas 405
 
406
			<?php /* Weiter-shoppen-Seite (auskommentierte Zeile: Ziel ist die Blogstartseite) */ ?>
407
			<?php echo wpsg_translate(__('<a href="#1#">weiter shoppen</a>', 'wpsg'), $this->getURL(wpsg_ShopController::URL_BASKET_MORE)); ?>
408
			<?php /* <a href="<?php echo WPSG_URL_WP;?>" class="wpsg_basket_weiter_shoppen2"><?php echo __('weiter shoppen', 'wpsg'); ?></a> */?>
409
 
6330 hartmut 410
		<?php } ?>
1067 daniel 411
		<div class="wpsg_clear"></div>
6338 hartmut 412
 
1144 daniel 413
		<?php $this->ClearSessionErrors(); ?>
6330 hartmut 414
 
415
	<?php if (!isset($this->view['noFormTag'])) { ?>
416
		</form>
6149 hartmut 417
	<?php } ?>
6338 hartmut 418
 
6330 hartmut 419
	<br />
1390 daniel 420
	<?php $this->callMods('basket_after', array(&$this->view)); ?>
7214 daniel 421
 
1067 daniel 422
	<?php } else { ?>
423
	<p><?php echo __('Keine Produkte im Warenkorb.', 'wpsg'); ?></p>
424
	<?php } ?>
6338 hartmut 425
 
1915 daniel 426
</div>
427
 
5854 daniel 428
<script type="text/javascript">/* <![CDATA[ */
2742 daniel 429
 
5854 daniel 430
	jQuery(document).ready(function() {
2742 daniel 431
 
4883 daniel 432
		jQuery('.wpsg_form_submit_return').bind('keypress', function(e) {
4859 daniel 433
 
434
			var code = e.keyCode || e.which;
435
 
436
			if (code == 13)
437
			{
438
 
439
				jQuery('.wpsg_refreshbutton').click(); return false;
6338 hartmut 440
 
4859 daniel 441
			}
6338 hartmut 442
 
4859 daniel 443
		} );
6338 hartmut 444
 
2742 daniel 445
		jQuery('.wpsg_form_submit').bind('change', function() {
6338 hartmut 446
 
2742 daniel 447
			jQuery('.wpsg_refreshbutton').click();
6338 hartmut 448
 
2742 daniel 449
		} );
450
 
6149 hartmut 451
		jQuery('#set_land').bind('change', function() {
6338 hartmut 452
 
6149 hartmut 453
			land = jQuery('#set_land').val();
454
			jQuery('#wpsg_land').val(land);
6338 hartmut 455
 
6149 hartmut 456
		} );
457
 
458
		// Land der Rechnungsadresse setzen
459
		land = jQuery('#set_land').val();
460
		jQuery('#wpsg_land').val(land);
6338 hartmut 461
 
5854 daniel 462
	} );
2742 daniel 463
 
6338 hartmut 464
	<?php if (isset($_REQUEST['wpsg_basket_ajax'])) { ?>
1915 daniel 465
 
3444 daniel 466
		jQuery(document).ready(function() {
6338 hartmut 467
 
468
			jQuery('.wpshopgermany_widget').load('<?php echo $this->getURL(wpsg_ShopController::URL_WIDGET_AJAX); ?>');
469
 
3444 daniel 470
		} );
1915 daniel 471
 
3444 daniel 472
	<?php } ?>
6338 hartmut 473
 
3444 daniel 474
/* ]]> */</script>