3444 |
daniel |
1 |
<div class="wpsg_mod_shippingadress">
|
|
|
2 |
|
|
|
3 |
<h2><?php echo __('Gesonderte Lieferadresse', 'wpsg'); ?></h2>
|
|
|
4 |
|
3460 |
daniel |
5 |
<div class="wpsg_spacer"></div>
|
|
|
6 |
|
2783 |
daniel |
7 |
<div class="wpsg_inner">
|
3444 |
daniel |
8 |
|
|
|
9 |
<div class="wpsg_checkoutblock">
|
|
|
10 |
<label for="act_checkout_shippingadress">
|
|
|
11 |
<input id="act_checkout_shippingadress" class="wpsg_checkout formfield_checkbox" type="checkbox" name="wpsg[checkout][diff_shippingadress]" value="" <?php echo ($_SESSION['wpsg']['checkout']['diff_shippingadress'] == 1)? 'checked="checked"':'' ?> onclick="view_checkout_shippingadresss()" />
|
|
|
12 |
<?php echo __('Gesonderte Lieferadresse abweichend von der Rechnungsadresse verwenden', 'wpsg') ?>
|
|
|
13 |
</label>
|
2783 |
daniel |
14 |
</div>
|
1221 |
david |
15 |
|
2791 |
daniel |
16 |
<div class="wpsg_clear"></div>
|
|
|
17 |
|
2783 |
daniel |
18 |
<div class="checkout_shippingadress" style="display:none;">
|
1221 |
david |
19 |
|
2783 |
daniel |
20 |
<div class="wpsg_checkoutblock">
|
|
|
21 |
<label for="firma" class="wpsg_checkout"><?php echo __("Firma:", "wpsg"); ?></label>
|
|
|
22 |
<input class="wpsg_checkout <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_name" name="wpsg[checkout][shipping_firma]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['shipping_firma']); ?>" />
|
|
|
23 |
</div>
|
1221 |
david |
24 |
|
2783 |
daniel |
25 |
<div class="wpsg_checkoutblock">
|
|
|
26 |
<label for="title" class="wpsg_checkout"><?php echo __("Anrede:", "wpsg"); ?>
|
|
|
27 |
<span class="wpsg_required">*</span>
|
|
|
28 |
</label>
|
2791 |
daniel |
29 |
<select class="validate[required_shipping] wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" type="select" name="wpsg[checkout][shipping_title]" id="shipping_title" >
|
2783 |
daniel |
30 |
<?php foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
|
|
|
31 |
<option value="<?php echo $t; ?>" <?php echo (($this->view['basket']['checkout']['shipping_title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
|
|
|
32 |
<?php } ?>
|
|
|
33 |
</select>
|
|
|
34 |
</div>
|
2330 |
daniel |
35 |
|
2783 |
daniel |
36 |
<div class="wpsg_checkoutblock">
|
|
|
37 |
<label for="vname" class="wpsg_checkout"><?php echo __("Vorname:", "wpsg"); ?>
|
|
|
38 |
<span class="wpsg_required">*</span>
|
|
|
39 |
</label>
|
2791 |
daniel |
40 |
<input class="validate[required_shipping] wpsg_checkout <?php echo ((in_array("shipping_vname", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_vname" name="wpsg[checkout][shipping_vname]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['shipping_vname']); ?>" />
|
2783 |
daniel |
41 |
</div>
|
|
|
42 |
|
|
|
43 |
<div class="wpsg_checkoutblock">
|
|
|
44 |
<label for="name" class="wpsg_checkout"><?php echo __("Name:", "wpsg"); ?>
|
|
|
45 |
<span class="wpsg_required">*</span>
|
|
|
46 |
</label>
|
2791 |
daniel |
47 |
<input class="validate[required_shipping] wpsg_checkout <?php echo ((in_array("shipping_name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_name" name="wpsg[checkout][shipping_name]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['shipping_name']); ?>" />
|
2783 |
daniel |
48 |
</div>
|
|
|
49 |
|
|
|
50 |
<div class="wpsg_checkoutblock">
|
|
|
51 |
<label for="strasse" class="wpsg_checkout"><?php echo __("Strasse, Nr.:", "wpsg"); ?>
|
|
|
52 |
<span class="wpsg_required">*</span>
|
|
|
53 |
</label>
|
2791 |
daniel |
54 |
<input class="validate[required_shipping] wpsg_checkout <?php echo ((in_array("shipping_strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_strasse" name="wpsg[checkout][shipping_strasse]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['shipping_strasse']); ?>" />
|
2783 |
daniel |
55 |
</div>
|
2330 |
daniel |
56 |
|
2783 |
daniel |
57 |
<div class="wpsg_checkoutblock">
|
|
|
58 |
<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl:", "wpsg"); ?>
|
|
|
59 |
<span class="wpsg_required">*</span>
|
|
|
60 |
</label>
|
5013 |
daniel |
61 |
<input class="validate[required_shipping] wpsg_checkout <?php echo ((in_array("shipping_plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="number" id="shipping_plz" name="wpsg[checkout][shipping_plz]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['shipping_plz']); ?>" />
|
2783 |
daniel |
62 |
</div>
|
|
|
63 |
|
|
|
64 |
<div class="wpsg_checkoutblock">
|
|
|
65 |
<label for="ort" class="wpshopgermany_checkout"><?php echo __("Ort:", "wpsg"); ?>
|
|
|
66 |
<span class="wpsg_required">*</span>
|
|
|
67 |
</label>
|
2791 |
daniel |
68 |
<input class="validate[required_shipping] wpsg_checkout <?php echo ((in_array("shipping_ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="shipping_ort" name="wpsg[checkout][shipping_ort]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['shipping_ort']); ?>" />
|
2783 |
daniel |
69 |
</div>
|
|
|
70 |
|
|
|
71 |
<div class="wpsg_checkoutblock">
|
3427 |
daniel |
72 |
<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land:", "wpsg"); ?>
|
|
|
73 |
<span class="wpsg_required">*</span>
|
|
|
74 |
</label>
|
|
|
75 |
<select name="wpsg[checkout][shipping_land]" class="wpsg_checkout <?php echo ((in_array("shipping_land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="shipping_land">
|
2783 |
daniel |
76 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
|
|
77 |
<?php foreach ($this->view['laender'] as $l) { ?>
|
|
|
78 |
<option value="<?php echo $l['id']; ?>" <?php echo (($l['id'] == $this->view['basket']['checkout']['shipping_land'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($l['name']); ?></option>
|
|
|
79 |
<?php } ?>
|
|
|
80 |
</select>
|
|
|
81 |
</div>
|
|
|
82 |
|
|
|
83 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
84 |
|
|
|
85 |
function view_checkout_shippingadresss()
|
|
|
86 |
{
|
3224 |
daniel |
87 |
|
|
|
88 |
if (jQuery('#act_checkout_shippingadress').prop('checked') != true)
|
2783 |
daniel |
89 |
{
|
2791 |
daniel |
90 |
|
2783 |
daniel |
91 |
jQuery('.checkout_shippingadress').attr('style', 'display:none;');
|
|
|
92 |
jQuery('#act_checkout_shippingadress').attr('value', null);
|
2791 |
daniel |
93 |
|
|
|
94 |
<?php if ($this->get_option('wpsg_form_validation') == '2') { ?>
|
|
|
95 |
jQuery.validator.removeClassRules('validate[required_shipping]', { cRequired: true } );
|
|
|
96 |
<?php } ?>
|
|
|
97 |
|
2783 |
daniel |
98 |
}
|
2330 |
daniel |
99 |
|
3224 |
daniel |
100 |
if (jQuery('#act_checkout_shippingadress').prop('checked') == true)
|
2783 |
daniel |
101 |
{
|
2791 |
daniel |
102 |
|
2783 |
daniel |
103 |
jQuery('.checkout_shippingadress').attr('style', 'display:display;');
|
|
|
104 |
jQuery('#act_checkout_shippingadress').attr('value', 1);
|
2791 |
daniel |
105 |
|
|
|
106 |
<?php if ($this->get_option('wpsg_form_validation') == '2') { ?>
|
|
|
107 |
jQuery.validator.addClassRules('validate[required_shipping]', { cRequired: true } );
|
|
|
108 |
<?php } ?>
|
|
|
109 |
|
2783 |
daniel |
110 |
}
|
|
|
111 |
|
|
|
112 |
return false;
|
|
|
113 |
|
|
|
114 |
}
|
1221 |
david |
115 |
|
2783 |
daniel |
116 |
jQuery(document).ready(function()
|
|
|
117 |
{
|
|
|
118 |
|
|
|
119 |
view_checkout_shippingadresss();
|
|
|
120 |
|
|
|
121 |
});
|
|
|
122 |
|
|
|
123 |
/* ]]> */</script>
|
|
|
124 |
</div>
|
|
|
125 |
</div>
|
1221 |
david |
126 |
</div>
|