Index: /changelog
===================================================================
--- /changelog	(revision 5546)
+++ /changelog	(revision 5548)
@@ -810,4 +810,5 @@
  - Feature - EAN und GTIN optional hinterlegbar im Produktartikel
  - Feature - Varianten mti Lagerbestand=0 kÃ¶nnen optional angezeigt werden
+ - Feature - optionale Preisanzeige nur fÃŒr eingeloggte Benutzer
  - Feature - PostID wird beim wechsel der Variante mit ÃŒbergeben
  - Feature - Lieferzeit 0 Tag(e) wird als sofort lieferbar im Produkt angezeigt
Index: /mods/wpsg_mod_kundenverwaltung.class.php
===================================================================
--- /mods/wpsg_mod_kundenverwaltung.class.php	(revision 5546)
+++ /mods/wpsg_mod_kundenverwaltung.class.php	(revision 5548)
@@ -132,4 +132,6 @@
 			$this->shop->update_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand', $_REQUEST['wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand']);
 			$this->shop->update_option('wpsg_mod_kundenverwaltung_loginZwang', $_REQUEST['wpsg_mod_kundenverwaltung_loginZwang']);
+			$this->shop->update_option('wpsg_mod_kundenverwaltung_preisAnzeige', $_REQUEST['wpsg_mod_kundenverwaltung_preisAnzeige']);
+			
 			$this->shop->update_option('wpsg_mod_kundenverwaltung_redirectlogin', $_REQUEST['wpsg_mod_kundenverwaltung_redirectlogin']);
 			$this->shop->update_option('wpsg_mod_kundenverwaltung_redirectLogout', $_REQUEST['wpsg_mod_kundenverwaltung_redirectLogout']);
Index: /views/mods/mod_kundenverwaltung/settings_edit.phtml
===================================================================
--- /views/mods/mod_kundenverwaltung/settings_edit.phtml	(revision 5546)
+++ /views/mods/mod_kundenverwaltung/settings_edit.phtml	(revision 5548)
@@ -11,4 +11,6 @@
 <?php echo wpsg_drawForm_Checkbox('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand', __('Registrierungzwang im Checkout', 'wpsg'), $this->get_option('wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand'), array('help' => 'wpsg_mod_kundenverwaltung_showCheckoutRegisterzwand')); ?>
 <?php echo wpsg_drawForm_Checkbox('wpsg_mod_kundenverwaltung_loginZwang', __('Loginzwang im Checkout (fÃŒr Neukunden)', 'wpsg'), $this->get_option('wpsg_mod_kundenverwaltung_loginZwang'), array('help' => 'wpsg_mod_kundenverwaltung_loginZwang')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_kundenverwaltung_preisAnzeige', __('Bestellung nur fÃŒr eingeloggte Benutzer', 'wpsg'), $this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige'), array('help' => 'wpsg_mod_kundenverwaltung_preisAnzeige')); ?>
+
 <?php echo wpsg_drawForm_Select('wpsg_mod_kundenverwaltung_redirectlogin', __('Weiterleitung nach Login', 'wpsg'), array(
 	'0' => __('Auf Profilseite leiten', 'wpsg'),
Index: /views/mods/mod_productindex/layouts/grid.phtml
===================================================================
--- /views/mods/mod_productindex/layouts/grid.phtml	(revision 5546)
+++ /views/mods/mod_productindex/layouts/grid.phtml	(revision 5548)
@@ -142,25 +142,30 @@
 							</div>
 						<?php } ?>
-								
-						<div class="wpsg_mod_productindex_price">
-							<?php if ($p['min_preis'] == $p['max_preis']) { ?>
-								<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
-							<?php } else { ?>
-								<?php echo wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($p['min_preis'], $this->get_option('wpsg_currency'))); ?>
+						
+						<?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')) { ?>				
+							<div class="wpsg_mod_productindex_price">
+								<?php if ($p['min_preis'] == $p['max_preis']) { ?>
+									<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
+								<?php } else { ?>
+									<?php echo wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($p['min_preis'], $this->get_option('wpsg_currency'))); ?>
+								<?php } ?>
+							</div>
+							<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>		
+							<div class="wpsg_produkt_preishinweis">
+								<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
+							</div>
+							<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>	
+							<div class="wpsg_produkt_preishinweis">		
+								<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
+								<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+								<?php } else { /* Frontend = BRUTTO Preise */ ?>
+								<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+								<?php } ?>
+							</div>	
 							<?php } ?>
