diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2024-08-19 07:36:21 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2024-08-19 07:36:21 +0000 |
| commit | 4536ced2a46c908ba4ac47a89ec43cda6dcc32d6 (patch) | |
| tree | 01ca4d4eaf6bde5e5edad49980c9608464ed8fcf /views | |
| parent | 5ad9cc7767c267a826e3ee44d1d0fe42727d8d7a (diff) | |
- Option "Produktbestand nach Kauf" und "Produktbestand in Varianten nicht verringern" in Produkt überschreibbar gemacht
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8424 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
| -rw-r--r-- | views/mods/mod_stock/product_addedit_content.phtml | 29 |
1 files changed, 28 insertions, 1 deletions
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'];
+
?>
<?php echo wpsg_drawForm_AdminboxStart(__('Lagerbestand', 'wpsg')); ?>
@@ -25,7 +28,31 @@ <br />
- <div class="info"><?php echo __('Lagerbestand = Bestand(Variante 1) + Bestand(Variante 2) + Bestand(Variante X)','wpsg'); ?></div>
+ <?php if ($this->hasMod('wpsg_mod_productvariants')) { ?>
+
+ <?php echo wpsg_drawForm_Select('meta[wpsg_vp_product_stock_nocalc]', __('Produktbestand nach Kauf', 'wpsg'), [
+ '0' => 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')
+ ]); ?>
+
+ <?php echo wpsg_drawForm_Select('meta[wpsg_vp_product_stock_varinotchange]', __('Produktbestand in Varianten nicht verringern', 'wpsg'), [
+ '0' => 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')
+ ]); ?>
+
+ <?php } ?>
<?php /* Mailbenachrichtigung beim Erreichen des Minimalbestandes des Produktes */ ?>
<?php if ($this->get_option('wpsg_mod_stock_minstockproduct') == '1') { ?>
|
