From 4536ced2a46c908ba4ac47a89ec43cda6dcc32d6 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Mon, 19 Aug 2024 07:36:21 +0000 Subject: - Option "Produktbestand nach Kauf" und "Produktbestand in Varianten nicht verringern" in Produkt überschreibbar gemacht MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8424 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_stock/product_addedit_content.phtml | 29 +++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/views/mods/mod_stock/product_addedit_content.phtml b/views/mods/mod_stock/product_addedit_content.phtml index 93ba804..ede1099 100644 --- a/views/mods/mod_stock/product_addedit_content.phtml +++ b/views/mods/mod_stock/product_addedit_content.phtml @@ -4,6 +4,9 @@ * Template für die Integration des Lagerbestandes in die Produktverwaltung */ + /** @var wpsg_product $oProduct */ + $oProduct = $this->view['oProduct']; + ?> @@ -25,7 +28,31 @@
-
+ hasMod('wpsg_mod_productvariants')) { ?> + + wpsg_translate( + __('Voreinstellung (#1#)', 'wpsg'), + (($this->get_option('wpsg_vp_product_stock_nocalc') === '1')?'nicht berechnen':'berechnen') + ), + '2' => __('berechnen'), + '1' => __('nicht berechnen') + ], $oProduct->getMeta('wpsg_vp_product_stock_nocalc'), [ + 'hint' => __('Ist hier "berechnen" eingestellt, wird beim Ändern des Bestandes einer Variante der Bestand im Produkt aus den Varianten ermittelt. (Lagerbestand im Produkt = Bestand(Variante 1) + Bestand(Variante 2) + ... )', 'wpsg') + ]); ?> + + wpsg_translate( + __('Voreinstellung (#1#)', 'wpsg'), + (($this->get_option('wpsg_vp_product_stock_varinotchange') === '1')?'nicht verringern':'verringern') + ), + '2' => __('verringern'), + '1' => __('nicht verringern') + ], $oProduct->getMeta('wpsg_vp_product_stock_varinotchange'), [ + 'hint' => __('Ist hier "nicht verringern" aktiviert, so wird der Bestand in der Variante beim Kauf nicht reduziert.', 'wpsg') + ]); ?> + + get_option('wpsg_mod_stock_minstockproduct') == '1') { ?> -- cgit v1.2.3