-						</div>
-						<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>		
-						<div class="wpsg_produkt_preishinweis">
-							<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
-						</div>
-						<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>	
-						<div class="wpsg_produkt_preishinweis">		
-							<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
-							<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-							<?php } else { /* Frontend = BRUTTO Preise */ ?>
-							<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-							<?php } ?>
-						</div>	
-						<?php } ?>
+						<?php }else{?>
+								<?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_button">
Index: /views/mods/mod_productindex/layouts/list.phtml
===================================================================
--- /views/mods/mod_productindex/layouts/list.phtml	(revision 5546)
+++ /views/mods/mod_productindex/layouts/list.phtml	(revision 5548)
@@ -137,24 +137,31 @@
 				</div>
 				<div class="wpsg_mod_productindex_description"><?php echo $p['beschreibung']; ?></div>
-				<div class="wpsg_mod_productindex_price">
-					<?php if ($p['min_preis'] == $p['max_preis']) { ?>
-						<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
-					<?php } else { ?>
-						<?php echo wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($p['min_preis'], $this->get_option('wpsg_currency'))); ?>
-					<?php } ?>
-				</div>
-				<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>		
-				<div class="wpsg_produkt_preishinweis">
-					<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
-				</div>
-				<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>	
-				<div class="wpsg_produkt_preishinweis">		
-					<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
-					<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-					<?php } else { /* Frontend = BRUTTO Preise */ ?>
-					<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-					<?php } ?>
-				</div>	
-				<?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')) { ?>			
+					<div class="wpsg_mod_productindex_price">
+						<?php if ($p['min_preis'] == $p['max_preis']) { ?>
+							<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
+						<?php } else { ?>
+							<?php echo wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($p['min_preis'], $this->get_option('wpsg_currency'))); ?>
+						<?php } ?>
+					</div>
+					<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>		
+					<div class="wpsg_produkt_preishinweis">
+						<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
+					</div>
+					<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>	
+					<div class="wpsg_produkt_preishinweis">		
+						<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
+						<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+						<?php } else { /* Frontend = BRUTTO Preise */ ?>
+						<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($p['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+						<?php } ?>
+					</div>	
+					<?php } ?>
+				<?php }else{?>
+						<?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_button">					
 					<?php if ($this->hasMod('wpsg_mod_stock') && $this->callMod('wpsg_mod_stock', 'checkBestand', array($p['id'], 1)) === false) { ?>
Index: /views/mods/mod_scaleprice/product_bottom.phtml
===================================================================
--- /views/mods/mod_scaleprice/product_bottom.phtml	(revision 5546)
+++ /views/mods/mod_scaleprice/product_bottom.phtml	(revision 5548)
@@ -8,38 +8,48 @@
 ?>
 <div class="wpsg_mod_scaleprice_producttemplate">
-	<?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 />
-	<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
-		<?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand des Gewichts wie folgt:', 'wpsg'); ?><br />
-	<?php } ?>
-	<ul>	
-		
-		<?php if ($this->view['wpsg_mod_scaleprice']['typ'] != wpsg_mod_scaleprice::TYP_QUANTITY || $this->view['wpsg_mod_scaleprice']['scale'][0]['scale'] != '1') { ?>
-		<li>
-			<?php echo __('Bis ', 'wpsg'); ?>
-			<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
-				<?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], __('StÃŒck', 'wpsg')); ?>
-			<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
-				<?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
+	<?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->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 />
+		<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+			<?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand des Gewichts wie folgt:', 'wpsg'); ?><br />
+		<?php } ?>
+		<ul>	
+			
+			<?php if ($this->view['wpsg_mod_scaleprice']['typ'] != wpsg_mod_scaleprice::TYP_QUANTITY || $this->view['wpsg_mod_scaleprice']['scale'][0]['scale'] != '1') { ?>
+			<li>
+				<?php echo __('Bis ', 'wpsg'); ?>
+				<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
+					<?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], __('StÃŒck', 'wpsg')); ?>
+				<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+					<?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['scale'][0]['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
+				<?php } ?>
+				<?php echo __(' kostet das Produkt ', 'wpsg'); ?>
+				<?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['base'], $this->get_option('wpsg_currency')); ?> <?php echo __('je StÃŒck', 'wpsg'); ?>
+				<?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($this->view['wpsg_mod_scaleprice']['base'], $this->view['data']['fmenge'], $this->view['data']['feinheit'])); ?>			
+			</li>
 			<?php } ?>
