Index: /controller/wpsg_ProduktController.class.php
===================================================================
--- /controller/wpsg_ProduktController.class.php	(revision 7871)
+++ /controller/wpsg_ProduktController.class.php	(revision 7872)
@@ -342,4 +342,12 @@
 					$addColum('cat_id');
 					$arData[$k]['cat_id'] = implode(',', $arCatID);
+					$arData[$k]['path'] = $this->db->fetchOne("
+		                SELECT
+		                    `post_name`
+		                FROM
+		                    `".$this->shop->prefix."posts`
+		                WHERE
+		                    `ID` = '".wpsg_q($post_id)."' 
+		            ");
 
 				}
@@ -564,7 +572,11 @@
                             if ($this->shop->hasMod('wpsg_mod_produktartikel')) {
 
-                            	$post_id = $this->shop->callMod('wpsg_mod_produktartikel', 'getPostIdFromProductId', [$product_id]);
-
-                            	\wp_delete_post($post_id, true);
+                            	try {
+
+                            		$post_id = $this->shop->callMod('wpsg_mod_produktartikel', 'getPostIdFromProductId', [$product_id]);
+
+                            		\wp_delete_post($post_id, true);
+
+	                            } catch (\Exception $e) {}
 
                             }
@@ -823,4 +835,5 @@
 
                         $pNeu_id = $this->db->ImportQuery(WPSG_TBL_PRODUCTS, $data_import, true);
+                        $this->shop->cache->clearProductCache($pNeu_id);
 
                         // Attribute speichern
@@ -853,5 +866,5 @@
                             $arCatID = wpsg_explode(',', $data['cat_id']);
 
-                            $post_id = $this->shop->callMod('wpsg_mod_produktartikel', 'getPostIdFromProductId', [$product_id]);
+                            $post_id = $this->shop->callMod('wpsg_mod_produktartikel', 'getPostIdFromProductId', [$pNeu_id, $data['path']]);
 
                             \wp_remove_object_terms($post_id, null, $this->shop->get_option('wpsg_mod_produktartikel_pathkey_cat'));
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 7871)
+++ /controller/wpsg_ShopController.class.php	(revision 7872)
@@ -2121,7 +2121,7 @@
 		    
 		    //if (array_key_exists($produkt_id, $this->productCache)) return $this->productCache[$produkt_id];
-		    
+
 			$produkt = $this->cache->loadProduct($produkt_id);
-			
+
 			// Im Backend muss die loadArray durchlaufen werden, da die Pos Spalte fÃŒr die Sortierung benÃ¶tigt wird
 			if ($loadDisabled === false && wpsg_isSizedInt($produkt['disabled']) && !is_admin()) return array();
@@ -2389,5 +2389,5 @@
 
 				// Kein Modul hat die Erstellung der Produktartikelnummer ÃŒbernommen
-				$product_data = $this->cache->loadProduct( $this->getProduktID($product_key));
+				$product_data = $this->cache->loadProduct($this->getProduktID($product_key));
 
 				return $product_data['anr'];
Index: /mods/wpsg_mod_produktartikel.class.php
===================================================================
--- /mods/wpsg_mod_produktartikel.class.php	(revision 7871)
+++ /mods/wpsg_mod_produktartikel.class.php	(revision 7872)
@@ -61,7 +61,7 @@
              */
             $sql = "CREATE TABLE ".WPSG_TBL_PRODUCTS." (
-                    ean VARCHAR(255) NOT NULL,
-                    gtin VARCHAR (255) NOT NULL
-                ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
+                ean VARCHAR(255) NOT NULL,
+                gtin VARCHAR (255) NOT NULL
+            ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
     
             dbDelta($sql);
@@ -97,7 +97,7 @@
              */
             $sql = "CREATE TABLE ".$this->shop->prefix."posts (
-                    wpsg_produkt_id INT(11) NOT NULL,
-                    KEY wpsg_produkt_id (`wpsg_produkt_id`)
-                ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
+                wpsg_produkt_id INT(11) NOT NULL,
+                KEY wpsg_produkt_id (`wpsg_produkt_id`)
+            ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;";
     
             dbDelta($sql);
@@ -560,6 +560,5 @@
         } // public function wp_head()
     
-        public function produkt_edit_allgemein(&$produkt_data)
-        {
+        public function produkt_edit_allgemein(&$produkt_data) {
     
             $post_id = $this->hasPostId($produkt_data['id']);
@@ -567,15 +566,14 @@
             $this->shop->view['data'] = $produkt_data;
     
-            if (wpsg_isSizedInt($post_id))
-            {
+            if (wpsg_isSizedInt($post_id)) {
     
                 $this->shop->view['data']['post_name'] = $this->db->fetchOne("
-                        SELECT
-                            `post_name`
-                        FROM
-                            `".$this->shop->prefix."posts`
-                        WHERE
-                            `ID` = '".wpsg_q($post_id)."' 
-                    ");
+                    SELECT
+                        `post_name`
+                    FROM
+                        `".$this->shop->prefix."posts`
+                    WHERE
+                        `ID` = '".wpsg_q($post_id)."' 
+                ");
     
             }
@@ -683,6 +681,5 @@
         } // public function produkt_save_translation(&$produkt_id, &$trans_id)
     
-        public function produkt_save_before(&$produkt_data)
-        {
+        public function produkt_save_before(&$produkt_data) {
     
             $produkt_data['ean'] = wpsg_tf(wpsg_sinput("key", wpsg_getStr($_REQUEST['wpsg_mod_produktartikel']['ean']), "isFloat"));
