Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
2782 daniel 1
<?php
2
 
3
	/**
4
	 * Template für den Bestellablauf auf einer Seite
5
	 */
6149 hartmut 6
 
2782 daniel 7
?>
7150 thomas 8
 
9
<script type="text/javascript">/* <![CDATA[ */
10
 
11
	jQuery(document).ready(function() {
12
 
13
		<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
14
 
15
		if (typeof jQuery.validationEngine == "object")
16
		{
17
 
18
			jQuery("#form-step2").validationEngine('attach', {promptPosition : "bottomLeft", scroll: false});
19
 
20
			jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
21
				jQuery("#form-step2").validationEngine('detach');
22
			});
23
 
24
		}
25
 
26
		<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
27
 
28
		jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
29
		jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
30
		jQuery("#form-step2").validate( {
31
			ignore: '',
32
			errorClass: 'wpsg_error',
33
			onsubmit: false,
34
			showErrors: function(errorMap, errorList) {
35
 
36
				this.defaultShowErrors();
37
 
38
			}
39
		} );
40
 
41
		jQuery('#wpsg_checkout2button').bind('click', function() {
42
 
43
			var bReturn = jQuery('#form-step2').validate().form();
44
			if (jQuery('#form-step2 input.wpsg_error').length > 0) jQuery('#form-step2 input.wpsg_error')[0].focus();
45
			return bReturn;
46
 
47
		} );
48
 
49
		<?php } ?>
50
 
51
	} );
52
 
53
/* ]]> */</script>
54
 
3448 daniel 55
<div class="wpsg wpsg_onepagecheckout wpsg_checkout wpsg_checkout2 <?php echo ((isset($_REQUEST['wpsg_basket_ajax']))?'wpsg_basket_ajax':''); ?>">
2782 daniel 56
 
57
	<?php echo $this->writeFrontendMessage(); ?>
2791 daniel 58
 
6149 hartmut 59
	<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
60
		<?php $GLOBALS['step'] = 2; $this->render(WPSG_PATH_VIEW.'/warenkorb/progress.phtml'); ?>
61
	<?php } ?>
2791 daniel 62
	<form id="wpsg_basket_form" name="wpsg_basket_form"  method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>" enctype="multipart/form-data">
6149 hartmut 63
 
64
		<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1) { ?>
65
			<?php $this->view['noFormTag'] = true; $this->render(WPSG_PATH_VIEW.'/warenkorb/basket.phtml'); ?>
66
		<?php } ?>
5010 daniel 67
 
2783 daniel 68
		<div class="wpsg_clear"></div>
2782 daniel 69
 
2792 daniel 70
		 <div class="wpsg_box" id="wpsg_box_payship">
3455 daniel 71
 
2792 daniel 72
		 	<div class="wpsg_inner">
73
 
6149 hartmut 74
		 		<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
3455 daniel 75
		 		<div class="wpsg_shipping">
76
 
5140 daniel 77
		 			<h2><?php echo __('Versandarten', 'wpsg'); ?></h2>
3460 daniel 78
 
5140 daniel 79
		 			<div class="shippay_wrap">
80
		 				<?php foreach ($this->view['arShipping'] as $s) { ?>
81
		 				<div class="shippay_item_wrap">
82
 
83
							<input <?php echo (($this->view['basket']['checkout']['shipping'] == $s['id'] || sizeof($this->view['arShipping']) == 1)?'checked="checked"':''); ?> type="radio" value="<?php echo $s['id']; ?>" name="wpsg[checkout][shipping]" id="shipping_<?php echo $s['id']; ?>" />
84
 
85
		 					<?php if (wpsg_isSizedString($s['logo'])) { ?>
86
							<img class="wpsg_payship_logo" src="<?php echo $s['logo']; ?>" alt="<?php echo $s['name']; ?>" />
87
							<?php } else { ?>
88
							<div class="wpsg_payship_name"><?php echo __($s['name'], 'wpsg'); ?></div>
89
							<?php } ?>
90
		 					<?php if ((isset($s['hint']) && trim($s['hint']) != '') || $s['price'] > 0) { ?>
91
							<div id="shipping_<?php echo $s['id']; ?>_hint" class="shippay_hint">
92
								<?php if ($s['price'] > 0) { ?>
93
								<?php echo __('Gebühr', 'wpsg'); ?>: <?php echo wpsg_ff($s['price'], $this->get_option('wpsg_currency')); ?><br />
2792 daniel 94
								<?php } ?>
5140 daniel 95
								<?php echo $this->replaceUniversalPlatzhalter(__($s['hint'], 'wpsg')); ?>
3455 daniel 96
							</div>
5140 daniel 97
							<?php } ?>
98
 
99
							<div class="shippay_checkmark"></div>
100
 
101
		 				</div>
102
		 				<?php } ?>
