Subversion Repositories wpShopGermany4

Rev

Rev 6872 | Rev 7247 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6872 Rev 7150
Line 3... Line 3...
3
	/**
3
	/**
4
	 * Template für den Bestellablauf auf einer Seite
4
	 * Template für den Bestellablauf auf einer Seite
5
	 */
5
	 */
6
 
6
 
7
?>
7
?>
-
 
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
 
8
<div class="wpsg wpsg_onepagecheckout wpsg_checkout wpsg_checkout2 <?php echo ((isset($_REQUEST['wpsg_basket_ajax']))?'wpsg_basket_ajax':''); ?>">
55
<div class="wpsg wpsg_onepagecheckout wpsg_checkout wpsg_checkout2 <?php echo ((isset($_REQUEST['wpsg_basket_ajax']))?'wpsg_basket_ajax':''); ?>">
9
 
56
 
10
	<?php echo $this->writeFrontendMessage(); ?>
57
	<?php echo $this->writeFrontendMessage(); ?>
11
	 
58
	 
12
	<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
59
	<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
Line 18... Line 65...
18
			<?php $this->view['noFormTag'] = true; $this->render(WPSG_PATH_VIEW.'/warenkorb/basket.phtml'); ?>
65
			<?php $this->view['noFormTag'] = true; $this->render(WPSG_PATH_VIEW.'/warenkorb/basket.phtml'); ?>
19
		<?php } ?> 
66
		<?php } ?> 
20
				    
67
				    
21
		<div class="wpsg_clear"></div>
68
		<div class="wpsg_clear"></div>
22
		 
69
		 
23
		<?php /* Einbindung des Logins im Checkout */ ?>	
-
 
24
		<?php $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_login'); ?>
-
 
25
		 
-
 
26
		 <div class="wpsg_box" id="wpsg_box_payship">
70
		 <div class="wpsg_box" id="wpsg_box_payship">
27
		 		 
71
		 		 
28
		 	<div class="wpsg_inner">
72
		 	<div class="wpsg_inner">
29
		 	
73
		 	
30
		 		<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
74
		 		<?php if ($this->get_option('wpsg_mod_onepagecheckout_basket') == 0) { ?>
Line 106... Line 150...
106
		 	
150
		 	
107
		 	</div>
151
		 	</div>
108
		 
152
		 
109
		 </div>
153
		 </div>
110
		 
154
		 
111
		<div class="wpsg_box" id="wpsg_box_kundendaten">
155
		<h2><?php echo __('Kundendaten', 'wpsg'); ?></h2>
112
		
156
		
113
			<h2><?php echo __('Kundendaten', 'wpsg'); ?></h2>
-
 
114
 
-
 
115
			<div class="wpsg_spacer"></div>
-
 
116
			
-
 
117
			<div class="wpsg_inner">
-
 
118
		
-
 
119
				<?php if ($this->view['pflicht']['firma'] != '2') { ?>
-
 
120
				<div class="wpsg_checkoutblock">
-
 
121
					<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
-
 
122
					<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
157
		<?php if ($this->hasMod('wpsg_mod_kundenverwaltung') && $this->get_option('wpsg_mod_kundenverwaltung_showCheckoutLogin') == '1') { ?>
123
					</label>
-
 
124
					<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']); ?>" />
158
			<div class="onepagecheckout_customer_login" style="border:1px solid #cecece; padding:20px; margin:20px 0;">
125
				</div>
-
 
126
				<?php } ?>
-
 
127
			
-
 
128
				<?php if ($this->view['pflicht']['anrede'] != '2') { ?>
-
 
129
				<div class="wpsg_checkoutblock">
-
 
130
					<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
-
 
131
					<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
-
 
132
					<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]">
159
				<?php echo wpsg_drawForm_Checkbox('onepagecheckout_customer_login', __('Login für bestehenden Kundenaccount', 'wpsg'), $this->get_option('onepagecheckout_customer_login')); ?>
133
						<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
160
				<div class="onepagecheckout_customer_login_activ" style="display:none; margin:20px 0;">
134
						<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
161
					<?php $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_login'); ?>
135
						<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['basket']['checkout']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
-
 
136
					<?php } ?>						
-
 
137
					</select>
162
			 	</div>
138
				</div>
163
			 </div>
139
				<?php } ?>
