diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-10-02 15:14:27 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-10-02 15:14:27 +0200 |
| commit | 26c6bae86323dd3dddfacc29a20004e5ee6d69b8 (patch) | |
| tree | 103ae5513796c09d24c0230f13651c6d0f943f0a | |
| parent | 554b356d6af8c5f2426daa7ae6a88be15d01e8ab (diff) | |
Kasse: Länderauswahl mit autocomplete country-name
Die Optionen tragen Ländernamen, nicht den Ländercode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | views/warenkorb/checkout.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/warenkorb/checkout.phtml b/views/warenkorb/checkout.phtml index 5605779..837c092 100644 --- a/views/warenkorb/checkout.phtml +++ b/views/warenkorb/checkout.phtml @@ -301,7 +301,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" autocomplete="country">
+ <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-name">
<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>
|
