Subversion Repositories wpShopGermany4

Rev

Rev 7488 | Rev 7493 | 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
 
149
 
150
			<?php if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) { $bLine = true; ?>
7349 daniel 151
 
7486 daniel 152
				<?php foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) { ?>
153
 
154
					<div class="basket_sum_row">
155
						<div class="title">
156
							<?php echo __('Gutschein', 'wpsg'); ?> <?php echo ((wpsg_isSizedString($gs['code']))?'('.$gs['code'].')':''); ?>
7488 thomas 157
							<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 158
						</div>
159
						<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
160
							<div class="colgsr"><?php echo __('anteilig', 'wpsg'); ?></div>
161
						<?php } ?>
162
						<div class="value"><?php
163
 
164
							echo wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
7349 daniel 165
 
7486 daniel 166
							if (strpos($gs['set'], '%') !== false) {
167
 
168
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($gs['set']), '%').')</span>';
169
 
170
							}
171
 
172
						?></div>
7349 daniel 173
 
7486 daniel 174
					</div>
7349 daniel 175
 
7486 daniel 176
				<?php } ?>
7349 daniel 177
 
6330 hartmut 178
			<?php } ?>
6338 hartmut 179
 
6330 hartmut 180
			<div class="basket_sum_row">
181
				<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && wpsg_tf($this->view['basket']['sum']['preis_rabatt']) > 0) { ?>
182
					<div class="title">
183
						<?php echo __("Rabatt", "wpsg"); $bLine = true; ?>:
2766 daniel 184
					</div>
6330 hartmut 185
					<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
186
						<div class="value">
187
							<?php echo __('anteilig', 'wpsg'); ?>
188
						</div>
2766 daniel 189
					<?php } ?>
6330 hartmut 190
						<div class="value">
191
							<?php echo '-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')); ?>
192
						</div>
193
				<?php } ?>
194
			</div>
195
 
196
			<?php if ($bLine == true) { ?>
197
				<div class="wpsg_spacer"></div>
1067 daniel 198
			<?php } ?>
6330 hartmut 199
 
200
			<div class="basket_sum_row">
201
				<div class="title2">
3024 daniel 202
					<?php if ($this->get_option("wpsg_kleinunternehmer") == "1") { ?>
6330 hartmut 203
						<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
3024 daniel 204
					<?php } else { ?>
6330 hartmut 205
						<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
6338 hartmut 206
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
6330 hartmut 207
						<?php } else { ?>
208
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
209
						<?php } ?>
3024 daniel 210
					<?php } ?>
6330 hartmut 211
				</div>
212
				<div class="value">
2742 daniel 213
					<?php echo wpsg_ff($this->view['basket']['sum']['preis'], $this->get_option('wpsg_currency')); ?>
6330 hartmut 214
				</div>
215
			</div>
6338 hartmut 216
 
6330 hartmut 217
			<div class="basket_sum_row">
218
				<div class="title">
2742 daniel 219
					<?php echo wpsg_translate(__('<a href="#1#">Versandkosten</a>:', 'wpsg'),
220
						$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN)
4893 daniel 221
					); ?>
6340 hartmut 222
					<br />
