Index: /changelog
===================================================================
--- /changelog	(revision 7582)
+++ /changelog	(revision 7583)
@@ -264,3 +264,4 @@
 #4.1.5
 - Bugfix: Korrekte Nounce ÃberprÃŒfung beim Sprung von der BestellÃŒbersicht in ein Produkt
+- Bugfix: Preisanzeige an, wenn Kundenverwaltung inaktiv, egal wie es vorher eingestellt war / Task #685
 - Feature: Produktartikel - Positionsspalte in Backend sichtbar und sortierbar
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 7582)
+++ /controller/wpsg_ShopController.class.php	(revision 7583)
@@ -705,13 +705,16 @@
 		/**
 		 * True, wenn im System Frontend angezeigt werden dÃŒrfen
+		 * Bestimmt auch, ob bestellt werden darf
+		 * 
 		 * @return bool
 		 */
-		public function canDisplayPrice()
-		{
-
+		public function canDisplayPrice() {
+
+			// Wenn Kundenverwaltung inaktiv, gibt es auch die Einstellung nicht => Preis anzeigen
+			if (!$this->hasMod('wpsg_mod_kundenverwaltung')) return true;
+			
 			$wpsg_mod_kundenverwaltung_preisAnzeige = $this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige');
 
-			if (wpsg_isSizedInt($wpsg_mod_kundenverwaltung_preisAnzeige))
-			{
+			if (wpsg_isSizedInt($wpsg_mod_kundenverwaltung_preisAnzeige)) {
 
 				// Preis und Kauf nur fÃŒr angemeldete Benutzer
Index: /model/wpsg_product.class.php
===================================================================
--- /model/wpsg_product.class.php	(revision 7582)
+++ /model/wpsg_product.class.php	(revision 7583)
@@ -334,15 +334,6 @@
 
 			// Kauf nur fÃŒr angemeldete Benutzer?
-			$wpsg_mod_kundenverwaltung_preisAnzeige = $this->shop->get_option('wpsg_mod_kundenverwaltung_preisAnzeige');
-
-			if (wpsg_isSizedInt($wpsg_mod_kundenverwaltung_preisAnzeige))
-			{
-
-				$isLoggedIn = $this->shop->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn');
-
-				if (!wpsg_isSizedInt($isLoggedIn)) return false;
-
-			}
-
+			if (!$this->shop->canDisplayPrice()) return false;
+			
 			// Module Checken
 			$bOK = $this->shop->callMods('canOrder', array($product_key));
Index: /system/intern/views/mod_varianten/produkt.phtml
===================================================================
--- /system/intern/views/mod_varianten/produkt.phtml	(revision 7582)
+++ /system/intern/views/mod_varianten/produkt.phtml	(revision 7583)
@@ -54,5 +54,5 @@
 												
 												<?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_varianten', 'showVariPrice', array($vari['preis']))) { ?>
 														(<?php echo wpsg_ff($vari['preis'], $this->get_option('wpsg_currency')); ?>)
@@ -135,5 +135,5 @@
 									
 									<?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_varianten', 'showVariPrice', array($vari['preis']))) { ?>
@@ -174,5 +174,5 @@
 						<input <?php echo (($this->view['wpsg_mod_varianten']['set'][$k] == '1')?'checked="checked"':''); ?> onchange="wpsg_vp_switch(<?php echo $this->getProduktId($this->view['data']['id']); ?>, <?php echo $this->view['product_index']; ?>);" type="checkbox" value="1" name="wpsg_vp[<?php echo $k; ?>]" />
 						<?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_varianten', 'showVariPrice', array($var['preis']))) { ?>
 								<span class="wpsg_vp_vari_preisinfo">(<?php echo wpsg_ff($var['preis'], $this->get_option('wpsg_currency')); ?>)</span>
Index: /system/intern/views/produkttemplates/standard_alt.phtml
===================================================================
--- /system/intern/views/produkttemplates/standard_alt.phtml	(revision 7582)
+++ /system/intern/views/produkttemplates/standard_alt.phtml	(revision 7583)
@@ -73,6 +73,6 @@
 				<?php } ?>
 			
-				<?php /* Abfrage Preisanzeige nur fÃŒr eingeloggte User aktiv und User eingeloggt 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 /* Abfrage Preisanzeige nur fÃŒr eingeloggte User aktiv und User eingeloggt START*/ ?>
+				<?php if ($this->canDisplayPrice()) { ?>
 							
 					<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
@@ -260,5 +260,5 @@
 					<?php /* Abfrage Warenkorbanzeige nur fÃŒr eingeloggte Benutzer START */ ?>
 					<div class="wpsg_product_button_basket">
-						<?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->callMods('productForSale', array($this->view['data']['product_key']))) { ?>
 								<input class="wpsg_button wpsg_add_basket wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>" type="submit" value="<?php echo __('In den Warenkorb', 'wpsg'); ?>" name="wpsg[submit]" />
Index: /system/intern/views/produkttemplates/standard_mt.phtml
===================================================================
--- /system/intern/views/produkttemplates/standard_mt.phtml	(revision 7582)
+++ /system/intern/views/produkttemplates/standard_mt.phtml	(revision 7583)
@@ -87,6 +87,6 @@
 				<?php } ?>
 			
-				<?php /* Abfrage Preisanzeige nur fÃŒr eingeloggte User aktiv und User eingeloggt 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 /* Abfrage Preisanzeige nur fÃŒr eingeloggte User aktiv und User eingeloggt START*/ ?>
+				<?php if ($this->canDisplayPrice()) { ?>
 							
 					<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
@@ -274,5 +274,5 @@
 					<?php /* Abfrage Warenkorbanzeige nur fÃŒr eingeloggte Benutzer START */ ?>
 					<div class="wpsg_product_button_basket">
-						<?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->callMods('productForSale', array($this->view['data']['product_key']))) { ?>
 								<input class="wpsg_button wpsg_add_basket wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>" type="submit" value="<?php echo __('In den Warenkorb', 'wpsg'); ?>" name="wpsg[submit]" />
Index: /views/mods/mod_productindex/layouts/grid.phtml
===================================================================
--- /views/mods/mod_productindex/layouts/grid.phtml	(revision 7582)
+++ /views/mods/mod_productindex/layouts/grid.phtml	(revision 7583)
@@ -135,5 +135,5 @@
 
 						<?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') { ?>
     							
Index: /views/mods/mod_productindex/layouts/list.phtml
===================================================================
--- /views/mods/mod_productindex/layouts/list.phtml	(revision 7582)
+++ /views/mods/mod_productindex/layouts/list.phtml	(revision 7583)
@@ -129,5 +129,5 @@
 
 				<?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">
 					
Index: /views/mods/mod_productvariants/produkt.phtml
===================================================================
--- /views/mods/mod_productvariants/produkt.phtml	(revision 7582)
+++ /views/mods/mod_productvariants/produkt.phtml	(revision 7583)
@@ -39,5 +39,5 @@
 													
 													<?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')); ?>)
@@ -104,5 +104,5 @@
 										
 										<?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']))) { ?>
Index: /views/mods/mod_scaleprice/product_bottom.phtml
===================================================================
--- /views/mods/mod_scaleprice/product_bottom.phtml	(revision 7582)
+++ /views/mods/mod_scaleprice/product_bottom.phtml	(revision 7583)
@@ -9,5 +9,5 @@
 <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) { ?>
