Index: /controller/wpsg_ProduktController.class.php
===================================================================
--- /controller/wpsg_ProduktController.class.php	(revision 6771)
+++ /controller/wpsg_ProduktController.class.php	(revision 6772)
@@ -159,5 +159,5 @@
 				'ascdesc' => 'ASC',
 				'status' => '0',
-				'page' => '1'
+				'page' => '1'                
 			);
 			$this->shop->view['arData'] = array();
@@ -192,5 +192,5 @@
 			$_SESSION['wpsg']['backend']['products']['arFilter'] = $this->shop->view['arFilter'];
 
-			$this->shop->view['arData'] = wpsg_product::find($this->shop->view['arFilter']);
+			$this->shop->view['arData'] = wpsg_product::find(wpsg_array_merge(array('searchExt' => '1'), $this->shop->view['arFilter']));
 
 			if (isset($_REQUEST['submit-button'])) $this->shop->view['submit'] = true;
Index: /model/wpsg_product.class.php
===================================================================
--- /model/wpsg_product.class.php	(revision 6771)
+++ /model/wpsg_product.class.php	(revision 6772)
@@ -666,5 +666,5 @@
 					".$strQueryHAVING."
 			";
-
+ 
 			return $GLOBALS['wpsg_db']->fetchOne($strQuery);
 
@@ -694,5 +694,5 @@
 					) AS innerSelect
 			";
-
+          
 			return $GLOBALS['wpsg_db']->fetchOne($strQuery);
 
@@ -770,6 +770,7 @@
 			$strQueryHAVING = "";
 			$strQueryORDER = "";
-
+            
             $bJoinPost = false;
+            $bJoinVariants = false;
             
 			if (wpsg_isSizedArray($arFilter['product_ids'])) $strQueryWHERE .= " AND P.`id` IN (".wpsg_q(implode(',', $arFilter['product_ids'])).") ";
@@ -784,6 +785,18 @@
 
 				$strQueryWHERE_OR = "";
-
-				$strQueryWHERE .= "
+                
+                if ($GLOBALS['wpsg_sc']->hasMod('wpsg_mod_productvariants') && wpsg_isSizedInt($arFilter['searchExt']))
+                {
+                    
+                    $bJoinVariants = true;
+                     
+                    //$strQueryWHERE_OR .= " OR V.`name` LIKE '%".wpsg_q($arFilter['s'])."%' ";
+                    $strQueryWHERE_OR .= " OR VV.`name` LIKE '%".wpsg_q($arFilter['s'])."%' ";
+                    $strQueryWHERE_OR .= " OR VV.`shortname` LIKE '%".wpsg_q($arFilter['s'])."%' ";
+                    $strQueryWHERE_OR .= " OR PV.`anr` LIKE '%".wpsg_q($arFilter['s'])."%' ";
+                        
+                }
+
+                $strQueryWHERE .= "
 					AND (
 						P.`name` LIKE '%".wpsg_q($arFilter['s'])."%' OR
@@ -876,4 +889,15 @@
                 
                 $strQueryJOIN .= " LEFT JOIN `".$GLOBALS['wpsg_sc']->prefix."posts` AS PP ON (PP.`wpsg_produkt_id` = P.`id`) ";
+                
+            }
+            
+            if ($bJoinVariants)
+            {
+
+                $strQueryJOIN .= " 
+                    LEFT JOIN `".WPSG_TBL_VARIANTS."` AS V ON (V.`product_id` = P.`id` OR V.`product_id` = 0)
+                    LEFT JOIN `".WPSG_TBL_VARIANTS_VARI."` AS VV ON (VV.`variant_id` = V.`id`)
+                    LEFT JOIN `".WPSG_TBL_PRODUCTS_VARIATION."` AS PV ON (PV.`variation_id` = V.`id` AND PV.`product_id` = P.`id`)
+                "; 
                 
             }
Index: /mods/mod_productgroups/wpsg_productgroup.php
===================================================================
--- /mods/mod_productgroups/wpsg_productgroup.php	(revision 6771)
+++ /mods/mod_productgroups/wpsg_productgroup.php	(revision 6772)
@@ -58,8 +58,8 @@
 					SELECT
 						PG.`id`, CONCAT(PG.`name`,' (', (
-							SELECT COUNT(*) FROM `".WPSG_TBL_PRODUCTS."` AS P WHERE (P.`pgruppe` = PG.`id` AND P.`deleted` = 0 ".$strQueryWHERE.")
+							SELECT COUNT(*) FROM `".WPSG_TBL_PRODUCTS."` AS P ".$strQueryJOIN." WHERE (P.`pgruppe` = PG.`id` AND P.`deleted` = 0 ".$strQueryWHERE.")
 						), ')') AS `name` ,
 						(
-							SELECT COUNT(*) FROM `".WPSG_TBL_PRODUCTS."` AS P WHERE (P.`pgruppe` = PG.`id` AND P.`deleted` = 0 ".$strQueryWHERE.")
+							SELECT COUNT(*) FROM `".WPSG_TBL_PRODUCTS."` AS P ".$strQueryJOIN." WHERE (P.`pgruppe` = PG.`id` AND P.`deleted` = 0 ".$strQueryWHERE.")
 					  	) AS `product_count`
 					FROM
Index: /views/produkt/index.phtml
===================================================================
--- /views/produkt/index.phtml	(revision 6771)
+++ /views/produkt/index.phtml	(revision 6772)
@@ -48,6 +48,6 @@
 						<input id="wpsg_seite" type="hidden" name="seite" value="<?php echo @$this->view['arFilter']['page']; ?>" class="current-page" />
 						<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo @$this->view['arFilter']['order']; ?>" />
-						<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" />
-
+						<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" /> 
+                        
 						<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
 
