From 3367dfc89479ed2d8d4c1a7bd7e9f3fb34abe04b Mon Sep 17 00:00:00 2001 From: hartmut Date: Wed, 28 Jun 2017 12:40:47 +0000 Subject: Lagerbestand wieder editierbar git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6352 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_stock/product_addedit_content.phtml | 9 ++++++--- 1 file 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()); + ?> view['data']['stock_count'], '0')); ?> -- cgit v1.2.3