6330 hartmut 223
					<?php if (sizeof($this->arShipping) > 1) { ?>
2742 daniel 224
					<select name="set_shipping" class="wpsg_form_submit set_shipping">
3444 daniel 225
						<option><?php echo __('Bitte wählen', 'wpsg')?></option>
6330 hartmut 226
						<?php foreach ($this->arShipping as $s_id => $s) { ?>
4122 daniel 227
						<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 228
						<?php } ?>
229
					</select>
5958 daniel 230
					<?php } else if (!wpsg_isSizedArray($this->arShipping) || !array_key_exists($this->view['basket']['checkout']['shipping'], $this->arShipping)) { ?>
231
					<span><?php echo __('Keine Versandart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
232
					<?php } else { ?>
4893 daniel 233
					<span><?php echo $this->arShipping[$this->view['basket']['checkout']['shipping']]['name']; ?></span>
234
					<?php } ?>
2988 daniel 235
					<?php if ($this->get_option('wpsg_hideBasketCountrySelect') != '1') { ?>
6149 hartmut 236
					<select name="set_land" id="set_land" class="wpsg_form_submit set_land">
2742 daniel 237
						<?php foreach ($this->view['arLander'] as $l_id => $l) { ?>
4062 daniel 238
						<option <?php echo (($l_id == $this->getFrontendCountry(true))?'selected="selected"':''); ?> value="<?php echo $l_id; ?>"><?php echo wpsg_hspc(__($l, 'wpsg')); ?></option>
2742 daniel 239
						<?php } ?>
6330 hartmut 240
					</select>
2988 daniel 241
					<?php } else { ?>
242
					<input type="hidden" name="set_land" value="<?php echo $this->view['basket']['checkout']['shipping_land']; ?>" />
243
					<?php } ?>
6330 hartmut 244
				</div>
245
				<div class="value">
7358 daniel 246
					<?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 247
 
248
						$shipping_tax_key = $this->view['basket']['arCalculation']['shipping'][0]['tax_key'];
7358 daniel 249
 
7347 daniel 250
						if ($shipping_tax_key === '0') {
251
 
6330 hartmut 252
							echo __('anteilig', 'wpsg');
7347 daniel 253
 
254
						} else {
255
 
256
							echo wpsg_ff($this->view['basket']['arCalculation']['tax'][$shipping_tax_key]['tax_value'], '%');
257
 
6330 hartmut 258
						}
7347 daniel 259
 
260
				 	} ?>
261
				</div>
262
				<div class="value">
263
					<?php
264
 
7358 daniel 265
						if (isset($this->view['basket']['arCalculation']['shipping'][0]['tax_key'])) {
7347 daniel 266
 
7358 daniel 267
							echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency'));
7347 daniel 268
 
7358 daniel 269
							if (strpos($this->view['basket']['arCalculation']['shipping'][0]['set'], '%') !== false) {
270
 
271
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['shipping'][0]['set']), '%').')</span>';
272
 
273
							}
7347 daniel 274
 
6330 hartmut 275
						}
7347 daniel 276
 
6330 hartmut 277
					?>
278
				</div>
279
			</div>
6338 hartmut 280
 
4323 daniel 281
			<?php /* Zeile für Zahlungsart BEGIN */ ?>
282
			<?php if (!$this->hasMod('wpsg_mod_crefopay')) { ?>
6330 hartmut 283
				<div class="basket_sum_row">
284
					<div class="title">
285
						<?php echo __('Zahlungsart:', 'wpsg').'&nbsp;&nbsp;&nbsp;&nbsp;'; ?>
286
						<?php if (sizeof($this->arPayment) > 1) { ?>
6332 hartmut 287
						<select name="set_payment" class="wpsg_form_submit set_payment">
288
							<option><?php echo __('Bitte wählen', 'wpsg')?></option>
6330 hartmut 289
							<?php foreach ($this->arPayment as $p_id => $p) { ?>
290
							<option <?php echo (($p['id'] == $this->view['basket']['checkout']['payment'])?'selected="selected"':''); ?> value="<?php echo $p_id; ?>"><?php echo wpsg_hspc($p['name']); ?></option>
291
							<?php } ?>
292
						</select>
293
						<?php } else if (!wpsg_isSizedArray($this->arPayment) || !array_key_exists($this->view['basket']['checkout']['payment'], $this->arPayment)) { ?>
294
						<span><?php echo __('Keine Zahlungsart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
295
						<?php } else { ?>
296
						<span><?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?></span>
2742 daniel 297
						<?php } ?>
6330 hartmut 298
					</div>
299
					<div class="value">
7358 daniel 300
						<?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 301
 
302
							$payment_tax_key = $this->view['basket']['arCalculation']['payment'][0]['tax_key'];
303
 
304
							if ($payment_tax_key === '0') {
305
 
6330 hartmut 306
								echo __('anteilig', 'wpsg');
7347 daniel 307
 
308
							} else {
309
 
310
								echo wpsg_ff($this->view['basket']['arCalculation']['tax'][$payment_tax_key]['tax_value'], '%');
311
 
6330 hartmut 312
							}
7347 daniel 313
 
6330 hartmut 314
						} ?>
315
					</div>
316
					<div class="value">
7347 daniel 317
						<?php
318
 
7358 daniel 319
							if (isset($this->view['basket']['arCalculation']['payment'][0]['tax_key'])) {
320
 
321
								echo wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency'));
322
 
323
								if (strpos($this->view['basket']['arCalculation']['payment'][0]['set'], '%') !== false) {
324
 
325
									echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['payment'][0]['set']), '%').')</span>';
326
 
327
								}