-			<?php echo __(' kostet das Produkt ', 'wpsg'); ?>
-			<?php echo wpsg_ff($this->view['wpsg_mod_scaleprice']['base'], $this->get_option('wpsg_currency')); ?> <?php echo __('je StÃŒck', 'wpsg'); ?>
-			<?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($this->view['wpsg_mod_scaleprice']['base'], $this->view['data']['fmenge'], $this->view['data']['feinheit'])); ?>			
-		</li>
+			
+			<?php foreach ((array)$this->view['wpsg_mod_scaleprice']['scale'] as $scale) { ?>
+			<li>		
+				<?php echo __('Ab ', 'wpsg'); ?>
+				<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
+					<?php echo wpsg_ff($scale['scale'], __('StÃŒck', 'wpsg')); ?>
+				<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+					<?php echo wpsg_ff($scale['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
+				<?php } ?>
+				<?php echo __(' kostet das Produkt ', 'wpsg'); ?>
+				<?php echo wpsg_ff($scale['value'], $this->get_option('wpsg_currency')); ?> <?php echo __('je StÃŒck', 'wpsg'); ?>
+				<?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($scale['value'], $this->view['data']['fmenge'] , $this->view['data']['feinheit'])); ?>
+			</li>
+			<?php } ?>
+		</ul>
+	<?php }else{?>
+		<?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. FÃŒr weitere Informationen loggen Sie sich bitte ein.', 'wpsg'); ?><br />
+		<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
+			<?php echo __('Das Produkt hat einen gestaffelten Preis, dieser ergibt sich Anhand des Gewichts. FÃŒr weitere Informationen loggen Sie sich bitte ein.', 'wpsg'); ?><br />
 		<?php } ?>
-		
-		<?php foreach ((array)$this->view['wpsg_mod_scaleprice']['scale'] as $scale) { ?>
-		<li>		
-			<?php echo __('Ab ', 'wpsg'); ?>
-			<?php if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_QUANTITY) { ?>
-				<?php echo wpsg_ff($scale['scale'], __('StÃŒck', 'wpsg')); ?>
-			<?php } else if ($this->view['wpsg_mod_scaleprice']['typ'] == wpsg_mod_scaleprice::TYP_WEIGHT) { ?>
-				<?php echo wpsg_ff($scale['scale'], $this->get_option('wpsg_mod_weight_unit')); ?>
-			<?php } ?>
-			<?php echo __(' kostet das Produkt ', 'wpsg'); ?>
-			<?php echo wpsg_ff($scale['value'], $this->get_option('wpsg_currency')); ?> <?php echo __('je StÃŒck', 'wpsg'); ?>
-			<?php $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', array($scale['value'], $this->view['data']['fmenge'] , $this->view['data']['feinheit'])); ?>
-		</li>
-		<?php } ?>
-	</ul>
+	<?php } /* Abfrage Preisanzeige nur fÃŒr eingeloggte Benutzer ENDE */?>
 </div>
Index: /views/mods/mod_varianten/produkt.phtml
===================================================================
--- /views/mods/mod_varianten/produkt.phtml	(revision 5546)
+++ /views/mods/mod_varianten/produkt.phtml	(revision 5548)
@@ -33,5 +33,6 @@
 		
 		<div class="wpsg_vp_field_typ_<?php echo $var['typ']; ?>">
