summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-12-19 13:34:49 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-12-19 13:34:49 +0000
commit101c8a33c1ebddcc809323531c313851f1a534a1 (patch)
tree195dbe4b5c324fbb972eb80822c258d594a237b8 /views
parent78a9384647448004395ca6759a0b1716ae02b39a (diff)
- Bugfix: Auswahl der Zahl- und Versandarten im Produkt funktioniert zuverlässig (PayPal Plus + Zahlvariante) / Task #708
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7644 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/produkt/addedit_payship.phtml14
1 files changed, 8 insertions, 6 deletions
diff --git a/views/produkt/addedit_payship.phtml b/views/produkt/addedit_payship.phtml
index f51a6d0..85652b5 100644
--- a/views/produkt/addedit_payship.phtml
+++ b/views/produkt/addedit_payship.phtml
@@ -9,7 +9,7 @@
<?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($p['id'], (array)$this->view['allowedPayment']), array('id' => 'wpsg_paymentmethods_'.$p['id'], 'value' => (string)$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['id'])); ?>
<?php } } ?>
</div>
@@ -18,7 +18,7 @@
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_userpayment"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Weitere Zahlvarianten definieren', 'wpsg'); ?></a>
<?php } ?>
- <script type="text/javascript">/* <![CDATA[ */
+ <script>
jQuery('#wpsg_paymentmethods_select').bind('change', function() {
@@ -27,14 +27,15 @@
} ).change();
- /* ]]> */</script>
+ </script>
+
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
<?php echo wpsg_drawForm_AdminboxStart(__('Erlaubte Versandarten', 'wpsg')); ?>
<?php echo wpsg_drawForm_Select('wpsg_shippingmethods_select', '', array('0' => __('Alle', 'wpsg'), '1' => __('Auswahl', 'wpsg')), ((wpsg_isSizedArray($this->view['allowedShipping']))?'1':'0')); ?>
<div class="wpsg_shippingmethods_select">
<?php foreach ($this->arShipping as $s) { if (!isset($s['deleted']) || $s['deleted'] != '1') { ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_shippingmethods[]', $s['name'], in_array($s['id'], (array)$this->view['allowedShipping']), array('id' => 'wpsg_shippingmethods_'.$s['id'], 'value' => $s['id'])); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_shippingmethods[]', $s['name'], in_array(strval($s['id']), (array)$this->view['allowedShipping']), array('id' => 'wpsg_shippingmethods_'.$s['id'], 'value' => $s['id'])); ?>
<?php } } ?>
</div>
@@ -43,7 +44,7 @@
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_versandarten"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Weitere Versandarten definieren', 'wpsg'); ?></a>
<?php } ?>
- <script type="text/javascript">/* <![CDATA[ */
+ <script>
jQuery('#wpsg_shippingmethods_select').bind('change', function() {
@@ -52,5 +53,6 @@
} ).change();
- /* ]]> */</script>
+ </script>
+
<?php echo wpsg_drawForm_AdminboxEnd(); ?> \ No newline at end of file