diff options
| -rw-r--r-- | views/order/backendEdit/addProduct_product_selected.phtml | 26 |
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]);
|
