diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2019-10-08 05:26:06 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2019-10-08 05:26:06 +0000 |
| commit | 82e96dc56069fa0fcd7c50fbb687e6d999e9d109 (patch) | |
| tree | e261734b425d49d9c78548b649c44e7bbb18266a /views | |
| parent | 04ee0d2aa082e6da48dd509b6001ecc66829541a (diff) | |
- Bugfix: Preisanzeige an, wenn Kundenverwaltung inaktiv, egal wie es vorher eingestellt war / Task #685
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7583 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
| -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 />
|
