Subversion Repositories wpShopGermany4

Rev

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