summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhartmut <noreply@maennchen1.de>2017-06-28 12:40:47 +0000
committerhartmut <noreply@maennchen1.de>2017-06-28 12:40:47 +0000
commit3367dfc89479ed2d8d4c1a7bd7e9f3fb34abe04b (patch)
treecedf8b43a7ef9b25d72572b206a299f6c4d5259f
parent7893dac96a8becf1ea734773bd0b64855dc2c94a (diff)
Lagerbestand wieder editierbar
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6352 0d5edaf7-2b12-4e95-93f4-047927463d4b
-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')); ?>