7347 daniel 328
 
329
							}
330
 
331
						?>
6330 hartmut 332
					</div>
333
				</div>
4323 daniel 334
			<?php } ?>
335
			<?php /* Zeile für Zahlungsart ENDE */ ?>
6330 hartmut 336
 
1564 daniel 337
			<?php if (get_option("wpsg_kleinunternehmer") == "1") { ?>
6330 hartmut 338
				<div class="basket_sum_row">
339
					<div class="title2">
340
						<?php echo get_option('wpsg_kleinunternehmer_text'); ?>
341
					</div>
342
					<div class="value">
343
						<?php echo __('&nbsp;'); ?>
344
					</div>
345
				</div>
346
 
347
				<div class="basket_sum_row">
348
					<div class="title2">
349
						<?php echo __('Gesamtpreis', 'wpsg'); ?>:
350
					</div>
351
					<div class="sum">
352
						<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
353
					</div>
354
				</div>
355
			<?php } else { ?>
356
 
357
				<div class="basket_sum_row">
358
					<div class="title2">
4089 daniel 359
						<?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:
6330 hartmut 360
					</div>
361
					<div class="sum">
4089 daniel 362
						<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_netto'], $this->get_option('wpsg_currency')); ?>
6330 hartmut 363
					</div>
364
				</div>
365
 
366
				<?php foreach ($this->view['basket']['mwst'] as $mwst) { ?>
367
					<div class="basket_sum_row">
368
						<div class="title2">
6332 hartmut 369
							<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), __($mwst['name'], 'wpsg')); ?>:
6330 hartmut 370
						</div>
371
						<div class="value">
372
							<?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
373
						</div>
374
					</div>
1564 daniel 375
				<?php } ?>
6330 hartmut 376
				<div class="wpsg_spacer"></div>
377
				<div class="basket_sum_row">
378
					<div class="title2">
4089 daniel 379
						<?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:
6330 hartmut 380
					</div>
381
					<div class="sum">
4089 daniel 382
						<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
6330 hartmut 383
					</div>
384
				</div>
385
				<div class="wpsg_spacer"></div>
1067 daniel 386
			<?php } ?>
7486 daniel 387
 
388
			<?php $this->callMod('wpsg_mod_gutschein', 'basket_row_end_coupon'); ?>
389
 
2783 daniel 390
			<?php $this->callMods('basket_row_end', array(&$this->view)); ?>
6338 hartmut 391
 
6330 hartmut 392
			<br />
393
			<div class="wpsg_spacer"></div>
7214 daniel 394
 
6330 hartmut 395
			<?php $this->callMods('basket_inner_prebutton', array(&$this->view)); ?>
6338 hartmut 396
 
6330 hartmut 397
		</div>
6338 hartmut 398
 
4996 daniel 399
		<input type="hidden" name="wpsg_basket_submit" value="1" />
6338 hartmut 400
 
3448 daniel 401
		<input type="submit" class="wpsg_button wpsg_refreshbutton" value="<?php echo __('aktualisieren', 'wpsg'); ?>" name="wpsg_basket_refresh" />
