diff options
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_productindex/layouts/grid.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_productindex/layouts/list.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_productvariants/produkt.phtml | 4 | ||||
| -rw-r--r-- | views/mods/mod_scaleprice/product_bottom.phtml | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/views/mods/mod_productindex/layouts/grid.phtml b/views/mods/mod_productindex/layouts/grid.phtml index 69d9cef..427b532 100644 --- a/views/mods/mod_productindex/layouts/grid.phtml +++ b/views/mods/mod_productindex/layouts/grid.phtml @@ -134,7 +134,7 @@ <?php } ?>
<?php /*Abfrage Preisanzeige nur für eingeloggte Benutzer START*/?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
+ <?php if ($this->canDisplayPrice()) { ?>
<?php if ($this->hasMod('wpsg_mod_discount') && $this->get_option('wpsg_mod_discount_productindex') == '1') { ?>
<?php $oldPrice = $oProduct->getOldPrice(); ?>
diff --git a/views/mods/mod_productindex/layouts/list.phtml b/views/mods/mod_productindex/layouts/list.phtml index 4abf5a2..fa1eb24 100644 --- a/views/mods/mod_productindex/layouts/list.phtml +++ b/views/mods/mod_productindex/layouts/list.phtml @@ -128,7 +128,7 @@ <div class="wpsg_mod_productindex_description"><?php echo $p['beschreibung']; ?></div>
<?php /* Abfrage Preisanzeige nur für eingeloggte Benutzer START */?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
+ <?php if ($this->canDisplayPrice()) { ?>
<div class="wpsg_mod_productindex_price">
<?php /* Rabattierter Preis anzeigen */ ?>
diff --git a/views/mods/mod_productvariants/produkt.phtml b/views/mods/mod_productvariants/produkt.phtml index b4934fd..dee687e 100644 --- a/views/mods/mod_productvariants/produkt.phtml +++ b/views/mods/mod_productvariants/produkt.phtml @@ -38,7 +38,7 @@ <?php echo $vari['name']; ?>
<?php /* Abfrage Preisanzeige nur für eingeloggte Benutzer START */?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
+ <?php if ($this->canDisplayPrice()) { ?>
<?php if ($this->callMod('wpsg_mod_productvariants', 'showVariPrice', array($vari['price']))) { ?>
(<?php echo wpsg_ff($vari['price'], $this->get_option('wpsg_currency')); ?>)
<?php } ?>
@@ -103,7 +103,7 @@ <?php } ?>
<?php /* Abfrage Preisanzeige nur für eingeloggte Benutzer START */?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
+ <?php if ($this->canDisplayPrice()) { ?>
<?php if ($this->callMod('wpsg_mod_productvariants', 'showVariPrice', array($vari['price']))) { ?>
<span class="wpsg_vp_vari_preisinfo">(<?php echo wpsg_ff($vari['price'], $this->get_option('wpsg_currency')); ?>)</span>
diff --git a/views/mods/mod_scaleprice/product_bottom.phtml b/views/mods/mod_scaleprice/product_bottom.phtml index e8e86db..46d34fa 100644 --- a/views/mods/mod_scaleprice/product_bottom.phtml +++ b/views/mods/mod_scaleprice/product_bottom.phtml @@ -8,7 +8,7 @@ ?>
<div class="wpsg_mod_scaleprice_producttemplate">
<?php /* Abfrage Preisanzeige nur für eingeloggte Benutzer START */?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
+ <?php if ($this->canDisplayPrice()) { ?>
<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
<?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand der Menge wie folgt:', 'wpsg'); ?><br />
|
