summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2022-02-22 08:56:46 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2022-02-22 08:56:46 +0000
commitbe8322a5d7ed3aec40ce8bfcc15201bf427a599d (patch)
tree444bb20a601e552d3ce70cb74fcb6054bc20af2a
parent7d375bb049a5de97482080a10ce7b53b248fcbe2 (diff)
- Feature: Staffelpreise können jetzt angewendet werden wenn im Backend ein Produkt hinzugefügt wird #776
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7974 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/order/backendEdit/addProduct_product_selected.phtml26
1 files changed, 26 insertions, 0 deletions
diff --git a/views/order/backendEdit/addProduct_product_selected.phtml b/views/order/backendEdit/addProduct_product_selected.phtml
index 93824bd..b2cf238 100644
--- a/views/order/backendEdit/addProduct_product_selected.phtml
+++ b/views/order/backendEdit/addProduct_product_selected.phtml
@@ -43,6 +43,32 @@
<?php echo wpsg_drawForm_Input('add_amount', __('Menge', 'wpsg'), (($oOrderProduct !== false)?$oOrderProduct->getCount():'1')); ?>
<?php echo wpsg_drawForm_Checkbox('add_eu',__('EU-Leistungsortregel anwenden', 'wpsg'),(($oOrderProduct !== false)?$oOrderProduct->euleistungsortregel:'1')) ?>
+ <?php if ($this->hasMod('wpsg_mod_scaleprice')) { ?>
+ <?php if ($this->callMod('wpsg_mod_scaleprice', 'product_has_scaleprice', [$oProduct->getId()])) { ?>
+
+ <?php echo wpsg_drawForm_Checkbox('set_scaleprice', __('Produktpreis anhand Preisstaffel ermitteln', 'wpsg'), false); ?>
+
+ <script>
+
+ document.getElementById('set_scaleprice').addEventListener('change', (event) => {
+
+ if (event.target.checked) {
+
+ document.getElementById('add_price').setAttribute('disabled', 'disabled');
+
+ } else {
+
+ document.getElementById('add_price').removeAttribute('disabled');
+
+ }
+
+ });
+
+ </script>
+
+ <?php } ?>
+ <?php } ?>
+
<?php if ($this->callMod('wpsg_mod_productvariants', 'isVariantsProduct', [$oProduct->id])) {
$arVariants = $this->callMod('wpsg_mod_productvariants', 'getVariants', [$oProduct->id, true, true, true]);