164
		 <?php } ?>
140
			
165
		 
141
				<?php if ($this->view['pflicht']['vname'] != '2') { ?>
-
 
142
				<div class="wpsg_checkoutblock">
-
 
143
					<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?> 
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'))  { ?>
144
					<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
167
			 <div class="onepagecheckout_customer_registration" style="border:1px solid #cecece; padding:20px; margin:20px 0;">
145
					</label>
-
 
146
					<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']); ?>" />		
168
				<?php echo wpsg_drawForm_Checkbox('onepagecheckout_customer_registration', __('neuen Kundenaccount registrieren', 'wpsg'), $this->get_option('onepagecheckout_customer_registration')); ?>
147
				</div>
-
 
148
				<?php } ?>
-
 
149
				
-
 
150
				<?php if ($this->view['pflicht']['name'] != '2') { ?>
-
 
151
				<div class="wpsg_checkoutblock">
-
 
152
					<label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>
169
			 	<div class="onepagecheckout_customer_registration_activ" style="display:none; margin:20px 0;">
153
					<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
170
				 	<?php echo $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_customer_inner'); ?>
154
					</label>
-
 
155
					<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']); ?>" />
171
			 	</div>
156
				</div>
172
			 </div>
157
				<?php } ?>
173
		 <?php } ?>
158
				
174
		 
159
				<?php if ($this->view['pflicht']['email'] != '2') { ?>
-
 
160
				<div class="wpsg_checkoutblock">
-
 
161
					<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?> 
175
		 <div class="onepagecheckout_customer_guest" style="border:1px solid #cecece; padding:20px; margin:20px 0;">
162
					<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
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>
163
					</label>
-
 
164
					<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']); ?>" />
177
		 	<div class="onepagecheckout_customer_guest_activ" style="display:none; margin:20px 0;">
165
				</div>
-
 
166
				<?php } ?>
-
 
167
				
178
		 				 		 
168
				<?php if (isset($this->view['pflicht']['emailconfirm']) && $this->view['pflicht']['emailconfirm'] == '1') { ?>
-
 
169
				<div class="wpsg_checkoutblock">
179
				<div class="wpsg_box" id="wpsg_box_kundendaten">
170
					<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?> 
-
 
171
					<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
172
					</label>
-
 
173
					<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']); ?>" />
180
					
174
				</div>
-
 
175
				<?php } ?>
181
					<div class="wpsg_inner">
176
				
182
				
177
				<?php if ($this->view['pflicht']['geb'] != '2') { ?>
183
						<?php if ($this->view['pflicht']['firma'] != '2') { ?>
178
				<div class="wpsg_checkoutblock">
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>
179
					<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>
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"); ?> 
180
					<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
208
							<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
181
					</label>
209
							</label>
182
					<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']); ?>" />
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']); ?>" />		
183
				</div>
211
						</div>
184
				<?php } ?>
212
						<?php } ?>
185
						
213
						
186
				<?php if ($this->view['pflicht']['fax'] != '2') { ?>
-
 
187
				<div class="wpsg_checkoutblock">
-
 
188
					<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
-
 
189
					<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
190
					</label>
-
 
191
					<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']); ?>" />
214
						<?php if ($this->view['pflicht']['name'] != '2') { ?>
192
				</div>
-
 
193
				<?php } ?>
-
 
194
				
-
 
195
				<?php if ($this->view['pflicht']['tel'] != '2') { ?>
-
 
196
				<div class="wpsg_checkoutblock">
-
 
197
					<label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?>
-
 
198
					<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
199
					</label>
-
 
200
					<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']); ?>" />
215
						<div class="wpsg_checkoutblock">
201
				</div>
-
 
202
				<?php } ?>
-
 
203
			
-
 
204
				<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
-
 
205
				<div class="wpsg_checkoutblock">
-
 
206
					<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?> 
-
 
207
					<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
208
					</label>
-
 
209
					<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']); ?>" />		
216
							<label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>
210
				</div>
-
 
211
				<?php } ?>
-
 
212
			
-
 