-		
+			
+			<?php /* Select-Boxen*/ ?>
 			<?php if ($var['typ'] == "select") { ?>
 			<label>			 			
@@ -42,7 +43,14 @@
 									<option value="<?php echo $kv; ?>" <?php echo (($this->view['wpsg_mod_varianten']['set'][$k] == $kv)?'selected="selected"':''); ?>>						
 										<?php echo $vari['name']; ?>
-										<?php if ($this->callMod('wpsg_mod_varianten', 'showVariPrice', array($vari['preis']))) { ?>
-											(<?php echo wpsg_ff($vari['preis'], $this->get_option('wpsg_currency')); ?>)
-										<?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->callMod('wpsg_mod_varianten', 'showVariPrice', array($vari['preis']))) { ?>
+												(<?php echo wpsg_ff($vari['preis'], $this->get_option('wpsg_currency')); ?>)
+											<?php } ?>
+										<?php }else{?>
+											<?php echo wpsg_translate(__('(Preise nur fÃŒr eingeloggte Benutzer)', 'wpsg')); ?>
+									<?php } ?>
+									<?php /* Abfrage ENDE */ ?>
 									</option>
 									
@@ -84,4 +92,5 @@
 			<?php } ?>
 			
+			<?php /* Grafikenauswahl */ ?>
 			<?php if ($var['typ'] == 'image' && $this->hasMod('wpsg_mod_produktbilder')) { ?>
 			<div class="wpsg_mod_varianten_imageselect wpsg_mod_varianten_imageselect_<?php echo $k; ?>">
@@ -98,4 +107,5 @@
 			<?php } ?>
 			
+			<?php /* Radio-Buttons */ ?>
 			<?php if ($var['typ'] == "radio") { ?>			
 				<?php $j = 0; foreach ($var['vari'] as $kv => $vari) { if ($vari['aktiv'] == "1") { $j ++; ?>
@@ -110,9 +120,16 @@
 								<input disabled="disabled" <?php echo (($this->view['wpsg_mod_varianten']['set'][$k] == $kv)?'checked="checked"':''); ?> id="wpsg_vpfield_<?php echo $this->getProduktId($this->view['data']['id']); ?>_<?php echo $k; ?>_<?php echo $j; ?>" onclick="wpsg_vp_switch(<?php echo $this->getProduktId($this->view['data']['id']); ?>, <?php echo $this->view['product_index']; ?>);" type="radio" name="wpsg_vp[<?php echo $k; ?>]" value="<?php echo $kv; ?>" />&nbsp;<?php echo $vari['name']; ?>
 							<?php } ?>
-							
-							<?php if ($this->callMod('wpsg_mod_varianten', 'showVariPrice', array($vari['preis']))) { ?>
-								<span class="wpsg_vp_vari_preisinfo">(<?php echo wpsg_ff($vari['preis'], $this->get_option('wpsg_currency')); ?>)</span>
+							<?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->callMod('wpsg_mod_varianten', 'showVariPrice', array($vari['preis']))) { ?>
+									<span class="wpsg_vp_vari_preisinfo">(<?php echo wpsg_ff($vari['preis'], $this->get_option('wpsg_currency')); ?>)</span>
+								<?php } ?>
+								
+							<?php }else{?>
+									<?php echo wpsg_translate(__('(Preise nur fÃŒr eingeloggte Benutzer)', 'wpsg')); ?>
 							<?php } ?>
-							
+							<?php /* Abfrage ENDE */ ?>
+								
 								<?php if ($this->get_option("wpsg_vp_showpic") == "1" && isset($vari['showpic']) && $vari['showpic'] != false) { ?>
 								<span class="wpsg_vp_field_image">
@@ -137,13 +154,24 @@
 					<?php } // if aktiv ?>		
 				<?php } // for  ?>
-			<?php } // if radio ?>	
-			
+			<?php } // if radio ?>			
+			
+			<?php /* Checkboxen */ ?>
 			<?php if ($var['typ'] == "checkbox" && $var['aktiv'] == 1) { ?>
 			<label>
 				<input onchange="wpsg_vp_switch(<?php echo $this->getProduktId($this->view['data']['id']); ?>, <?php echo $this->view['product_index']; ?>);" type="hidden" value="0" name="wpsg_vp[<?php echo $k; ?>]" />
 				<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 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>
+				<?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->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>
+					<?php } ?>
+					
+				<?php } else {?>
+					<?php echo wpsg_translate(__('(Preise nur fÃŒr eingeloggte Benutzer)', 'wpsg')); ?>
 				<?php } ?>
