From 9e3f0c863ebf51d9f4b7304b2bd1224eb0a7e3cd Mon Sep 17 00:00:00 2001 From: hartmut Date: Fri, 16 Jun 2017 08:30:29 +0000 Subject: Lagerbestand an Variantenbestand koppeln git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6333 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_stock/product_addedit_content.phtml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'views') diff --git a/views/mods/mod_stock/product_addedit_content.phtml b/views/mods/mod_stock/product_addedit_content.phtml index c797d7d..5dccce2 100644 --- a/views/mods/mod_stock/product_addedit_content.phtml +++ b/views/mods/mod_stock/product_addedit_content.phtml @@ -8,17 +8,26 @@ - view['data']['stock'], '0')); ?> + 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)); + } else { + echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock']), array()); + } + ?> view['data']['stock_count'], '0')); ?>
- + get_option('wpsg_mod_stock_minstockproduct') == '1') { ?> view['data']['minstockproduct_count'])); ?> - view['data']['minstockproduct_mail'])); ?> + view['data']['minstockproduct_mail'])); ?>
-- cgit v1.2.3