Index: /changelog
===================================================================
--- /changelog	(revision 7180)
+++ /changelog	(revision 7181)
@@ -166,5 +166,5 @@
 - Feature: Lagerbestandsmodul - Mail bei Erreichen des Minimallagerbestandes einer Variante
 - Feature: Exportprofil-Erweiterung fÃŒr Google Shopping
-- Feature: Produktattribute: optionale Darstellungsstellung
+- Feature: Produktattribute: optionale Darstellung
 - Feature: DownloadProdukte: Versandart "Versand per Mail" deaktivierbar
 - Feature: AboProdukte: optionale Informationsmail vor Ablauf des Abos (Zeitspanne variable konfigurierbar)
@@ -173,2 +173,3 @@
 - Feature: intervallisierbare LÃ¶schfunktion der KundendatensÃ€tze
 - Feature: GutenbergfÃ€higkeit hergestellt
+- Feature: Gutscheinintegration optional deaktivierbar, wenn ein Rabatt aktiv ist
Index: /mods/wpsg_mod_discount.class.php
===================================================================
--- /mods/wpsg_mod_discount.class.php	(revision 7180)
+++ /mods/wpsg_mod_discount.class.php	(revision 7181)
@@ -147,4 +147,6 @@
 			$this->shop->update_option('wpsg_mod_discount_showBasket', $_REQUEST['wpsg_mod_discount_showBasket']);
 
+			$this->shop->update_option('wpsg_mod_discount_voucher', $_REQUEST['wpsg_mod_discount_voucher']);
+			
 		} // public function settings_save()
 
Index: /views/mods/mod_discount/settings_edit.phtml
===================================================================
--- /views/mods/mod_discount/settings_edit.phtml	(revision 7180)
+++ /views/mods/mod_discount/settings_edit.phtml	(revision 7181)
@@ -57,6 +57,8 @@
 
             <?php echo wpsg_drawForm_Checkbox('wpsg_mod_discount_stopRabatt', __('Nur ersten Rabatt berÃŒcksichtigen', 'wpsg'), $this->get_option('wpsg_mod_discount_stopRabatt'), array('label' => __('Optionen', 'wpsg'))); ?>
-            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_discount_showBasket', __('NÃ€chste Staffelung im Warenkorb anpreisen', 'wpsg'), $this->get_option('wpsg_mod_discount_showBasket')); ?>
+            <?php echo wpsg_drawForm_Checkbox('wpsg_mod_discount_showBasket', __('NÃ€chste Staffelung im Warenkorb anpreisen', 'wpsg'), $this->get_option('wpsg_mod_discount_showBasket'), array('help' => 'wpsg_mod_discount_showBasket')); ?>
 
+        	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_discount_voucher', __('Gutscheine bei aktivem Rabatt nicht zulassen', 'wpsg'), $this->get_option('wpsg_mod_discount_voucher'), array('help' => 'wpsg_mod_discount_voucher')); ?>
+        
         </div>
         <div role="tabpanel" class="tab-pane" id="tab2">
Index: /views/mods/mod_gutschein/basket_row_end.phtml
===================================================================
--- /views/mods/mod_gutschein/basket_row_end.phtml	(revision 7180)
+++ /views/mods/mod_gutschein/basket_row_end.phtml	(revision 7181)
@@ -8,12 +8,21 @@
 <br />
 <div class="basket_sum_row">
-	<div class="codegs">
-		<label class="codegsf" for="wpsg_gutschein_input"><?php echo __('Gutscheincode:', 'wpsg'); ?></label>
-	</div>
-	<div class="codegsl">
-		<input id="wpsg_gutschein_input" class="wpsg_gutschein_input <?php echo ((in_array("gutschein", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg[gutschein]" value="" />
-	</div>
-	<div class="codegsr">
-		<input class="wpsg_button wpsg_gutschein_add" type="submit" name="wpsg_gutschein_add" value="<?php echo '&nbsp;'.__('EinlÃ¶sen', 'wpsg').'&nbsp;'; ?>" />
-	</div>
+	<?php /* TODO: Kunden bereits ÃŒber das Widget eingeloggt (Kundengruppenrabatt)? */ ?>
+	<?php if ($this->hasMod('wpsg_mod_discount') && ($this->get_option('wpsg_mod_discount_voucher') == 1)) { ?>
+		
+		<?php echo __('Aufgrund einer Rabattaktion ist das HinzufÃŒgen eines Gutscheines nicht mÃ¶glich', 'wpsg'); ?>
+		
+	<?php } else {?>
+	
+		<div class="codegs">
+			<label class="codegsf" for="wpsg_gutschein_input"><?php echo __('Gutscheincode:', 'wpsg'); ?></label>
+		</div>
+		<div class="codegsl">
+			<input id="wpsg_gutschein_input" class="wpsg_gutschein_input <?php echo ((in_array("gutschein", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg[gutschein]" value="" />
+		</div>
+		<div class="codegsr">
+			<input class="wpsg_button wpsg_gutschein_add" type="submit" name="wpsg_gutschein_add" value="<?php echo '&nbsp;'.__('EinlÃ¶sen', 'wpsg').'&nbsp;'; ?>" />
+		</div>
+	
+	<?php }?>	
 </div>
