2782 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für den Bestellablauf auf einer Seite
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
3448 |
daniel |
8 |
<div class="wpsg wpsg_onepagecheckout wpsg_checkout wpsg_checkout2 <?php echo ((isset($_REQUEST['wpsg_basket_ajax']))?'wpsg_basket_ajax':''); ?>">
|
2782 |
daniel |
9 |
|
|
|
10 |
<?php echo $this->writeFrontendMessage(); ?>
|
2791 |
daniel |
11 |
|
5382 |
daniel |
12 |
<?php $GLOBALS['step'] = 2; $this->render(WPSG_PATH_VIEW.'/warenkorb/progress.phtml'); ?>
|
|
|
13 |
|
2791 |
daniel |
14 |
<form id="wpsg_basket_form" name="wpsg_basket_form" method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>" enctype="multipart/form-data">
|
5010 |
daniel |
15 |
|
2783 |
daniel |
16 |
<div class="wpsg_clear"></div>
|
2782 |
daniel |
17 |
|
|
|
18 |
<?php /* Einbindung des Logins im Checokut */ ?>
|
|
|
19 |
<?php $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_login'); ?>
|
|
|
20 |
|
2792 |
daniel |
21 |
<div class="wpsg_box" id="wpsg_box_payship">
|
3455 |
daniel |
22 |
|
2792 |
daniel |
23 |
<div class="wpsg_inner">
|
|
|
24 |
|
3455 |
daniel |
25 |
<div class="wpsg_shipping">
|
|
|
26 |
|
5140 |
daniel |
27 |
<h2><?php echo __('Versandarten', 'wpsg'); ?></h2>
|
3460 |
daniel |
28 |
|
5140 |
daniel |
29 |
<div class="shippay_wrap">
|
|
|
30 |
<?php foreach ($this->view['arShipping'] as $s) { ?>
|
|
|
31 |
<div class="shippay_item_wrap">
|
|
|
32 |
|
|
|
33 |
<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']; ?>" />
|
|
|
34 |
|
|
|
35 |
<?php if (wpsg_isSizedString($s['logo'])) { ?>
|
|
|
36 |
<img class="wpsg_payship_logo" src="<?php echo $s['logo']; ?>" alt="<?php echo $s['name']; ?>" />
|
|
|
37 |
<?php } else { ?>
|
|
|
38 |
<div class="wpsg_payship_name"><?php echo __($s['name'], 'wpsg'); ?></div>
|
|
|
39 |
<?php } ?>
|
|
|
40 |
<?php if ((isset($s['hint']) && trim($s['hint']) != '') || $s['price'] > 0) { ?>
|
|
|
41 |
<div id="shipping_<?php echo $s['id']; ?>_hint" class="shippay_hint">
|
|
|
42 |
<?php if ($s['price'] > 0) { ?>
|
|
|
43 |
<?php echo __('Gebühr', 'wpsg'); ?>: <?php echo wpsg_ff($s['price'], $this->get_option('wpsg_currency')); ?><br />
|
2792 |
daniel |
44 |
<?php } ?>
|
5140 |
daniel |
45 |
<?php echo $this->replaceUniversalPlatzhalter(__($s['hint'], 'wpsg')); ?>
|
3455 |
daniel |
46 |
</div>
|
5140 |
daniel |
47 |
<?php } ?>
|
|
|
48 |
|
|
|
49 |
<div class="shippay_checkmark"></div>
|
|
|
50 |
|
|
|
51 |
</div>
|
|
|
52 |
<?php } ?>
|
|
|
53 |
</div>
|
|
|
54 |
|
2792 |
daniel |
55 |
</div>
|
|
|
56 |
|
5010 |
daniel |
57 |
<?php if ($this->callMods('checkout_handlePayment') === true) { ?>
|
2792 |
daniel |
58 |
|
5010 |
daniel |
59 |
<?php if (!$this->hasMod('wpsg_mod_crefopay')) { ?>
|
|
|
60 |
<div class="wpsg_payment">
|
3460 |
daniel |
61 |
|
5010 |
daniel |
62 |
<h2><?php echo __('Zahlungsarten', 'wpsg'); ?></h2>
|
|
|
63 |
|
5140 |
daniel |
64 |
<div class="shippay_wrap">
|
|
|
65 |
<?php foreach ($this->view['arPayment'] as $p) { ?>
|
|
|
66 |
<div class="shippay_item_wrap">
|
|
|
67 |
|
|
|
68 |
<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']; ?>" />
|
|
|
69 |
|
|
|
70 |
<div class="wpsg_payship_name"><?php echo __($p['name'], 'wpsg'); ?></div>
|
|
|
71 |
|
|
|
72 |
<?php if (wpsg_isSizedString($p['logo'])) { ?>
|
|
|
73 |
<img class="wpsg_payship_logo" src="<?php echo $p['logo']; ?>" alt="<?php echo $p['name']; ?>" />
|
|
|
74 |
<?php } ?>
|
|
|
75 |
|
|
|
76 |
<?php if ((isset($p['hint']) && trim($p['hint']) != '') || $p['price'] > 0) { ?>
|
|
|
77 |
<div id="payment_<?php echo $p['id']; ?>_hint" class="shippay_hint">
|
|
|
78 |
<?php if ($p['price'] > 0) { ?>
|
|
|
79 |
<?php echo __('Gebühr', 'wpsg'); ?>: <?php echo wpsg_ff($p['price'], $this->get_option('wpsg_currency')); ?><br />
|
|
|
80 |
<?php } ?>
|
|
|
81 |
<?php echo $this->replaceUniversalPlatzhalter(__($p['hint'], 'wpsg')); ?>
|
3455 |
daniel |
82 |
</div>
|
5010 |
daniel |
83 |
<?php } ?>
|
5140 |
daniel |
84 |
|
|
|
85 |
<div class="shippay_checkmark"></div>
|
|
|
86 |
|
|
|
87 |
</div>
|
|
|
88 |
<?php } ?>
|
|
|
89 |
</div>
|
2792 |
daniel |
90 |
|
5010 |
daniel |
91 |
</div>
|
|
|
92 |
<?php } ?>
|
|
|
93 |
|
4323 |
daniel |
94 |
<?php } ?>
|
5010 |
daniel |
95 |
|
2792 |
daniel |
96 |
<div class="wpsg_clear"></div>
|
|
|
97 |
|
|
|
98 |
</div>
|
|
|
99 |
|
|
|
100 |
</div>
|
|
|
101 |
|
|
|
102 |
<div class="wpsg_box" id="wpsg_box_kundendaten">
|
|
|
103 |
|
3448 |
daniel |
104 |
<h2><?php echo __('Kundendaten', 'wpsg'); ?></h2>
|
3460 |
daniel |
105 |
|
|
|
106 |
<div class="wpsg_spacer"></div>
|
|
|
107 |
|
2783 |
daniel |
108 |
<div class="wpsg_inner">
|
2782 |
daniel |
109 |
|
2783 |
daniel |
110 |
<div class="wpsg_checkoutblock">
|
|
|
111 |
<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
|
|
|
112 |
<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
113 |
</label>
|
|
|
114 |
<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']); ?>" />
|
|
|
115 |
</div>
|
|
|
116 |
|
|
|
117 |
<div class="wpsg_checkoutblock">
|
|
|
118 |
<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
|
|
|
119 |
<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
|
|
|
120 |
<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]">
|
|
|
121 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
|
|
122 |
<?php foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
|
|
|
123 |
<option value="<?php echo wpsg_hspc($t); ?>" <?php echo (($this->view['basket']['checkout']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
|
|
|
124 |
<?php } ?>
|
|
|
125 |
</select>
|
|
|
126 |
</div>
|
|
|
127 |
|
|
|
128 |
<div class="wpsg_checkoutblock">
|
|
|
129 |
<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?>
|
|
|
130 |
<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
131 |
</label>
|
|
|
132 |
<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']); ?>" />
|
|
|
133 |
</div>
|
2782 |
daniel |
134 |
|
2783 |
daniel |
135 |
<div class="wpsg_checkoutblock">
|
|
|
136 |
<label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>
|
|
|
137 |
<?php if ($this->data['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
138 |
</label>
|
|
|
139 |
<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']); ?>" />
|
|
|
140 |
</div>
|
|
|
141 |
|
|
|
142 |
<div class="wpsg_checkoutblock">
|
|
|
143 |
<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?>
|
|
|
144 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
145 |
</label>
|
4904 |
daniel |
146 |
<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']); ?>" />
|
2783 |
daniel |
147 |
</div>
|
|
|
148 |
|
|
|
149 |
<?php if (isset($this->view['pflicht']['emailconfirm']) && $this->view['pflicht']['emailconfirm'] == '1') { ?>
|
|
|
150 |
<div class="wpsg_checkoutblock">
|
3459 |
daniel |
151 |
<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?>
|
2783 |
daniel |
152 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
153 |
</label>
|
4904 |
daniel |
154 |
<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']); ?>" />
|
2783 |
daniel |
155 |
</div>
|
2782 |
daniel |
156 |
<?php } ?>
|
2783 |
daniel |
157 |
|
|
|
158 |
<div class="wpsg_checkoutblock">
|
4940 |
daniel |
159 |
<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>
|
2783 |
daniel |
160 |
<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
161 |
</label>
|
4941 |
daniel |
162 |
<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']); ?>" />
|
2783 |
daniel |
163 |
</div>
|
|
|
164 |
|
|
|
165 |
<div class="wpsg_checkoutblock">
|
|
|
166 |
<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
|
|
|
167 |
<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
168 |
</label>
|
4904 |
daniel |
169 |
<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']); ?>" />
|
2783 |
daniel |
170 |
</div>
|
|
|
171 |
|
|
|
172 |
<div class="wpsg_checkoutblock">
|
|
|
173 |
<label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?>
|
|
|
174 |
<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
175 |
</label>
|
4904 |
daniel |
176 |
<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']); ?>" />
|
2783 |
daniel |
177 |
</div>
|
2782 |
daniel |
178 |
|
2783 |
daniel |
179 |
<div class="wpsg_checkoutblock">
|
6053 |
hartmut |
180 |
<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>
|
2783 |
daniel |
181 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
182 |
</label>
|
|
|
183 |
<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']); ?>" />
|
|
|
184 |
</div>
|
|
|
185 |
|
|
|
186 |
<div class="wpsg_checkoutblock">
|
|
|
187 |
<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?>
|
|
|
188 |
<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
189 |
</label>
|
5382 |
daniel |
190 |
<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']); ?>" />
|
2783 |
daniel |
191 |
</div>
|
|
|
192 |
|
|
|
193 |
<div class="wpsg_checkoutblock">
|
|
|
194 |
<label for="ort" class="wpshopgermany_checkout"><?php echo __("Ort", "wpsg"); ?>
|
|
|
195 |
<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
196 |
</label>
|
|
|
197 |
<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']); ?>" />
|
|
|
198 |
</div>
|
|
|
199 |
|
|
|
200 |
<div class="wpsg_checkoutblock">
|
|
|
201 |
<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?>
|
|
|
202 |
<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
203 |
</label>
|
|
|
204 |
<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">
|
|
|
205 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
|
|
206 |
<?php foreach ($this->view['laender'] as $l) { ?>
|
3426 |
daniel |
207 |
<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>
|
2783 |
daniel |
208 |
<?php } ?>
|
|
|
209 |
</select>
|
|
|
210 |
</div>
|
|
|
211 |
|
|
|
212 |
<div class="wpsg_checkoutblock">
|
|
|
213 |
<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?>
|
|
|
214 |
<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
215 |
</label>
|
|
|
216 |
<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($this->view['basket']['checkout']['ustidnr']); ?>" />
|
|
|
217 |
</div>
|
|
|
218 |
|
|
|
219 |
<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
|
|
|
220 |
<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
|
|
|
221 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
|
|
222 |
<div class="wpsg_checkoutblock">
|
|
|
223 |
<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
|
|
|
224 |
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
|
|
|
225 |
<?php if ($c['typ'] == '0') { // Textfeld ?>
|
|
|
226 |
<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]); ?>" />
|
|
|
227 |
<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
|
|
|
228 |
<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; ?>]">
|
|
|
229 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
|
|
230 |
<?php foreach ((array)$arAuswahl as $a) { ?>
|
|
|
231 |
<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>
|
|
|
232 |
<?php } ?>
|
|
|
233 |
</select>
|
|
|
234 |
<?php } else if ($c['typ'] == '2') { // Checkbox ?>
|
|
|
235 |
<input type="hidden" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="0" />
|
|
|
236 |
<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"':''); ?> />
|
|
|
237 |
<?php } ?>
|
|
|
238 |
</label>
|
|
|
239 |
</div>
|
|
|
240 |
<?php } } ?>
|
2782 |
daniel |
241 |
<?php } ?>
|
2783 |
daniel |
242 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
|
|
243 |
|
2791 |
daniel |
244 |
<div class="wpsg_clear"></div>
|
|
|
245 |
|
|
|
246 |
<?php $this->callMods('checkout_customer_inner'); ?>
|
2783 |
daniel |
247 |
|
|
|
248 |
</div>
|
|
|
249 |
|
2782 |
daniel |
250 |
</div>
|
2783 |
daniel |
251 |
|
2782 |
daniel |
252 |
<?php $this->callMods('checkout_inner_prebutton', array(&$this->view)); ?>
|
|
|
253 |
|
|
|
254 |
<div class="wpsg_clear"></div>
|
2783 |
daniel |
255 |
|
|
|
256 |
<div class="wpsg_box">
|
3460 |
daniel |
257 |
|
3448 |
daniel |
258 |
<h2><?php echo __('Bestellkommentar', 'wpsg'); ?></h2>
|
3460 |
daniel |
259 |
|
|
|
260 |
<div class="wpsg_spacer"></div>
|
|
|
261 |
|
2783 |
daniel |
262 |
<div class="wpsg_inner wpsg_commentblock">
|
3432 |
daniel |
263 |
<textarea name="wpsg[checkout][comment]" id="wpsg_checkout_comment"><?php echo wpsg_hspc($this->view['basket']['checkout']['comment']); ?></textarea>
|
2783 |
daniel |
264 |
</div>
|
2782 |
daniel |
265 |
</div>
|
|
|
266 |
|
|
|
267 |
<div class="wpsg_mandatoryfield_hint">
|
|
|
268 |
<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
|
|
|
269 |
</div>
|
|
|
270 |
|
|
|
271 |
<br />
|
|
|
272 |
|
|
|
273 |
<?php $this->ClearSessionErrors(); ?>
|
|
|
274 |
|
|
|
275 |
<br />
|
|
|
276 |
|
2791 |
daniel |
277 |
<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" />
|
3647 |
daniel |
278 |
<input type="submit" id="wpsg_checkout2button" class="wpsg_button wpsg_checkout2button" value="<?php echo __('Weiter', 'wpsg'); ?>" name="wpsg_checkout" />
|
2782 |
daniel |
279 |
|
2866 |
daniel |
280 |
<div class="wpsg_clear"></div>
|
|
|
281 |
|
2782 |
daniel |
282 |
<br />
|
|
|
283 |
|
|
|
284 |
</form>
|
|
|
285 |
|
|
|
286 |
<script type="text/javascript">/* <![CDATA[ */
|
5140 |
daniel |
287 |
|
|
|
288 |
function wpsg_setShipPay(jqElement)
|
|
|
289 |
{
|
|
|
290 |
|
|
|
291 |
jqElement.parents('.shippay_wrap').find('.shippay_item_wrap').removeClass('shippay_active');
|
|
|
292 |
jqElement.addClass('shippay_active');
|
|
|
293 |
|
|
|
294 |
jqElement.find('input').prop('checked', true);
|
|
|
295 |
|
|
|
296 |
return true;
|
|
|
297 |
|
|
|
298 |
}
|
2791 |
daniel |
299 |
|
2782 |
daniel |
300 |
jQuery(document).ready(function() {
|
2791 |
daniel |
301 |
|
5140 |
daniel |
302 |
jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
|
|
|
303 |
|
|
|
304 |
wpsg_setShipPay(jQuery(this));
|
|
|
305 |
|
|
|
306 |
jQuery.ajax( {
|
|
|
307 |
'url': wpsg_ajax.ajaxurl,
|
|
|
308 |
'method': 'get',
|
|
|
309 |
'data': {
|
|
|
310 |
'wpsg[action]': 'updateCheckout',
|
|
|
311 |
'wpsg_form_data': jQuery('#wpsg_checkout_form').serialize()
|
|
|
312 |
},
|
|
|
313 |
'async': true,
|
|
|
314 |
'success': function(data) { }
|
|
|
315 |
} );
|
|
|
316 |
|
|
|
317 |
} );
|
|
|
318 |
|
|
|
319 |
jQuery('.shippay_wrap .shippay_item_wrap').each(function() {
|
|
|
320 |
|
|
|
321 |
if (jQuery(this).find('input[type="radio"]').prop('checked')) wpsg_setShipPay(jQuery(this));
|
|
|
322 |
|
|
|
323 |
} );
|
|
|
324 |
|
3647 |
daniel |
325 |
jQuery('#wpsg_box_kundendaten input').bind('keypress', function(e) {
|
|
|
326 |
|
|
|
327 |
if(e.keyCode == 13)
|
|
|
328 |
{
|
|
|
329 |
|
|
|
330 |
jQuery('#wpsg_checkout2button').click();
|
|
|
331 |
return false;
|
|
|
332 |
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
} );
|
|
|
336 |
|
3455 |
daniel |
337 |
jQuery('.shippay input[type="radio"]').bind('change', function() {
|
|
|
338 |
|
|
|
339 |
jQuery(this).parents('.shippay_wrap').find('.shippay').removeClass('wpsg_hover');
|
|
|
340 |
|
|
|
341 |
if (jQuery(this).prop("checked"))
|
|
|
342 |
{
|
|
|
343 |
|
|
|
344 |
jQuery(this).parents('.shippay').addClass('wpsg_hover');
|
|
|
345 |
|
|
|
346 |
}
|
3589 |
daniel |
347 |
|
3457 |
daniel |
348 |
wpsg_showPaymentHint();
|
4126 |
daniel |
349 |
wpsg_showShippingHint();
|
3455 |
daniel |
350 |
|
|
|
351 |
} );
|
|
|
352 |
|
|
|
353 |
jQuery('.shippay input[type="radio"]:checked').change();
|
|
|
354 |
jQuery('.shippay').bind('click', function(e) {
|
|
|
355 |
|
3589 |
daniel |
356 |
if (jQuery(this).hasClass('wpsg_hover')) return true;
|
3523 |
daniel |
357 |
|
3455 |
daniel |
358 |
jQuery(this).find('input[type="radio"]').attr("checked", "checked");
|
|
|
359 |
jQuery(this).find('input[type="radio"]').change();
|
|
|
360 |
|
|
|
361 |
} );
|
|
|
362 |
|
2791 |
daniel |
363 |
<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
|
2782 |
daniel |
364 |
if (typeof jQuery.validationEngine == "object")
|
|
|
365 |
{
|
|
|
366 |
|
3647 |
daniel |
367 |
jQuery("#wpsg_basket_form").validationEngine('attach', { promptPosition : "bottomLeft", scroll: false } );
|
|
|
368 |
|
|
|
369 |
jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function() {
|
|
|
370 |
jQuery("#wpsg_basket_form").validationEngine('detach');
|
|
|
371 |
});
|
2782 |
daniel |
372 |
|
|
|
373 |
}
|
2791 |
daniel |
374 |
<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
|
|
|
375 |
|
|
|
376 |
jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
|
|
|
377 |
jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
|
|
|
378 |
jQuery("#wpsg_basket_form").validate( {
|
|
|
379 |
ignore: '',
|
|
|
380 |
errorClass: 'wpsg_error',
|
|
|
381 |
onsubmit: false,
|
|
|
382 |
showErrors: function(errorMap, errorList) {
|
2783 |
daniel |
383 |
|
2791 |
daniel |
384 |
this.defaultShowErrors();
|
|
|
385 |
var errors = this.numberOfInvalids();
|
|
|
386 |
|
|
|
387 |
}
|
|
|
388 |
} );
|
|
|
389 |
|
2868 |
daniel |
390 |
jQuery('.wpsg_checkout2button').bind('click', function() {
|
3021 |
daniel |
391 |
|
|
|
392 |
var bReturn = jQuery('#wpsg_basket_form').validate().form();
|
|
|
393 |
if (jQuery('#wpsg_basket_form input.wpsg_error').length > 0) jQuery('#wpsg_basket_form input.wpsg_error')[0].focus();
|
|
|
394 |
return bReturn;
|
|
|
395 |
|
2783 |
daniel |
396 |
} );
|
2791 |
daniel |
397 |
|
3647 |
daniel |
398 |
<?php } ?>
|
3448 |
daniel |
399 |
|
2782 |
daniel |
400 |
} );
|
|
|
401 |
|
|
|
402 |
/* ]]> */</script>
|
5382 |
daniel |
403 |
|
2782 |
daniel |
404 |
</div>
|