103
		 			</div>
104
 
2792 daniel 105
				</div>
6149 hartmut 106
				<?php } ?>
2792 daniel 107
 
5010 daniel 108
				<?php if ($this->callMods('checkout_handlePayment') === true) { ?>
2792 daniel 109
 
5010 daniel 110
					<?php if (!$this->hasMod('wpsg_mod_crefopay')) { ?>
6149 hartmut 111
					<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
5010 daniel 112
					<div class="wpsg_payment">
3460 daniel 113
 
5010 daniel 114
						<h2><?php echo __('Zahlungsarten', 'wpsg'); ?></h2>
115
 
5140 daniel 116
						<div class="shippay_wrap">
117
		 				<?php foreach ($this->view['arPayment'] as $p) { ?>
118
		 				<div class="shippay_item_wrap">
119
 
120
							<input <?php echo (($this->view['basket']['checkout']['payment'] == $p['id'] || sizeof($this->view['arPayment']) == 1)?'checked="checked"':''); ?> type="radio" value="<?php echo $p['id']; ?>" name="wpsg[checkout][payment]" id="payment_<?php echo $p['id']; ?>" />
121
 
122
		 					<div class="wpsg_payship_name"><?php echo __($p['name'], 'wpsg'); ?></div>
123
 
124
		 					<?php if (wpsg_isSizedString($p['logo'])) { ?>
125
							<img class="wpsg_payship_logo" src="<?php echo $p['logo']; ?>" alt="<?php echo $p['name']; ?>" />
126
							<?php } ?>
127
 
6142 hartmut 128
		 					<?php if ((isset($p['hint']) && trim($p['hint']) != '') || $p['preis'] > 0) { ?>
5140 daniel 129
							<div id="payment_<?php echo $p['id']; ?>_hint" class="shippay_hint">
6142 hartmut 130
								<?php if ($p['preis'] > 0) { ?>
131
								<?php echo __('Gebühr', 'wpsg'); ?>: <?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?><br />
5140 daniel 132
								<?php } ?>
133
								<?php echo $this->replaceUniversalPlatzhalter(__($p['hint'], 'wpsg')); ?>
3455 daniel 134
							</div>
5010 daniel 135
							<?php } ?>
5140 daniel 136
 
137
							<div class="shippay_checkmark"></div>
138
 
139
		 				</div>
140
		 				<?php } ?>
6149 hartmut 141
		 				</div>
2792 daniel 142
 
5010 daniel 143
					</div>
144
					<?php } ?>
6149 hartmut 145
					<?php } ?>
5010 daniel 146
 
4323 daniel 147
				<?php } ?>
5010 daniel 148
 
2792 daniel 149
		 		<div class="wpsg_clear"></div>
150
 
151
		 	</div>
152
 
153
		 </div>
154
 
7150 thomas 155
		<h2><?php echo __('Kundendaten', 'wpsg'); ?></h2>
2792 daniel 156
 