213
				<?php if ($this->view['pflicht']['plz'] != '2') { ?>
-
 
214
				<div class="wpsg_checkoutblock">
-
 
215
					<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?> 
-
 
216
					<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
217
					</label>
-
 
218
					<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']); ?>" />
217
							<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
219
				</div>
-
 
220
				<?php } ?>
-
 
221
				
-
 
222
				<?php if ($this->view['pflicht']['ort'] != '2') { ?>
-
 
223
				<div class="wpsg_checkoutblock">
-
 
224
					<label for="ort" class="wpshopgermany_checkout"><?php echo __("Ort", "wpsg"); ?> 
-
 
225
					<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
226
					</label>
-
 
227
					<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']); ?>" />
218
							</label>
228
				</div>
-
 
229
				<?php } ?>
-
 
230
				
-
 
231
				<?php
-
 
232
					$lhidden = '';
-
 
233
					if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1 )) { 
-
 
234
						$lhidden = 'hidden="hidden"';
-
 
235
					}
-
 
236
				?>
-
 
237
				
-
 
238
				<?php if ($this->view['pflicht']['land'] != '2') { ?>
-
 
239
				<div class="wpsg_checkoutblock" <?php echo $lhidden;?>>
-
 
240
					<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?> 
-
 
241
					<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
242
					</label>					
-
 
243
					<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">
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']); ?>" />
244
						<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
-
 
245
						<?php foreach ($this->view['laender'] as $l) { ?>
-
 
246
						<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>
220
						</div>
247
						<?php } ?>
221
						<?php } ?>
248
					</select>
-
 
249
				</div>
-
 
250
				<?php } ?>
-
 
251
				
222
						
252
				<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
223
						<?php if ($this->view['pflicht']['email'] != '2') { ?>
253
				<div class="wpsg_checkoutblock">
224
						<div class="wpsg_checkoutblock">
254
					<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?> 
-
 
255
					<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
256
					</label>
-
 
257
					<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'])); ?>" />
225
							<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?> 
258
				</div>
-
 
259
				<?php } ?>
-
 
260
				
-
 
261
				<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
-
 
262
				<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
-
 
263
				<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
-
 
264
				<div class="wpsg_checkoutblock">
-
 
265
					<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
-
 
266
						<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
-
 
267
						<?php if ($c['typ'] == '0') { // Textfeld ?>
-
 
268
						<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]); ?>" />
226
							<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
269
						<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
-
 
270
						<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; ?>]">
-
 
271
							<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
-
 
272
							<?php foreach ((array)$arAuswahl as $a) { ?>
-
 
273
							<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>
-
 
274
							<?php } ?>
-
 
275
						</select>
227
							</label>
276
						<?php } else if ($c['typ'] == '2') { // Checkbox ?>
-
 
277
						<input type="hidden" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="0" />
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']); ?>" />
278
						<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"':''); ?> />
229
						</div>
279
						<?php } ?>
230
						<?php } ?>
-
 
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>
280
					</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') { ?>
-
 
269
						<div class="wpsg_checkoutblock">
-
 
270
							<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?> 
-
 
271
							<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
272
							</label>
281
				</div>
273
							<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']); ?>" />		
-
 
274
						</div>
-
 
275
						<?php } ?>
-
 
276
					
-
 
277
						<?php if ($this->view['pflicht']['plz'] != '2') { ?>
-
 
278
						<div class="wpsg_checkoutblock">
-
 
279
							<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?> 
-
 
280
							<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
281
							</label>
-
 
282
							<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']); ?>" />
-
 
283
						</div>
-
 
284
						<?php } ?>
-
 
285
						
-
 
286
						<?php if ($this->view['pflicht']['ort'] != '2') { ?>
-
 
287
						<div class="wpsg_checkoutblock">
-
 
288
							<label for="ort" class="wpshopgermany_checkout"><?php echo __("Ort", "wpsg"); ?> 
-
 
289
							<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
290
							</label>
-
 
291
							<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']); ?>" />
-
 
292
						</div>
-
 
293
						<?php } ?>
-
 
294
						
-
 
295
						<?php
-
 
296
							$lhidden = '';
-
 
