Line 237... |
Line 237... |
237 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
237 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
238 |
<div class="wpsg_checkoutblock">
|
238 |
<div class="wpsg_checkoutblock">
|
239 |
<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
|
239 |
<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
|
240 |
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
|
240 |
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
|
241 |
<?php if ($c['typ'] == '0') { // Textfeld ?>
|
241 |
<?php if ($c['typ'] == '0') { // Textfeld ?>
|
242 |
<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 echo wpsg_hspc($this->view['basket']['checkout']['custom'][$c_id]); ?>" />
|
242 |
<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]); ?>" />
|
243 |
<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
|
243 |
<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
|
244 |
<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; ?>]">
|
244 |
<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; ?>]">
|
245 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
245 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
246 |
<?php foreach ((array)$arAuswahl as $a) { ?>
|
246 |
<?php foreach ((array)$arAuswahl as $a) { ?>
|
247 |
<option value="<?php echo wpsg_hspc($a); ?>" <?php echo (($a == $this->view['basket']['checkout']['custom'][$c_id])?'selected="selected"':''); ?>><?php echo wpsg_hspc($a); ?></option>
|
247 |
<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>
|
248 |
<?php } ?>
|
248 |
<?php } ?>
|
249 |
</select>
|
249 |
</select>
|
250 |
<?php } else if ($c['typ'] == '2') { // Checkbox ?>
|
250 |
<?php } else if ($c['typ'] == '2') { // Checkbox ?>
|
251 |
<input type="hidden" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="0" />
|
251 |
<input type="hidden" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="0" />
|
252 |
<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 echo wpsg_hspc(($this->view['basket']['checkout']['custom'][$c_id] == '1')?'checked="checked"':''); ?> />
|
252 |
<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"':''); ?> />
|
253 |
<?php } ?>
|
253 |
<?php } ?>
|
254 |
</label>
|
254 |
</label>
|
255 |
</div>
|
255 |
</div>
|
256 |
<?php } } ?>
|
256 |
<?php } } ?>
|
257 |
<?php } ?>
|
257 |
<?php } ?>
|
Line 413... |
Line 413... |
413 |
|
413 |
|
414 |
} );
|
414 |
} );
|
415 |
|
415 |
|
416 |
<?php } ?>
|
416 |
<?php } ?>
|
417 |
|
417 |
|
- |
|
418 |
land = <?php if (wpsg_isSizedInt($this->view['basket']['checkout']['land'])) echo $this->view['basket']['checkout']['land'];
|
- |
|
419 |
else echo $this->get_option('wpsg_defaultland'); ?>;
|
- |
|
420 |
|
418 |
// Land der Rechnungsadresse setzen
|
421 |
// Land der Rechnungsadresse setzen
|
419 |
land = jQuery('#set_land').val();
|
422 |
//land = jQuery('#set_land').val();
|
420 |
jQuery('#wpsg_land').val(land);
|
423 |
jQuery('#wpsg_land').val(land);
|
421 |
//alert('land: ' + land);
|
424 |
//alert('land: ' + land);
|
422 |
|
425 |
|
423 |
} );
|
426 |
} );
|
424 |
|
427 |
|