diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2020-02-26 12:56:07 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2020-02-26 12:56:07 +0000 |
| commit | 499dd1ca9b7b433de86d5d181a124a10e25a60ab (patch) | |
| tree | 579e9fc5094ab2ced2001fe44b4dae6896860c08 /views/mods/mod_productindex/layouts | |
| parent | ec4eee839a901a3511066e7e64c6dd475377eab1 (diff) | |
- Bugfix: Füllmengenpreisanzeige in Produktübersichten korrigiert
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7680 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productindex/layouts')
| -rw-r--r-- | views/mods/mod_productindex/layouts/grid.phtml | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/views/mods/mod_productindex/layouts/grid.phtml b/views/mods/mod_productindex/layouts/grid.phtml index 427b532..79b309e 100644 --- a/views/mods/mod_productindex/layouts/grid.phtml +++ b/views/mods/mod_productindex/layouts/grid.phtml @@ -110,21 +110,7 @@ <?php } ?>
<?php } ?>
</div>
-
- <div class="wpsg_mod_productindex_fmenge">
- <?php if ($this->hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge') == '1') { ?>
- <?php if (($p['fmenge']) > '0') { ?>
- <?php echo wpsg_translate(__('Füllmenge: #1#', 'wpsg'), wpsg_ff($p['fmenge'], $p['feinheit'])); ?>
- <br />
- <?php if ($this->get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?>
- <?php echo wpsg_translate(__('Grundpreis: #1# / #2#', 'wpsg'),
- wpsg_ff($p['fmenge_preis'], $this->get_option('wpsg_currency')),
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit'])
- ); ?>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- </div>
+
</div>
<?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProductindex') == '1') { ?>
@@ -172,6 +158,12 @@ <?php echo wpsg_translate(__('Preise nur für eingeloggte Benutzer', 'wpsg')); ?>
<?php } /* Abfrage Preisanzeige nur für eingeloggte Benutzer ENDE */?>
+ <div class="wpsg_mod_productindex_fmenge">
+ <?php if ($this->hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge') == '1') { ?>
+ <?php echo $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', [$oProduct->getPrice($p['product_key']), $p['fmenge'], $oProduct->getId()]); ?>
+ <?php } ?>
+ </div>
+
<div class="wpsg_mod_productindex_button">
<?php //if ($this->hasMod('wpsg_mod_stock') && $this->callMod('wpsg_mod_stock', 'checkBestand', array($this->getProduktID($p['id']), 1)) === false) { ?>
|
