summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/mods/mod_stock/product_addedit_content.phtml9
1 files changed, 6 insertions, 3 deletions
diff --git a/views/mods/mod_stock/product_addedit_content.phtml b/views/mods/mod_stock/product_addedit_content.phtml
index 5dccce2..93ba804 100644
--- a/views/mods/mod_stock/product_addedit_content.phtml
+++ b/views/mods/mod_stock/product_addedit_content.phtml
@@ -12,11 +12,14 @@
// $this->view['oProduct']['loadedData']['id/product_key']
$key = $this->view['oProduct']->id;
- if ($this->callMod('wpsg_mod_productvariants', 'isVariantsProduct', array($key)) == true) {
- echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock']), array('readonly' => true));
+ if ($this->callMod('wpsg_mod_productvariants', 'isVariantsProduct', array($key)) == true)
+ {
+ //echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock']), array('readonly' => true));
} else {
- echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock']), array());
+ //echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock']), array());
}
+ echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock']), array());
+
?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_stock_count', __('Lagerbestand zählen', 'wpsg'), wpsg_getStr($this->view['data']['stock_count'], '0')); ?>