summaryrefslogtreecommitdiff
path: root/views/mods/mod_minrequest
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_minrequest')
-rw-r--r--views/mods/mod_minrequest/produkt_addedit_allgemein.phtml22
1 files changed, 16 insertions, 6 deletions
diff --git a/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml b/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml
index fb4e892..69c033d 100644
--- a/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml
+++ b/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml
@@ -1,6 +1,6 @@
<?php
-/**
+ /**
* Integration des Moduls "Mindestbestellwert" in die Produktverwaltung
*/
@@ -16,13 +16,23 @@
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_minrequest[product_activ]', __('Bestellwertgrenzen für dieses Produkt aktivieren', 'wpsg'), $this->view['wpsg_mod_minrequest']['data'][0]); ?>
- <?php if ($this->hasMod('wpsg_mod_minrequest') && $this->get_option('wpsg_mod_minrequest_productamount') == '1') { ?>
+ <div class="wpsg_mod_minrequest_product_activ wpsg_mod_minrequest_product_activ_1">
+
<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[value]', __('Mindestbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['value']); ?>
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_minrequest') && $this->get_option('wpsg_mod_minrequest_productamount_max') == '1') { ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[valuemax]', __('Maximalbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['valuemax']); ?>
- <?php } ?>
+
+ </div>
+
+ <script>
+
+ jQuery('#wpsg_mod_minrequestproduct_activ').on('change', function() {
+
+ if (jQuery(this).prop('checked')) jQuery('.wpsg_mod_minrequest_product_activ_1').show();
+ else jQuery('.wpsg_mod_minrequest_product_activ_1').hide();
+
+ }).change();
+
+ </script>
<br /><br />