Index: /changelog
===================================================================
--- /changelog	(revision 7123)
+++ /changelog	(revision 7124)
@@ -150,2 +150,5 @@
 - Feature: Integration und Ausrichtung eines Logos auf allen Shop-E-Mails
 - Feature: Lagerbestandsmodul - Mail bei Erreichen des Minimallagerbestandes einer Variante
+- Feature: Exportprofil-Erweiterung fÃŒr Google Shopping
+- Feature: Produktattribute: optionale Darstellungsstellung
+- Feature: DownloadProdukte: Versandart "Versand per Mail" deaktivierbar
Index: /mods/wpsg_mod_abo.class.php
===================================================================
--- /mods/wpsg_mod_abo.class.php	(revision 7123)
+++ /mods/wpsg_mod_abo.class.php	(revision 7124)
@@ -304,4 +304,6 @@
 			$this->shop->update_option('wpsg_mod_abo_autoexpire_adminmail', $_REQUEST['wpsg_mod_abo_autoexpire_adminmail']);
 			$this->shop->update_option('wpsg_mod_abo_autoexpire_customer', $_REQUEST['wpsg_mod_abo_autoexpire_customer']);
+			$this->shop->update_option('wpsg_mod_abo_autoexpire_information', $_REQUEST['wpsg_mod_abo_autoexpire_information']);
+			$this->shop->update_option('wpsg_mod_abo_autoexpire_informationtime', $_REQUEST['wpsg_mod_abo_autoexpire_informationtime']);
             
 			$this->shop->update_option('wpsg_mod_abo_moreorder', $_REQUEST['wpsg_mod_abo_moreorder']);
@@ -635,4 +637,9 @@
                 __('Diese Mail wird verschickt, wenn ein Kunde im Frontend ein Abo anhalten will.', 'wpsg'), true);
              
+            echo wpsg_drawEMailConfig(
+            	'wpsgmodabautoinfo', 
+            	__('E-Mail bei Information vor VerlÃ€ngerung', 'wpsg'),
+            	__('Diese Mail erhalten Kunden, bevor ein Abo automatisch verlÃ€ngert wird', 'wpsg'), true);
+            
 		} // public function admin_emailconf()
 
