Index: /controller/wpsg_ProduktController.class.php
===================================================================
--- /controller/wpsg_ProduktController.class.php	(revision 6278)
+++ /controller/wpsg_ProduktController.class.php	(revision 6279)
@@ -733,4 +733,5 @@
 					'euleistungsortregel' => wpsg_q(wpsg_getStr($_REQUEST['euleistungsortregel'])),
 					'basket_multiple' => wpsg_q(wpsg_getStr($_REQUEST['basket_multiple'])),
+					'pstatus' => wpsg_q(wpsg_getStr($_REQUEST['pstatus'])),
 					'rating' => wpsg_q(wpsg_getStr($_REQUEST['rating']))
 				);
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 6278)
+++ /controller/wpsg_ShopController.class.php	(revision 6279)
@@ -1161,5 +1161,7 @@
 				
 			}
-			 			
+			 
+			if ($this->view['data']['pstatus'] == 1) return '';
+			
 			// Produkt, bei dem die EU Leistungsortregel gilt ?
 			if (wpsg_isSizedInt($this->view['data']['euleistungsortregel'])) $this->showEULayer = true;			
Index: /lib/install.php
===================================================================
--- /lib/install.php	(revision 6278)
+++ /lib/install.php	(revision 6279)
@@ -54,4 +54,5 @@
 		rating INT(1) NOT NULL,
 	  	postids VARCHAR(255) NOT NULL,	  	
+		pstatus INT(1) DEFAULT 0 NOT NULL COMMENT '1=Entwurf',
 	  	PRIMARY KEY  (id),
 	  	KEY lang_parent (lang_parent)
Index: /mods/wpsg_mod_productindex.class.php
===================================================================
--- /mods/wpsg_mod_productindex.class.php	(revision 6278)
+++ /mods/wpsg_mod_productindex.class.php	(revision 6279)
@@ -69,6 +69,8 @@
 					
 				$arTemplates = $this->getTemplates();
-				$templatefile = $arTemplates[$template];
-				//$templatefile = $template;
+				if (is_numeric($template))
+					$templatefile = $arTemplates[$template];
+				else
+					$templatefile = $template;
 				
 				//$this->shop->view['wpsg_mod_productindex']['template'] = $template;
@@ -278,24 +280,26 @@
 				$product_data = $this->shop->loadProduktArray($p_id);
 					
-				if ($this->shop->hasMod('wpsg_mod_stock'))
-				{
-						
-					// Wenn Lagerbestand aktiv dann nur wenn Option aktiv oder verfÃŒgbar
-					$showAusverkauft = get_post_meta($post_id, 'wpsg_mod_productindex_showAusverkauft', true);
-			 
-					if ($showAusverkauft == '1' || $this->shop->callMod('wpsg_mod_stock', 'checkBestand', array($p_id, 1)) == true)
-					{
-			
+				if ($product_data['pstatus'] != 1) {
+					if ($this->shop->hasMod('wpsg_mod_stock'))
+					{
+							
+						// Wenn Lagerbestand aktiv dann nur wenn Option aktiv oder verfÃŒgbar
+						$showAusverkauft = get_post_meta($post_id, 'wpsg_mod_productindex_showAusverkauft', true);
+				 
+						if ($showAusverkauft == '1' || $this->shop->callMod('wpsg_mod_stock', 'checkBestand', array($p_id, 1)) == true)
+						{
+				
+							$arProducts[] = $product_data;
+				
+						} 
+							
+					}
+					else
+					{
+							
+						// Sonst immer hinzufÃŒgen
 						$arProducts[] = $product_data;
-			
-					} 
-						
-				}
-				else
-				{
-						
-					// Sonst immer hinzufÃŒgen
-					$arProducts[] = $product_data;
-						
+							
+					}
 				}
 					
Index: /views/produkt/addedit_general.phtml
===================================================================
--- /views/produkt/addedit_general.phtml	(revision 6278)
+++ /views/produkt/addedit_general.phtml	(revision 6279)
@@ -57,4 +57,6 @@
 		<?php echo wpsg_drawForm_Select('rating', __('Bewertungspunkte', 'wpsg'), array('0', '1', '2', '3', '4', '5'), wpsg_getInt($this->view['data']['rating'])); ?>
 	<?php } ?>
+
+	<?php echo wpsg_drawForm_Select('pstatus', __('Produktstatus', 'wpsg'), array('VerÃ¶ffentlicht', 'Entwurf'), wpsg_getStr($this->view['data']['pstatus']), array('noKeys' => false)); ?>
 				
 	<?php $this->callMods('produkt_edit_allgemein', array(&$this->view['data'])); ?>	