7150 thomas 157
		<?php if ($this->hasMod('wpsg_mod_kundenverwaltung') && $this->get_option('wpsg_mod_kundenverwaltung_showCheckoutLogin') == '1') { ?>
158
			<div class="onepagecheckout_customer_login" style="border:1px solid #cecece; padding:20px; margin:20px 0;">
159
				<?php echo wpsg_drawForm_Checkbox('onepagecheckout_customer_login', __('Login für bestehenden Kundenaccount', 'wpsg'), $this->get_option('onepagecheckout_customer_login')); ?>
160
				<div class="onepagecheckout_customer_login_activ" style="display:none; margin:20px 0;">
161
					<?php $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_login'); ?>
162
			 	</div>
163
			 </div>
164
		 <?php } ?>
165
 
166
		 <?php if (($this->hasMod('wpsg_mod_kundenverwaltung') && $this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegister') == '1') || ($this->hasMod('wpsg_mod_kundenverwaltung') && $this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwang') == '1'))  { ?>
167
			 <div class="onepagecheckout_customer_registration" style="border:1px solid #cecece; padding:20px; margin:20px 0;">
168
				<?php echo wpsg_drawForm_Checkbox('onepagecheckout_customer_registration', __('neuen Kundenaccount registrieren', 'wpsg'), $this->get_option('onepagecheckout_customer_registration')); ?>
169
			 	<div class="onepagecheckout_customer_registration_activ" style="display:none; margin:20px 0;">
170
				 	<?php echo $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_customer_inner'); ?>
171
			 	</div>
172
			 </div>
173
		 <?php } ?>
174
 
175
		 <div class="onepagecheckout_customer_guest" style="border:1px solid #cecece; padding:20px; margin:20px 0;">
176
		 	<div class="onepagecheckout_customer_guest_label"><?php echo wpsg_drawForm_Checkbox('onepagecheckout_customer_guest', __('Als Gast bestellen', 'wpsg'), $this->get_option('onepagecheckout_customer_guest')); ?></div>
177
		 	<div class="onepagecheckout_customer_guest_activ" style="display:none; margin:20px 0;">
178
 
179
				<div class="wpsg_box" id="wpsg_box_kundendaten">
180
 
181
					<div class="wpsg_inner">
2782 daniel 182
 
7150 thomas 183
						<?php if ($this->view['pflicht']['firma'] != '2') { ?>
184
						<div class="wpsg_checkoutblock">
185
							<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
186
							<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
187
							</label>
188
							<input class="<?php echo (($this->view['pflicht']['firma'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("firma", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_firma" name="wpsg[checkout][firma]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['firma']); ?>" />
189
						</div>
190
						<?php } ?>
191
 
192
						<?php if ($this->view['pflicht']['anrede'] != '2') { ?>
193
						<div class="wpsg_checkoutblock">
194
							<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
195
							<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
196
							<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[checkout][title]">
197
								<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
198
								<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
199
								<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['basket']['checkout']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
200
							<?php } ?>
201
							</select>
202
						</div>
203
						<?php } ?>
204
 
205
						<?php if ($this->view['pflicht']['vname'] != '2') { ?>
206
						<div class="wpsg_checkoutblock">
207
							<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?>
208
							<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
209
							</label>
210
							<input class="<?php echo (($this->view['pflicht']['vname'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("vname", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="vname" name="wpsg[checkout][vname]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['vname']); ?>" />
211
						</div>
212
						<?php } ?>
2783 daniel 213
 
7150 thomas 214
						<?php if ($this->view['pflicht']['name'] != '2') { ?>
215
						<div class="wpsg_checkoutblock">
216
							<label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>
217
							<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
218
							</label>
219
							<input class="<?php echo (($this->view['pflicht']['name'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="name" name="wpsg[checkout][name]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['name']); ?>" />
220
						</div>
2783 daniel 221
						<?php } ?>
7150 thomas 222
 
223
						<?php if ($this->view['pflicht']['email'] != '2') { ?>
224
						<div class="wpsg_checkoutblock">
225
							<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?>
226
							<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
227
							</label>
228
							<input class="wpsg_input_text <?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="email" id="email" name="wpsg[checkout][email]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['email']); ?>" />
229
						</div>
2783 daniel 230
						<?php } ?>
7150 thomas 231
 