297
							if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1 )) { 
-
 
298
								$lhidden = 'hidden="hidden"';
-
 
299
							}
-
 
300
						?>
-
 
301
						
-
 
302
						<?php if ($this->view['pflicht']['land'] != '2') { ?>
-
 
303
						<div class="wpsg_checkoutblock" <?php echo $lhidden;?>>
-
 
304
							<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?> 
-
 
305
							<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
306
							</label>					
-
 
307
							<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">
-
 
308
								<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
-
 
309
								<?php foreach ($this->view['laender'] as $l) { ?>
-
 
310
								<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>
-
 
311
								<?php } ?>
-
 
312
							</select>
-
 
313
						</div>
-
 
314
						<?php } ?>
-
 
315
						
-
 
316
						<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
-
 
317
						<div class="wpsg_checkoutblock">
-
 
318
							<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?> 
-
 
319
							<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
-
 
320
							</label>
282
				<?php } } ?>
321
							<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'])); ?>" />
-
 
322
						</div>
-
 
323
						<?php } ?>
-
 
324
						
-
 
325
						<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
-
 
326
						<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
-
 
327
						<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
-
 
328
						<div class="wpsg_checkoutblock">
-
 
329
							<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
-
 
330
								<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
-
 
331
								<?php if ($c['typ'] == '0') { // Textfeld ?>
283
				<?php } ?>
332
								<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]); ?>" />
-
 
333
								<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
-
 
334
								<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; ?>]">
-
 
335
									<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
-
 
336
									<?php foreach ((array)$arAuswahl as $a) { ?>
-
 
337
									<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>
-
 
338
									<?php } ?>
-
 
339
								</select>
-
 
340
								<?php } else if ($c['typ'] == '2') { // Checkbox ?>
-
 
341
								<input type="hidden" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="0" />
284
				<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
342
								<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"':''); ?> />
-
 
343
								<?php } ?>
-
 
344
							</label>
-
 
345
						</div>
-
 
346
						<?php } } ?>
-
 
347
						<?php } ?>
-
 
348
						<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
-
 
349
						
-
 
350
						<div class="wpsg_clear"></div>
-
 
351
														
-
 
352
						<?php /* $this->callMods('checkout_customer_inner'); */ ?>
-
 
353
						
-
 
354
						<br />
-
 
355
								 	
-
 
356
						<?php $this->callMods('checkout_inner_prebutton', array(&$this->view)); ?>
-
 
357
		
-
 
358
						<div class="wpsg_box">
-
 
359
							
-
 
360
							<h2><?php echo __('Bestellkommentar', 'wpsg'); ?></h2>
-
 
361
							
-
 
362
							<div class="wpsg_spacer"></div>
-
 
363
							
-
 
364
							<div class="wpsg_inner wpsg_commentblock">
-
 
365
								<textarea name="wpsg[checkout][comment]" id="wpsg_checkout_comment"><?php echo wpsg_hspc($this->view['basket']['checkout']['comment']); ?></textarea>				 
-
 
366
							</div>
-
 
367
						</div>
-
 
368
						
-
 
369
						<div class="wpsg_mandatoryfield_hint">
-
 
370
							<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
-
 
371
						</div>
-
 
372
						
-
 
373
					</div>
285
				
374
				
286
				<div class="wpsg_clear"></div>
375
				</div>		 
287
												
-
 
288
				<?php $this->callMods('checkout_customer_inner'); ?>
-
 
289
				
376
				
290
			</div>
377
		 	</div>
291
		
-
 
292
		</div>
-
 
293
		 	
378
		 	
-
 
379
		 </div>
-
 
380
		 
-
 
381
		 <br />
-
 
382
		 	 
-
 
383
		<?php /* Abfrage Satollo-Newsletter */ ?>
-
 
384
		<?php echo $this->callMod('wpsg_mod_nlsatolo', 'checkout_customer_inner'); ?>
-
 
385
						
-
 
386
		<?php /* Einverständnisabfrage Trusted Shops */ ?>
294
		<?php $this->callMods('checkout_inner_prebutton', array(&$this->view)); ?>
387
		<?php echo $this->callMod('wpsg_mod_trustedshops', 'checkout_customer_inner'); ?>
295
		 		
388
		 		
