Index: del/productgroup.php
===================================================================
--- /model/productgroup.php	(revision 8196)
+++ 	(revision )
@@ -1,119 +1,0 @@
-<?php
-
-    namespace wpsg;
-
-    /**
-     * Model fÃŒr eine Bestellung
-     */
-    class productgroup extends \wpsg_model {
-
-        static $_tableName = 'WPSG_TBL_PRODUCTS_GROUP';
-
-        public $data = null;
-
-        /**
-         * LÃ€dt die Daten der Bestellung
-         */
-        public function load($productgroup_id) {
-
-            $this->data = $this->db->fetchRow("SELECT * FROM `".constant(self::$_tableName)."` WHERE `id` = '".intval($productgroup_id)."' ");
-            $this->id = $productgroup_id;
-
-        }
-
-        public function setImage(int $image_id) {
-
-            $this->setMeta('image', $image_id);
-
-        }
-
-        public function getImage(): int {
-
-            return intval($this->getMeta('image'));
-
-        }
-
-        public function getName(): string {
-
-            return __($this->data['name'], 'wpsg');
-
-        }
-
-        public function getTemplate() {
-
-			if ($this->data['template_file'] !== '0' && $this->data['template_file'] !== '') $template = $this->data['template_file']; else $template = false;
-
-            return $template;
-
-        }
-
-        /**
-         * @param $arFilter
-         * @return \wpsg_product[]
-         * @throws Exception
-         */
-        public function findProducts($arFilter = []) {
-
-            $arFilter['productgroup_ids'] = [$this->getId()];
-
-            return \wpsg_product::find($arFilter);
-
-        }
-
-        /**
-         * @param $arFilter
-         * @return productgroup[]
-         * @throws Exception
-         */
-        public static function find($arFilter = []) {
-
-            list($strQuerySELECT, $strQueryWHERE, $strQueryJOIN, $strQueryHAVING, $strQueryORDER) = self::getQueryParts($arFilter);
-
-            $strLimit = "";
-
-            if (wpsg_isSizedArray($arFilter['limit'])) $strLimit = "LIMIT ".wpsg_q($arFilter['limit'][0]).", ".wpsg_q($arFilter['limit'][1]);
-
-            $strQuery = "
-				SELECT
-					PG.`id`
-					".$strQuerySELECT."
-				FROM
-					`".constant(self::$_tableName)."` AS PG
-					    ".$strQueryJOIN."
-				WHERE
-					1
-					".$strQueryWHERE."
-				HAVING
-					1
-					".$strQueryHAVING."
-				ORDER BY
-					".$strQueryORDER."		
-				".$strLimit."
-			";
-
-            $arProductgroupIDs = $GLOBALS['wpsg_db']->fetchAssocField($strQuery);
-            $arReturn = array();
-
-            foreach ($arProductgroupIDs as $productgroup_id) {
-
-                $arReturn[$productgroup_id] = self::getInstance($productgroup_id);
-
-            }
-
-            return $arReturn;
-
-        }
-
-        public static function getQueryParts($arFilter = []) {
-
-            $strQuerySELECT = "";
-            $strQueryWHERE = "";
-            $strQueryJOIN = "";
-            $strQueryHAVING = "";
-            $strQueryORDER = " `id` ASC ";
-
-            return [$strQuerySELECT, $strQueryWHERE, $strQueryJOIN, $strQueryHAVING, $strQueryORDER];
-
-        }
-
-    }
Index: /mods/mod_productgroups/wpsg_productgroup.php
===================================================================
--- /mods/mod_productgroups/wpsg_productgroup.php	(revision 8196)
+++ /mods/mod_productgroups/wpsg_productgroup.php	(revision 8197)
@@ -5,12 +5,12 @@
      */
 
-    class wpsg_productgroup extends wpsg_model
-    {
+    class wpsg_productgroup extends wpsg_model {
+
+        static $_tableName = 'WPSG_TBL_PRODUCTS_GROUP';
 
 	    /**
 		 * LÃ€dt die Daten der Produktgruppe
 		 */
-		public function load($productgroup_id)
-		{
+		public function load($productgroup_id) {
 
 			parent::load($productgroup_id);
@@ -30,5 +30,17 @@
 			return true;
 
-		} // public function __construct($customer_group_id)
+		}
+
+        public function setImage(int $image_id) {
+
+            $this->setMeta('image', $image_id);
+
+        }
+
+        public function getImage(): int {
+
+            return intval($this->getMeta('image'));
+
+        }
 
 	    public function countProducts()
@@ -46,5 +58,26 @@
 			return $this->__get('name');
 			
-		} 
+		}
+
+        public function getTemplate() {
+
+			if ($this->data['template_file'] !== '0' && $this->data['template_file'] !== '') $template = $this->data['template_file']; else $template = false;
+
+            return $template;
+
+        }
+
+        /**
+         * @param $arFilter
+         * @return \wpsg_product[]
+         * @throws Exception
+         */
+        public function findProducts($arFilter = []) {
+
+            $arFilter['productgroup_ids'] = [$this->getId()];
+
+            return \wpsg_product::find($arFilter);
+
+        }
 	    
         /* Statische Funktionen */
Index: /mods/wpsg_mod_productgroups.class.php
===================================================================
--- /mods/wpsg_mod_productgroups.class.php	(revision 8196)
+++ /mods/wpsg_mod_productgroups.class.php	(revision 8197)
@@ -748,5 +748,5 @@
 			}
 
-            $oProductgroup = \wpsg\productgroup::getInstance(intval($_REQUEST['edit_id']));
+            $oProductgroup = wpsg_productgroup::getInstance(intval($_REQUEST['edit_id']));
             $oProductgroup->setImage(intval($_REQUEST['image']??0));
 
Index: /views/mods/mod_productgroups/add.phtml
===================================================================
--- /views/mods/mod_productgroups/add.phtml	(revision 8196)
+++ /views/mods/mod_productgroups/add.phtml	(revision 8197)
@@ -5,10 +5,10 @@
 	 */
 
-    /** @var \wpsg\productgroup|null $oProductgroup */
+    /** @var wpsg_productgroup|null $oProductgroup */
     $oProductgroup = null;
 
     if (intval($_REQUEST['edit_id']??0) > 0) {
 
-        $oProductgroup = wpsg\productgroup::getInstance(intval($_REQUEST['edit_id']));
+        $oProductgroup = wpsg_productgroup::getInstance(intval($_REQUEST['edit_id']));
 
     }
Index: /wpshopgermany.php
===================================================================
--- /wpshopgermany.php	(revision 8196)
+++ /wpshopgermany.php	(revision 8197)
@@ -167,5 +167,4 @@
 	require_once(dirname(__FILE__).'/model/wpsg_customer.class.php');
 	require_once(dirname(__FILE__).'/model/wpsg_news.class.php');
-	require_once(dirname(__FILE__).'/model/productgroup.php');
 	require_once(dirname(__FILE__).'/mods/wpsg_mod_basic.class.php');
     require_once(dirname(__FILE__).'/lib/wpsg_calculation.class.php');