232
						<?php if (isset($this->view['pflicht']['emailconfirm']) && $this->view['pflicht']['emailconfirm'] == '1') { ?>
233
						<div class="wpsg_checkoutblock">
234
							<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?>
235
							<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
236
							</label>
237
							<input class="wpsg_input_text <?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="email" id="email2" name="wpsg[checkout][email2]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['email2']); ?>" />
238
						</div>
239
						<?php } ?>
240
 
241
						<?php if ($this->view['pflicht']['geb'] != '2') { ?>
242
						<div class="wpsg_checkoutblock">
243
							<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>
244
							<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
245
							</label>
246
							<input class="wpsg_input_text <?php echo (($this->view['pflicht']['geb'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("geb", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="geb" name="wpsg[checkout][geb]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['geb']); ?>" />
247
						</div>
248
						<?php } ?>
249
 
250
						<?php if ($this->view['pflicht']['fax'] != '2') { ?>
251
						<div class="wpsg_checkoutblock">
252
							<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
253
							<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
254
							</label>
255
							<input class="wpsg_input_text <?php echo (($this->view['pflicht']['fax'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("fax", (array)$this->view['error']))?'wpsg_error':''); ?>" type="tel" id="fax" name="wpsg[checkout][fax]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['fax']); ?>" />
256
						</div>
257
						<?php } ?>
258
 
259
						<?php if ($this->view['pflicht']['tel'] != '2') { ?>
260
						<div class="wpsg_checkoutblock">
261
							<label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?>
262
							<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
263
							</label>
264
							<input class="wpsg_input_text <?php echo (($this->view['pflicht']['tel'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("tel", (array)$this->view['error']))?'wpsg_error':''); ?>" type="tel" id="tel" name="wpsg[checkout][tel]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['tel']); ?>" />
265
						</div>
266
						<?php } ?>
267
 
268
						<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
7247 daniel 269
 
270
							<?php if ($this->view['pflicht']['wpsg_showNr'] === '1') { ?>
271
 
272
								<div class="wpsg_checkoutblock" id="wpsg_streetnr">
273
									<label for="strasse" class="street wpsg_checkout"><?php echo __('Straße:', 'wspg'); ?>
274
										<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
275
										<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[checkout][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['strasse'])); ?>" />
276
									</label>
277
									<label for="nr" class="nr wpsg_checkout"><?php echo __('Nr:', 'wpsg'); ?>
278
										<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
279
										<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("nr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="nr" name="wpsg[checkout][nr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['nr'])); ?>" />
280
									</label>
281
								</div>
282
 
283
							<?php } else { ?>
284
 
285
								<div class="wpsg_checkoutblock">
286
									<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>
287
										<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
288
									</label>
289
									<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[checkout][strasse]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['strasse']); ?>" />
290
								</div>
291
 
292
							<?php } ?>
293
 
7150 thomas 294
						<?php } ?>
295
 
296
						<?php if ($this->view['pflicht']['plz'] != '2') { ?>
297
						<div class="wpsg_checkoutblock">
298
							<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?>
299
							<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
300
							</label>
301
							<input class="wpsg_input_text <?php echo (($this->view['pflicht']['plz'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="plz" name="wpsg[checkout][plz]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['plz']); ?>" />
302
						</div>
303
						<?php } ?>
304
 
305
						<?php if ($this->view['pflicht']['ort'] != '2') { ?>
306
						<div class="wpsg_checkoutblock">
307
							<label for="ort" class="wpshopgermany_checkout"><?php echo __("Ort", "wpsg"); ?>
308
							<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
309
							</label>
310
							<input class="<?php echo (($this->view['pflicht']['ort'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="ort" name="wpsg[checkout][ort]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['ort']); ?>" />
311
						</div>
312
						<?php } ?>
313
 
314
						<?php
315
							$lhidden = '';
316
							if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1 )) {
317
								$lhidden = 'hidden="hidden"';
318
							}
319
						?>
320
 
