summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/warenkorb/checkout.phtml28
1 files changed, 14 insertions, 14 deletions
diff --git a/views/warenkorb/checkout.phtml b/views/warenkorb/checkout.phtml
index a8f6a50..6f9d6cc 100644
--- a/views/warenkorb/checkout.phtml
+++ b/views/warenkorb/checkout.phtml
@@ -125,7 +125,7 @@
<label for="wpsg_firma"><?php echo esc_html__('Firma:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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 wpsg_hspc($this->view['basket']['checkout']['firma']??''); ?>" />
+ <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" autocomplete="organization" name="wpsg[checkout][firma]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['firma']??''); ?>" />
</div>
<?php } ?>
@@ -133,7 +133,7 @@
<div class="wpsg_checkoutblock" id="wpsg_anrede">
<label for="wpsg_title"><?php echo esc_html__('Anrede:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?></label>
- <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]">
+ <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" autocomplete="honorific-prefix" name="wpsg[checkout][title]">
<option value="-1"><?php echo esc_html__('Bitte auswählen', 'wpsg'); ?></option>
<?php $i = 0; foreach (explode('|', $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
<option value="<?php echo esc_attr($i); ?>" <?php echo ((strval(($this->view['basket']['checkout']['title']??'-1')) === strval($i))?'selected="selected"':''); ?>><?php echo wpsg_hspc($t); $i++; ?></option>
@@ -151,7 +151,7 @@
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"
- autocomplete="vname"
+ autocomplete="given-name"
name="wpsg[checkout][vname]"
value="<?php echo wpsg_hspc($this->view['basket']['checkout']['vname']??''); ?>"
/>
@@ -167,7 +167,7 @@
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"
- autocomplete="name"
+ autocomplete="family-name"
name="wpsg[checkout][name]"
value="<?php echo wpsg_hspc($this->view['basket']['checkout']['name']??''); ?>"
/>
@@ -185,7 +185,7 @@
id="email"
name="wpsg[checkout][email]"
value="<?php echo wpsg_hspc($this->view['basket']['checkout']['email']??''); ?>"
- autocomplete="off"
+ autocomplete="email"
/>
</div>
<?php } ?>
@@ -202,7 +202,7 @@
id="email2"
name="wpsg[checkout][email2]"
value="<?php echo wpsg_hspc($this->view['basket']['checkout']['email2']??''); ?>"
- autocomplete="off"
+ autocomplete="email"
/>
</div>
<?php } ?>
@@ -241,7 +241,7 @@
<label for="geb" class="wpsg_checkout"><?php echo esc_html__('Geburtsdatum (Format: TT.MM.JJJJ):', 'wpsg'); ?>
<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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 wpsg_hspc($this->view['basket']['checkout']['geb']??''); ?>" />
+ <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" autocomplete="bday" name="wpsg[checkout][geb]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['geb']??''); ?>" />
</div>
<?php } ?>
@@ -250,7 +250,7 @@
<label for="fax" class="wpsg_checkout"><?php echo esc_html__('Fax.:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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="text" id="fax" name="wpsg[checkout][fax]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['fax']??''); ?>" />
+ <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="text" id="fax" autocomplete="fax tel" name="wpsg[checkout][fax]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['fax']??''); ?>" />
</div>
<?php } ?>
@@ -259,7 +259,7 @@
<label for="tel" class="wpsg_checkout"><?php echo esc_html__('Tel.:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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="text" id="tel" name="wpsg[checkout][tel]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['tel']??''); ?>" />
+ <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="text" id="tel" autocomplete="tel" name="wpsg[checkout][tel]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['tel']??''); ?>" />
</div>
<?php } ?>
@@ -270,7 +270,7 @@
<div class="wpsg_checkoutblock" id="wpsg_streetnr">
<label for="strasse" class="street wpsg_checkout"><?php echo esc_html__('Straße:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
- <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 wpsg_hspc($this->view['basket']['checkout']['strasse']??''); ?>" />
+ <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" autocomplete="address-line1" name="wpsg[checkout][strasse]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['strasse']??''); ?>" />
</label>
<label for="nr" class="nr wpsg_checkout"><?php echo esc_html__('Nr:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
@@ -284,7 +284,7 @@
<label for="strasse" class="wpsg_checkout"><?php echo esc_html__('Straße, Nr.:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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 wpsg_hspc($this->view['basket']['checkout']['strasse']??''); ?>" />
+ <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" autocomplete="address-line1" name="wpsg[checkout][strasse]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['strasse']??''); ?>" />
</div>
<?php } ?>
@@ -296,7 +296,7 @@
<label for="plz" class="wpsg_checkout"><?php echo esc_html__('Postleitzahl:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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 wpsg_hspc($this->view['basket']['checkout']['plz']??''); ?>" />
+ <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" autocomplete="postal-code" name="wpsg[checkout][plz]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['plz']??''); ?>" />
</div>
<?php } ?>
@@ -305,7 +305,7 @@
<label for="ort" class="wpsg_checkout"><?php echo esc_html__('Ort:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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 wpsg_hspc($this->view['basket']['checkout']['ort']??''); ?>" />
+ <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" autocomplete="address-level2" name="wpsg[checkout][ort]" value="<?php echo wpsg_hspc($this->view['basket']['checkout']['ort']??''); ?>" />
</div>
<?php } ?>
@@ -314,7 +314,7 @@
<label for="wpsg_land" class="wpsg_checkout"><?php echo esc_html__('Land:', 'wpsg'); ?>
<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
</label>
- <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">
+ <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" autocomplete="country">
<option value="-1"><?php echo esc_html__('Bitte auswählen', 'wpsg'); ?></option>
<?php foreach ($this->view['laender'] as $l) { ?>
<option value="<?php echo wpsg_hspc($l['id']); ?>" <?php echo (($l['id'] == $this->view['basket']['checkout']['land'])?'selected="selected"':((!(is_numeric($this->view['basket']['checkout']['land']??null) && $this->view['basket']['checkout']['land'] > 0) && $this->get_option('wpsg_defaultland') == $l['id'])?'selected="selected"':'')); ?>><?php echo wpsg_hspc(__($l['name'], 'wpsg')); ?></option>