+				<?php /* Abfrage ENDE */ ?>
+							
+				<?php }?>
 				<?php if ($this->get_option("wpsg_vp_showpic") == "1" && $var['showpic'] != false) { ?>
 				<span class="wpsg_vp_field_image">
@@ -171,5 +199,5 @@
 	</div>
 	
-	<?php } } ?>
+	<?php } ?>
 	
 <?php } ?>
Index: /views/produkttemplates/standard.phtml
===================================================================
--- /views/produkttemplates/standard.phtml	(revision 5546)
+++ /views/produkttemplates/standard.phtml	(revision 5548)
@@ -64,35 +64,44 @@
 			<?php } ?>
 		
-			<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
-				<?php echo __('StÃŒckpreis:', 'wpsg'); ?>				
-				<meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
-				<span itemprop="price" class="wpsg_preis preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>">
-					<?php echo wpsg_ff($this->view['data']['preis'], $this->get_option('wpsg_currency')); ?>
-				</span> <?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
-				
-				<?php if ($this->hasMod('wpsg_mod_discount') && $this->view['data']['preis_prediscount'] > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?>				
-				<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis new_price">
-            		<?php echo __('Originalpreis', 'wpsg'); ?>: <span class="wpsg_preis_prediscount"><?php echo wpsg_ff($this->view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?></span>		
-				</div>
-				<?php } ?>		
-			</div>
-						
-			<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>		
-			
-				<div class="wpsg_produkt_preishinweis">
-					<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
-				</div>
-			
-			<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>	
-	
-				<div class="wpsg_produkt_preishinweis">		
-					<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
-					<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-					<?php } else { /* Frontend = BRUTTO Preise */ ?>
-					<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-					<?php } ?>
-				</div>
-				
-			<?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')) { ?>
+						
+				<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
+					<?php echo __('StÃŒckpreis:', 'wpsg'); ?>				
+					<meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
+					<span itemprop="price" class="wpsg_preis preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>">
+						<?php echo wpsg_ff($this->view['data']['preis'], $this->get_option('wpsg_currency')); ?>
+					</span> <?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
+					
+					<?php if ($this->hasMod('wpsg_mod_discount') && $this->view['data']['preis_prediscount'] > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?>				
+					<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis new_price">
+	            		<?php echo __('Originalpreis', 'wpsg'); ?>: <span class="wpsg_preis_prediscount"><?php echo wpsg_ff($this->view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?></span>		
+					</div>
+					<?php } ?>		
+				</div>
+							
+				<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>		
+				
+					<div class="wpsg_produkt_preishinweis">
+						<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
+					</div>
+				
+				<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>	
+		
+					<div class="wpsg_produkt_preishinweis">		
+						<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
+						<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+						<?php } else { /* Frontend = BRUTTO Preise */ ?>
+						<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+						<?php } ?>
+					</div>
+					
+				<?php } ?>
+			<?php } else {?>
+			
+				<?php echo wpsg_translate(__('Die Produktpreise werden nur eingeloggten Benutzern angezeigt')); ?>
+			
+			<?php }?>
+			<?php /* Abfrage Preisanzeige nur fÃŒr eingeloggte User aktiv und User eingeloggt ENDE */ ?> 	
 			 			
 			<?php /* FÃŒllmengenanzeige START */ ?>
@@ -201,10 +210,15 @@
 			</div>
 			<?php } ?>
-			  
-			<?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]" />
-			<?php } ?>		
-			
-			
+
+			<?php /*Abfrage Warenkorbanzeige 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->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]" />
+				<?php } ?>		
+			<?php }else{?>
+				<a class="wpsg_blind_basket_button" href="#"><?php echo wpsg_translate(__('Loggen Sie sich bitte ein, um zu bestellen', 'wpsg')); ?></a>
+			<?php } ?>
+			<?php /* Abfrage Warenkorbanzeige nur fÃŒr eingeloggte Benutzer ENDE */?>
+						
 			<?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?> 
 			<input class="wpsg_button wpsg_add_requestlist" id="wpsg_add_requestlist_<?php echo $this->getTemplateIndex(); ?>" type="submit" value="<?php echo __('Auf die Anfrageliste', 'wpsg'); ?>" name="wpsg[submit_request]" />
