summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2020-09-10 08:42:42 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2020-09-10 08:42:42 +0000
commit5f51b4803ebcdcb43e5ff6fb8c6ed9a5a1a0ebdf (patch)
tree6c919017193c00025fad216bebb9573107c8d151 /views
parentd2c2fa7681ad97fce67c6c28a3402bc3689e66a9 (diff)
- Bugfix: Zahlungsart "Kostenlos" lässt sich im Produkt auswählen / Task #743
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7766 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/produkt/addedit_payship.phtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/produkt/addedit_payship.phtml b/views/produkt/addedit_payship.phtml
index 85652b5..e50f852 100644
--- a/views/produkt/addedit_payship.phtml
+++ b/views/produkt/addedit_payship.phtml
@@ -8,8 +8,13 @@
<?php echo wpsg_drawForm_AdminboxStart(__('Erlaubte Zahlungsarten', 'wpsg')); ?>
<?php echo wpsg_drawForm_Select('wpsg_paymentmethods_select', '', array('0' => __('Alle', 'wpsg'), '1' => __('Auswahl', 'wpsg')), ((wpsg_isSizedArray($this->view['allowedPayment']))?'1':'0')); ?>
<div class="wpsg_paymentmethods_select">
- <?php foreach ($this->arPayment as $p) { if (!isset($p['deleted']) || $p['deleted'] != '1') { ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_paymentmethods[]', $p['name'], in_array(strval($p['id']), (array)$this->view['allowedPayment']), array('id' => 'wpsg_paymentmethods_'.$p['id'], 'value' => (string)$p['id'])); ?>
+ <?php foreach ($this->arPayment as $p) { if (!isset($p['deleted']) || $p['deleted'] != '1') {
+
+ if ($p['id'] === '0') $p['value'] = 'free';
+ else $p['value'] = $p['id'];
+
+ ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_paymentmethods[]', $p['name'], in_array(strval($p['id']), (array)$this->view['allowedPayment']), array('id' => 'wpsg_paymentmethods_'.$p['id'], 'value' => (string)$p['value'])); ?>
<?php } } ?>
</div>