6149 hartmut 402
		<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
403
		<?php } else { ?>
7214 daniel 404
			<input type="submit" class="wpsg_button wpsg_checkoutbutton" id="wpsg_basket_submit" value="<?php echo __('zur Kasse', 'wpsg'); ?>" name="wpsg_checkout" />
6338 hartmut 405
 
6149 hartmut 406
			<br /><br />
7379 thomas 407
 
408
			<?php /* Weiter-shoppen-Seite (auskommentierte Zeile: Ziel ist die Blogstartseite) */ ?>
409
			<?php echo wpsg_translate(__('<a href="#1#">weiter shoppen</a>', 'wpsg'), $this->getURL(wpsg_ShopController::URL_BASKET_MORE)); ?>
410
			<?php /* <a href="<?php echo WPSG_URL_WP;?>" class="wpsg_basket_weiter_shoppen2"><?php echo __('weiter shoppen', 'wpsg'); ?></a> */?>
411
 
6330 hartmut 412
		<?php } ?>
1067 daniel 413
		<div class="wpsg_clear"></div>
6338 hartmut 414
 
1144 daniel 415
		<?php $this->ClearSessionErrors(); ?>
6330 hartmut 416
 
417
	<?php if (!isset($this->view['noFormTag'])) { ?>
418
		</form>
6149 hartmut 419
	<?php } ?>
6338 hartmut 420
 
6330 hartmut 421
	<br />
1390 daniel 422
	<?php $this->callMods('basket_after', array(&$this->view)); ?>
7214 daniel 423
 
1067 daniel 424
	<?php } else { ?>
425
	<p><?php echo __('Keine Produkte im Warenkorb.', 'wpsg'); ?></p>
426
	<?php } ?>
6338 hartmut 427
 
1915 daniel 428
</div>
429
 
5854 daniel 430
<script type="text/javascript">/* <![CDATA[ */
2742 daniel 431
 
5854 daniel 432
	jQuery(document).ready(function() {
2742 daniel 433
 
4883 daniel 434
		jQuery('.wpsg_form_submit_return').bind('keypress', function(e) {
4859 daniel 435
 
436
			var code = e.keyCode || e.which;
437
 
438
			if (code == 13)
439
			{
440
 
441
				jQuery('.wpsg_refreshbutton').click(); return false;
6338 hartmut 442
 
4859 daniel 443
			}
6338 hartmut 444
 
4859 daniel 445
		} );
6338 hartmut 446
 
2742 daniel 447
		jQuery('.wpsg_form_submit').bind('change', function() {
6338 hartmut 448
 
2742 daniel 449
			jQuery('.wpsg_refreshbutton').click();
6338 hartmut 450
 
2742 daniel 451
		} );
452
 
6149 hartmut 453
		jQuery('#set_land').bind('change', function() {
6338 hartmut 454
 
6149 hartmut 455
			land = jQuery('#set_land').val();
456
			jQuery('#wpsg_land').val(land);
6338 hartmut 457
 
6149 hartmut 458
		} );
459
 
460
		// Land der Rechnungsadresse setzen
461
		land = jQuery('#set_land').val();
462
		jQuery('#wpsg_land').val(land);
6338 hartmut 463
 
5854 daniel 464
	} );
2742 daniel 465
 
6338 hartmut 466
	<?php if (isset($_REQUEST['wpsg_basket_ajax'])) { ?>
1915 daniel 467
 
3444 daniel 468
		jQuery(document).ready(function() {
6338 hartmut 469
 
470
			jQuery('.wpshopgermany_widget').load('<?php echo $this->getURL(wpsg_ShopController::URL_WIDGET_AJAX); ?>');
471
 
3444 daniel 472
		} );
1915 daniel 473
 
3444 daniel 474
	<?php } ?>
6338 hartmut 475
 
3444 daniel 476
/* ]]> */</script>