diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-12-12 09:52:14 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-12-12 09:52:14 +0000 |
| commit | 17ac06f81088fdb220e91f3b34daf66399e2d13b (patch) | |
| tree | ad9de8c9aa1d7226bee989e342b7005f86903991 /views/warenkorb | |
| parent | aaab4ae079f869c4b05c91cfa89abaeb4c7c9a8f (diff) | |
- Bugfix - Sollten im Warenkorb keine Versandartauswahl möglich sein, so wird keine Warnung mehr erzeugt
- Ticket #503
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5958 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/warenkorb')
| -rw-r--r-- | views/warenkorb/basket.phtml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index ec0abff..ea9a4cb 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -149,7 +149,9 @@ <option <?php echo (($s['id'] == $this->view['basket']['checkout']['shipping'])?'selected="selected"':''); ?> value="<?php echo $s_id; ?>"><?php echo wpsg_hspc(__($s['name'], 'wpsg')); ?></option>
<?php } ?>
</select>
- <?php } else if (array_key_exists($this->view['basket']['checkout']['shipping'], $this->arShipping)) { ?>
+ <?php } else if (!wpsg_isSizedArray($this->arShipping) || !array_key_exists($this->view['basket']['checkout']['shipping'], $this->arShipping)) { ?>
+ <span><?php echo __('Keine Versandart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
+ <?php } else { ?>
<span><?php echo $this->arShipping[$this->view['basket']['checkout']['shipping']]['name']; ?></span>
<?php } ?>
<?php if ($this->get_option('wpsg_hideBasketCountrySelect') != '1') { ?>
@@ -198,6 +200,8 @@ <option <?php echo (($p['id'] == $this->view['basket']['checkout']['payment'])?'selected="selected"':''); ?> value="<?php echo $p_id; ?>"><?php echo wpsg_hspc($p['name']); ?></option>
<?php } ?>
</select>
+ <?php } else if (!wpsg_isSizedArray($this->arPayment) || !array_key_exists($this->view['basket']['checkout']['payment'], $this->arPayment)) { ?>
+ <span><?php echo __('Keine Zahlungsart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
<?php } else { ?>
<span><?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?></span>
<?php } ?>
|