321
						<?php if ($this->view['pflicht']['land'] != '2') { ?>
322
						<div class="wpsg_checkoutblock" <?php echo $lhidden;?>>
323
							<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?>
324
							<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
325
							</label>
326
							<select name="wpsg[checkout][land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
327
								<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
328
								<?php foreach ($this->view['laender'] as $l) { ?>
329
								<option value="<?php echo wpsg_hspc($l['id']); ?>" <?php echo (($l['id'] == $this->view['basket']['checkout']['land'])?'selected="selected"':(($this->get_option('wpsg_defaultland') == $l['id'])?'selected="selected"':'')); ?>><?php echo wpsg_hspc(__($l['name'], 'wpsg')); ?></option>
330
								<?php } ?>
331
							</select>
332
						</div>
333
						<?php } ?>
334
 
335
						<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
336
						<div class="wpsg_checkoutblock">
337
							<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?>
338
							<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
339
							</label>
340
							<input class="<?php echo (($this->view['pflicht']['ustidnr'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ustidnr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_ustidnr" name="wpsg[checkout][ustidnr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['ustidnr'])); ?>" />
341
						</div>
342
						<?php } ?>
343
 
344
						<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
345
						<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
346
						<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
347
						<div class="wpsg_checkoutblock">
348
							<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
349
								<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
350
								<?php if ($c['typ'] == '0') { // Textfeld ?>
351
								<input class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" type="text" value="<?php if (isset($this->view['basket']['checkout']['custom'][$c_id])) echo wpsg_hspc($this->view['basket']['checkout']['custom'][$c_id]); ?>" />
352
								<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
353
								<select class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[checkout][custom][<?php echo $c_id; ?>]">
354
									<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
355
									<?php foreach ((array)$arAuswahl as $a) { ?>
356
									<option value="<?php echo wpsg_hspc($a); ?>" <?php if (isset($this->view['basket']['checkout']['custom'][$c_id])) echo (($a == $this->view['basket']['checkout']['custom'][$c_id])?'selected="selected"':''); ?>><?php echo wpsg_hspc($a); ?></option>
357
									<?php } ?>
358
								</select>
359
								<?php } else if ($c['typ'] == '2') { // Checkbox ?>
360
								<input type="hidden" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="0" />
361
								<input class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> checkbox" type="checkbox" value="1" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="1" <?php if(isset($this->view['basket']['checkout']['custom'][$c_id])) echo wpsg_hspc(($this->view['basket']['checkout']['custom'][$c_id] == '1')?'checked="checked"':''); ?> />
362
								<?php } ?>
363
							</label>
364
						</div>
365
						<?php } } ?>
366
						<?php } ?>
367
						<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
368
 
369
						<div class="wpsg_clear"></div>
370
 
371
						<?php /* $this->callMods('checkout_customer_inner'); */ ?>
372
 
373
						<br />
374
 
375
						<?php $this->callMods('checkout_inner_prebutton', array(&$this->view)); ?>
376
 
377
						<div class="wpsg_box">
378
 
379
							<h2><?php echo __('Bestellkommentar', 'wpsg'); ?></h2>
380
 
381
							<div class="wpsg_spacer"></div>
382
 
383
							<div class="wpsg_inner wpsg_commentblock">
384
								<textarea name="wpsg[checkout][comment]" id="wpsg_checkout_comment"><?php echo wpsg_hspc($this->view['basket']['checkout']['comment']); ?></textarea>
385
							</div>
386
						</div>
387
 
388
						<div class="wpsg_mandatoryfield_hint">
389
							<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
390
						</div>
391
 
392
					</div>
2783 daniel 393
 
7150 thomas 394
				</div>
2783 daniel 395
 
7150 thomas 396
		 	</div>
2783 daniel 397
 
7150 thomas 398
		 </div>
399
 
400
		 <br />
401
 
402
		<?php /* Abfrage Satollo-Newsletter */ ?>
403
		<?php echo $this->callMod('wpsg_mod_nlsatolo', 'checkout_customer_inner'); ?>
404
 
405
		<?php /* Einverständnisabfrage Trusted Shops */ ?>
