diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2023-01-09 11:00:32 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2023-01-09 11:00:32 +0000 |
| commit | 1ea969cd2439f353826abca7cca6355605ff8717 (patch) | |
| tree | 32d6d56ff08cfe9966d3f88fa51ea0bb786272de /views/mods | |
| parent | 58b331f1959c1bec75a48671d928bdab286af0a6 (diff) | |
- Bugfix: Produktgruppenübersichtsseite funktioniert ohne Lagerbestand
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8182 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_productgroups/list.phtml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/views/mods/mod_productgroups/list.phtml b/views/mods/mod_productgroups/list.phtml index 07df917..440af68 100644 --- a/views/mods/mod_productgroups/list.phtml +++ b/views/mods/mod_productgroups/list.phtml @@ -22,9 +22,10 @@ <div class="wpsg_pgruppen_list_produkte">
<?php for ($i = 0; $i < $showP && $i < sizeof($g['produkte']); $i ++) { ?>
- <?
+ <?php
- $lagerbestand = $this->callMod('wpsg_mod_stock', 'getBestand', [$g['produkte'][$i]['id']]);
+ if ($this->hasMod('wpsg_mod_stock')) $lagerbestand = $this->callMod('wpsg_mod_stock', 'getBestand', [$g['produkte'][$i]['id']]);
+ else $lagerbestand = 1;
?>
|
