Index: /changelog
===================================================================
--- /changelog	(revision 7056)
+++ /changelog	(revision 7057)
@@ -136,2 +136,5 @@
 - Bugfix: Abfrage, ob Column bei Import schon vorhanden ist
 - Bugfix: Produktvarianten - Lagerbestand der aktuell ausgewÃ€hlten Variante wird jetzt im Produkttemplate angezeigt 
+- Feature: Satolo Newsletter-Abonnentenstatus bei Neuregistrierung optional auswÃ€hlbar
+- Feature: Satolo Newsletter-Registrierung mittels Double-OptIn
+- Feature: Satolo Newsletter-Abonnenten in gewÃ€hlte Liste integrieren
Index: /mods/wpsg_mod_nlsatolo.class.php
===================================================================
--- /mods/wpsg_mod_nlsatolo.class.php	(revision 7056)
+++ /mods/wpsg_mod_nlsatolo.class.php	(revision 7057)
@@ -67,4 +67,36 @@
 						
 		} // public function order_done(&$order_id)
+
+		public function install()
+		{
+				
+			$this->shop->checkDefault('wpsg_mod_nlsatolo_action', '0');
+				
+		} // public function install()		
+		
+		public function settings_edit()
+		{
+				
+			$this->shop->view['plugin_active'] = $this->checkNewsletterPlugin();
+				
+			if ($this->shop->view['plugin_active'] === true)
+			{
+		
+				$this->shop->view['arGroup'] = wpng_Group::loadAllGroupNames();
+		
+			}
+				
+			$this->render(WPSG_PATH_VIEW.'/mods/mod_nlsatolo/settings_edit.phtml');
+				
+		} // public function settings_edit()
+				
+		public function settings_save()
+		{
+			
+			$this->shop->update_option('wpsg_mod_nlsatolo_status', $REQUEST['wpsg_mod_nlsatolo_status']);
+			$this->shop->update_option('wpsg_mod_nlsatolo_group', $REQUEST['wpsg_mod_nlsatolo_group']); 
+			$this->shop->update_option('wpsg_mod_nlsatolo_action', $_REQUEST['wpsg_mod_nlsatolo_action']);
+				
+		} // public function settings_save()
 		
 		public function basket_save_done(&$o_id, &$k_id, &$oBasket)
@@ -147,4 +179,28 @@
 			
 		} // public function clearSession()
+		
+		/** 
+		 * Gibt true zurÃŒck, wenn das Satolo Newsletter Plugin installiert und aktiv ist
+		 */
+		private function checkNewsletterPlugin()
+		{
+				
+			require_once(ABSPATH.'wp-admin/includes/plugin.php');
+				
+			if (is_plugin_active('newsletter/plugin.php'))
+			{
+					
+				if ($GLOBALS['wpng_pc']->hasActiveLicence() || $GLOBALS['wpng_pc']->getDemoDays() > 0)
+				{
+						
+					return true;
+						
+				}
+		
+			}
+				
+			return false;
+				
+		} // private function checkNewsletterPlugin()
 				
 	} // class wpsg_mod_nlsatolo extends wpsg_mod_basic
Index: /views/mods/mod_nlsatolo/settings_edit.phtml
===================================================================
--- /views/mods/mod_nlsatolo/settings_edit.phtml	(revision 7057)
+++ /views/mods/mod_nlsatolo/settings_edit.phtml	(revision 7057)
@@ -0,0 +1,23 @@
+<?php
+
+	/**
+	 * Template fÃŒr die Einstellungen des Satollo Newsletter Moduls
+	 */
+
+?>
+<?php if ($this->view['plugin_active'] !== true) { ?>
+
+	<div class="wpsg_error"><br /><?php echo __('Das Modul ist nur mit aktiviertem Satollo Newsletter Plugin funktionsfaehig.', 'wpsg'); ?><br /></div>
+
+<?php } else { ?>
+
+	<?php echo wpsg_drawForm_Select('wpsg_mod_nlsatolo_status', __('Statuszuordnung nach Registrierung', 'wpsg'), array('0' => __('bestaetigt', 'wpsg'), '1' => __('nicht bestaetigt', 'wpsg')), $this->get_option('wpsg_mod_nlsatolo_status'), array('help' => 'wpsg_mod_nlsatolo_status')); ?>
+	
+	<?php /* Listen werden im Satolo-Newsletter-Plugin unter Subscribers > Listen erstellen > Listen angelegt*/ ?>
+	<?php echo wpsg_drawForm_Select('wpsg_mod_nlsatolo_group', __('Gruppezuordnung nach Registrierung', 'wpsg'), array('0' => __(' TODO ', 'wpsg')), $this->get_option('wpsg_mod_nlsatolo_group'), array('help' => 'wpsg_mod_nlsatolo_group')); ?>
+
+	<br />
+	
+	<?php echo wpsg_drawForm_Select('wpsg_mod_nlsatolo_action', __('Aktion', 'wpsg'), array('0' => __('Opt-In Mail versenden', 'wpsg'), '1' => __('Direkt anmelden', 'wpsg')), $this->get_option('wpsg_mod_nlsatolo_action'), array('help' => 'wpsg_mod_nlsatolo_action')); ?>
+	
+<?php } ?>