296
		<div class="wpsg_clear"></div>
389
		<div class="wpsg_clear"></div>		
297
		
-
 
298
		<div class="wpsg_box">
-
 
299
			
-
 
300
			<h2><?php echo __('Bestellkommentar', 'wpsg'); ?></h2>
-
 
301
			
-
 
302
			<div class="wpsg_spacer"></div>
-
 
303
			
-
 
304
			<div class="wpsg_inner wpsg_commentblock">
-
 
305
				<textarea name="wpsg[checkout][comment]" id="wpsg_checkout_comment"><?php echo wpsg_hspc($this->view['basket']['checkout']['comment']); ?></textarea>				 
-
 
306
			</div>
-
 
307
		</div>
-
 
308
		
-
 
309
		<div class="wpsg_mandatoryfield_hint">
-
 
310
			<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
-
 
311
		</div>
-
 
312
		
390
		
313
		<br />
391
		<br />
314
			
392
			
315
		<?php $this->ClearSessionErrors(); ?>
393
		<?php $this->ClearSessionErrors(); ?>
316
			
394
			
Line 341... Line 419...
341
			
419
			
342
		}
420
		}
343
    
421
    
344
		jQuery(document).ready(function() {
422
		jQuery(document).ready(function() {
345
 
423
 
-
 
424
			jQuery('#onepagecheckout_customer_login').bind('change', function() {
-
 
425
 
-
 
426
				if (jQuery(this).is(':checked')) { 
-
 
427
 
-
 
428
					jQuery('.onepagecheckout_customer_login_activ').show();
-
 
429
					jQuery('.onepagecheckout_customer_guest_label').hide();
-
 
430
					jQuery('.onepagecheckout_customer_registration').hide();
-
 
431
 
-
 
432
				} else { 
-
 
433
 
-
 
434
					jQuery('.onepagecheckout_customer_login_activ').hide();
-
 
435
					jQuery('.onepagecheckout_customer_guest_label').show();
-
 
436
					jQuery('.onepagecheckout_customer_registration').show();
-
 
437
 
-
 
438
				}
-
 
439
					
-
 
440
			} ).change();
-
 
441
 
-
 
442
			jQuery('#onepagecheckout_customer_registration').bind('change', function() {
-
 
443
 
-
 
444
				if (jQuery(this).is(':checked')) {
-
 
445
 
-
 
446
					jQuery('.onepagecheckout_customer_registration_activ, .onepagecheckout_customer_guest_activ').show();
-
 
447
					jQuery('.onepagecheckout_customer_login').hide();
-
 
448
					jQuery('.onepagecheckout_customer_guest_label').hide();
-
 
449
					
-
 
450
				} else { 
-
 
451
 
-
 
452
					jQuery('.onepagecheckout_customer_registration_activ, .onepagecheckout_customer_guest_activ').hide();
-
 
453
					jQuery('.onepagecheckout_customer_login').show();
-
 
454
					jQuery('.onepagecheckout_customer_guest_label').show();
-
 
455
					
-
 
456
				}
-
 
457
						
-
 
458
			} ).change();
-
 
459
 
-
 
460
			jQuery('#onepagecheckout_customer_guest').bind('change', function() {
-
 
461
 
-
 
462
				if (jQuery(this).is(':checked')) {
-
 
463
 
-
 
464
					jQuery('.onepagecheckout_customer_guest_activ').show();
-
 
465
					jQuery('.onepagecheckout_customer_login').hide();
-
 
466
					jQuery('.onepagecheckout_customer_registration').hide();
-
 
467
					
-
 
468
				} else { 
-
 
469
					jQuery('.onepagecheckout_customer_guest_activ').hide();
-
 
470
					jQuery('.onepagecheckout_customer_login').show();
-
 
471
					jQuery('.onepagecheckout_customer_registration').show();
-
 
472
				}
-
 
473
				
-
 
474
			} ).change();
-
 
475
 
346
			jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
476
			jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
347
 
477
 
348
				wpsg_setShipPay(jQuery(this)); 
478
				wpsg_setShipPay(jQuery(this)); 
349
				
479
				
350
				jQuery.ajax( {
480
				jQuery.ajax( {