406
		<?php echo $this->callMod('wpsg_mod_trustedshops', 'checkout_customer_inner'); ?>
2782 daniel 407
 
7150 thomas 408
		<div class="wpsg_clear"></div>
2783 daniel 409
 
2782 daniel 410
		<br />
411
 
412
		<?php $this->ClearSessionErrors(); ?>
413
 
414
		<br />
415
 
6149 hartmut 416
		<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
2791 daniel 417
		<input type="submit" onclick="location.href='<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>'; return false;" class="wpsg_button wpsg_basketbutton" value="<?php echo __('Zurück zum Warenkorb', 'wpsg'); ?>" name="wpsg_redirect_basket" />
6149 hartmut 418
		<?php } ?>
3647 daniel 419
		<input type="submit" id="wpsg_checkout2button" class="wpsg_button wpsg_checkout2button" value="<?php echo __('Weiter', 'wpsg'); ?>" name="wpsg_checkout" />
2782 daniel 420
 
2866 daniel 421
		<div class="wpsg_clear"></div>
422
 
2782 daniel 423
		<br />
424
 
425
	</form>
426
 
427
	<script type="text/javascript">/* <![CDATA[ */
5140 daniel 428
 
429
		function wpsg_setShipPay(jqElement)
430
		{
431
 
432
			jqElement.parents('.shippay_wrap').find('.shippay_item_wrap').removeClass('shippay_active');
433
			jqElement.addClass('shippay_active');
434
 
435
			jqElement.find('input').prop('checked', true);
436
 
437
			return true;
438
 
439
		}
2791 daniel 440
 
2782 daniel 441
		jQuery(document).ready(function() {
2791 daniel 442
 
7150 thomas 443
			jQuery('#onepagecheckout_customer_login').bind('change', function() {
444
 
445
				if (jQuery(this).is(':checked')) {
446
 
447
					jQuery('.onepagecheckout_customer_login_activ').show();
448
					jQuery('.onepagecheckout_customer_guest_label').hide();
449
					jQuery('.onepagecheckout_customer_registration').hide();
450
 
451
				} else {
452
 
453
					jQuery('.onepagecheckout_customer_login_activ').hide();
454
					jQuery('.onepagecheckout_customer_guest_label').show();
455
					jQuery('.onepagecheckout_customer_registration').show();
456
 
457
				}
458
 
459
			} ).change();
460
 
461
			jQuery('#onepagecheckout_customer_registration').bind('change', function() {
462
 
463
				if (jQuery(this).is(':checked')) {
464
 
465
					jQuery('.onepagecheckout_customer_registration_activ, .onepagecheckout_customer_guest_activ').show();
466
					jQuery('.onepagecheckout_customer_login').hide();
467
					jQuery('.onepagecheckout_customer_guest_label').hide();
468
 
469
				} else {
470
 
471
					jQuery('.onepagecheckout_customer_registration_activ, .onepagecheckout_customer_guest_activ').hide();
472
					jQuery('.onepagecheckout_customer_login').show();
473
					jQuery('.onepagecheckout_customer_guest_label').show();
474
 
475
				}
476
 
477
			} ).change();
478
 
479
			jQuery('#onepagecheckout_customer_guest').bind('change', function() {
480
 
481
				if (jQuery(this).is(':checked')) {
482
 
483
					jQuery('.onepagecheckout_customer_guest_activ').show();
484
					jQuery('.onepagecheckout_customer_login').hide();
485
					jQuery('.onepagecheckout_customer_registration').hide();
486
 
487
				} else {
488
					jQuery('.onepagecheckout_customer_guest_activ').hide();
489
					jQuery('.onepagecheckout_customer_login').show();
490
					jQuery('.onepagecheckout_customer_registration').show();
491
				}
492
 
493
			} ).change();
494
 
5140 daniel 495
			jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
496
 
497
				wpsg_setShipPay(jQuery(this));
498
 
499
				jQuery.ajax( {
500
					'url': wpsg_ajax.ajaxurl,
501
					'method': 'get',
502
					'data': {
503
						'wpsg[action]': 'updateCheckout',
504
						'wpsg_form_data': jQuery('#wpsg_checkout_form').serialize()
505
					},
506
					'async': true,
507
					'success': function(data) { }
508
				} );
509
 
510
			} );