@@ -1561,4 +1568,35 @@
 
 		/**
+		 * 	Sendet eine Informationsmail im Zeitraum x, bevor die VerlÃ€ngerung ansteht
+		 */
+		public function autoExtenderInformation ()
+		{
+			 
+			if ($this->shop->get_option('wpsg_mod_abo_autoexpire_information') != '0') 
+			{
+			
+				/* TODO: Auslesen der eingetragene Zeit und Berechnung des Sendezeitpunktes */
+				
+				
+				if ($this->shop->get_option('wpsg_htmlmail') === '1')
+				{
+		
+					$mail_html = $this->shop->render(WPSG_PATH_VIEW.'/mods/mod_abo/mail_autoinformation_html.phtml', false);
+		
+				}
+				else
+				{
+		
+					$mail_html = false;
+		
+				}
+		
+			}
+			 
+			return;
+			 
+		} //public function autoExtenderInformation ()
+		
+		/**
 		 * Gibt false zurÃŒck wenn das Abo nicht mehr verlÃ€ngert werden kann, ansonsten true oder die Anzahl wenn Anzahl beschrÃ€nkt die noch mÃ¶glich ist
 		 * @param int $order_id BestellID
Index: /views/mods/mod_abo/mail_autoinformation.phtml
===================================================================
--- /views/mods/mod_abo/mail_autoinformation.phtml	(revision 7124)
+++ /views/mods/mod_abo/mail_autoinformation.phtml	(revision 7124)
@@ -0,0 +1,13 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Informationsmail an den Kunden wenn ein Abo automatisch verlÃ€ngert werden soll
+	 */
+
+?><?php echo __('Hallo', 'wpsg'); ?> <?php echo wpsg_hspc($this->view['customer']['vname']); ?> <?php echo wpsg_hspc($this->view['customer']['name']); ?>,
+ 
+<?php echo wpsg_translate(__('Ihr Abonnement von Produkt "#1#" wird in #2# automatisch verlÃ€ngert.', 'wpsg'), $this->view['oProduct']->getProductName()); ?>  
+ 
+<?php echo __('Viele GrÃŒÃe', 'wpsg'); ?> 
+ 
+<?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?> 
Index: /views/mods/mod_abo/mail_autoinformation_html.phtml
===================================================================
--- /views/mods/mod_abo/mail_autoinformation_html.phtml	(revision 7124)
+++ /views/mods/mod_abo/mail_autoinformation_html.phtml	(revision 7124)
@@ -0,0 +1,13 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Informationsmail an den Kunden wenn ein Abo automatisch verlÃ€ngert werden soll
+	 */
+
+?><p><?php echo __('Hallo', 'wpsg'); ?> <?php echo wpsg_hspc($this->view['customer']['vname']); ?> <?php echo wpsg_hspc($this->view['customer']['name']); ?>,</p>
+ 
+<p><?php echo wpsg_translate(__('Ihr Abonnement von Produkt "#1#" wird in #2# automatisch verlÃ€ngert.', 'wpsg'), $this->view['oProduct']->getProductName()); ?></p> 
+ 
+<p><?php echo __('Viele GrÃŒÃe', 'wpsg'); ?></p> 
+ 
+<p><?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?></p> 
Index: /views/mods/mod_abo/settings_edit.phtml
===================================================================
--- /views/mods/mod_abo/settings_edit.phtml	(revision 7123)
+++ /views/mods/mod_abo/settings_edit.phtml	(revision 7124)
@@ -34,11 +34,16 @@
 	
 	<?php /* TODO: Mehrfachauswahl von Zahlungsarten */ ?>
-	<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_payment', __('Zahlungsart fÃŒr automatische VerlÃ€ngerung'), $arPaymentSelect, $this->get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?>
-	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_customermail', __('Mail an Kunden'), $this->get_option('wpsg_mod_abo_autoexpire_customermail'), array ('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?>
-	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_adminmail', __('Mail an Administrator'), $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?>
-
+	<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_payment', __('Zahlungsart fÃŒr automatische VerlÃ€ngerung', 'wpsg'), $arPaymentSelect, $this->get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?>
+<br />		
+	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_customermail', __('Mail an Kunden', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_customermail'),array('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?>
+	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_adminmail', __('Mail an Administrator', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?>
+<br />	
+	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_information', __('Mail vor automatischer VerlÃ€ngerung versenden', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_information'), array('help' => 'wpsg_mod_abo_autoexpire_information')); ?>
+	<div class="wpsg_mod_abo_autoexpire_informationactiv" style="display:none;">	
+		<?php echo wpsg_drawForm_Input('wpsg_mod_abo_autoexpire_informationtime', __('Zeitspanne zum Versenden der Informationsmail in Tagen', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_informationtime'), array('help' => 'wpsg_mod_abo_autoexpire_informationtime')); ?>
+	</div>
 <br />
 
-	<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customer', __('Kunde kann im Frontend'), Array(
+	<?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customer', __('Kunde kann im Frontend', 'wpsg'), Array(
 		wpsg_mod_abo::CUSTOMER_AUTO_NOTHING => __('Nichts', 'wpsg'),
 		wpsg_mod_abo::CUSTOMER_AUTO_DIRECT => __('VerlÃ€ngerung direkt stoppen', 'wpsg'),
@@ -89,4 +94,11 @@
 			
 		} ).change();
+
+		jQuery('#wpsg_mod_abo_autoexpire_information').bind('change', function() {
+
+			if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_abo_autoexpire_informationactiv').show();
+			else jQuery('.wpsg_mod_abo_autoexpire_informationactiv').hide();
+			
+		} ).change();
     	
 	} );