511
 
512
			jQuery('.shippay_wrap .shippay_item_wrap').each(function() {
513
 
514
				if (jQuery(this).find('input[type="radio"]').prop('checked')) wpsg_setShipPay(jQuery(this));
515
 
516
			} );
517
 
3647 daniel 518
			jQuery('#wpsg_box_kundendaten input').bind('keypress', function(e) {
519
 
520
				if(e.keyCode == 13)
521
			    {
522
 
523
			        jQuery('#wpsg_checkout2button').click();
524
			        return false;
525
 
526
			    }
527
 
528
			} );
529
 
3455 daniel 530
			jQuery('.shippay input[type="radio"]').bind('change', function() {
531
 
532
				jQuery(this).parents('.shippay_wrap').find('.shippay').removeClass('wpsg_hover');
533
 
534
				if (jQuery(this).prop("checked"))
535
				{
536
 
537
					jQuery(this).parents('.shippay').addClass('wpsg_hover');
538
 
539
				}
3589 daniel 540
 
3457 daniel 541
				wpsg_showPaymentHint();
4126 daniel 542
				wpsg_showShippingHint();
3455 daniel 543
 
544
			} );
545
 
546
			jQuery('.shippay input[type="radio"]:checked').change();
547
			jQuery('.shippay').bind('click', function(e) {
548
 
3589 daniel 549
				if (jQuery(this).hasClass('wpsg_hover')) return true;
3523 daniel 550
 
3455 daniel 551
				jQuery(this).find('input[type="radio"]').attr("checked", "checked");
552
				jQuery(this).find('input[type="radio"]').change();
553
 
554
			} );
555
 
2791 daniel 556
			<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
2782 daniel 557
			if (typeof jQuery.validationEngine == "object")
558
			{
559
 
3647 daniel 560
				jQuery("#wpsg_basket_form").validationEngine('attach', { promptPosition : "bottomLeft", scroll: false } );
561
 
562
				jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function() {
563
					jQuery("#wpsg_basket_form").validationEngine('detach');
564
				});
2782 daniel 565
 
566
			}
2791 daniel 567
			<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
568
 
569
			jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
570
			jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
571
			jQuery("#wpsg_basket_form").validate( {
572
				ignore: '',
573
				errorClass: 'wpsg_error',
574
				onsubmit: false,
575
				showErrors: function(errorMap, errorList) {
2783 daniel 576
 
2791 daniel 577
					this.defaultShowErrors();
578
					var errors = this.numberOfInvalids();
579
 
580
				}
581
			} );
582
 
2868 daniel 583
			jQuery('.wpsg_checkout2button').bind('click', function() {
3021 daniel 584
 
585
				var bReturn = jQuery('#wpsg_basket_form').validate().form();
586
				if (jQuery('#wpsg_basket_form input.wpsg_error').length > 0) jQuery('#wpsg_basket_form input.wpsg_error')[0].focus();
587
				return bReturn;
588
 
2783 daniel 589
			} );
2791 daniel 590
 
3647 daniel 591
			<?php } ?>
6149 hartmut 592
 
6803 hartmut 593
			land = <?php if (wpsg_isSizedInt($this->view['basket']['checkout']['land'])) echo $this->view['basket']['checkout']['land'];
594
					else echo $this->get_option('wpsg_defaultland'); ?>;
595
 
6149 hartmut 596
			// Land der Rechnungsadresse setzen
6803 hartmut 597
			//land = jQuery('#set_land').val();
6149 hartmut 598
			jQuery('#wpsg_land').val(land);
599
			//alert('land: ' + land);
3448 daniel 600
 
2782 daniel 601
		} );
602
 
603
	/* ]]> */</script>
5382 daniel 604
 
2782 daniel 605
</div>