Index: /mods/wpsg_mod_productvariants.class.php
===================================================================
--- /mods/wpsg_mod_productvariants.class.php	(revision 8422)
+++ /mods/wpsg_mod_productvariants.class.php	(revision 8423)
@@ -2041,5 +2041,5 @@
 					$this->db->Query(substr($strQuery, 0, -1));
 				}
-	
+				
 				foreach ($arVar['arVari'] as $v => $vv)
 				{
Index: /mods/wpsg_mod_productvars.class.php
===================================================================
--- /mods/wpsg_mod_productvars.class.php	(revision 8422)
+++ /mods/wpsg_mod_productvars.class.php	(revision 8423)
@@ -525,6 +525,7 @@
 			if ($this->shop->get_option('wpsg_mod_productvars_showProduct') != '1') return false;
 
-			$pVarsSet = explode(",", $this->db->fetchOne("SELECT `produktvars` FROM `".WPSG_TBL_PRODUCTS."` WHERE `id` = '".wpsg_q($produkt_id)."'"));
-
+
+			$pVarsSet = explode(",", $this->db->fetchOne("SELECT `produktvars` FROM `".WPSG_TBL_PRODUCTS."` WHERE `id` = '".wpsg_q($produkt_id)."'")??'');
+			
 			foreach ($pVarsSet as $k => $v) { if (trim($v) == '') { unset($pVarsSet[$k]); } }
 
Index: /mods/wpsg_mod_stock.class.php
===================================================================
--- /mods/wpsg_mod_stock.class.php	(revision 8422)
+++ /mods/wpsg_mod_stock.class.php	(revision 8423)
@@ -379,5 +379,5 @@
 					$amount_stock = $this->getBestand($product_key);
 
-					if ($this->shop->get_option('wpsg_vp_product_stock_varinotchange')) {
+					if ($this->shop->get_option('wpsg_vp_product_stock_varinotchange') === '1') {
 					
 						if ($this->shop->hasMod('wpsg_mod_productvariants')) {
@@ -539,7 +539,16 @@
 
 			} else if ($this->shop->hasMod('wpsg_mod_productvariants') && $this->shop->callMod('wpsg_mod_productvariants', 'isVariantsProductKey', [$product_key])) {
-
-				$arStock[] = $this->shop->callMod('wpsg_mod_productvariants', 'getStockForVariation', [$product_key]);
-
+				
+				if ($this->shop->get_option('wpsg_vp_product_stock_varinotchange') === '1') {
+					
+					$product_id = $this->shop->getProduktID($product_key);
+					$arStock[] = $this->db->fetchOne("SELECT P.`stock` FROM `".WPSG_TBL_PRODUCTS."` AS P WHERE P.`id` = '".wpsg_q($product_id)."'");
+					
+				} else {
+					
+					$arStock[] = $this->shop->callMod('wpsg_mod_productvariants', 'getStockForVariation', [$product_key]);
+					
+				}
+				
 			} else if ($this->shop->hasMod('wpsg_mod_abo') && $this->shop->callMod('wpsg_mod_abo', 'isAboExtensionProductKey', [$product_key])) {
 
@@ -638,5 +647,5 @@
 			$product_stock = $this->getBestand($produkt_key);
  
-			if ($this->shop->get_option('wpsg_vp_product_stock_varinotchange')) {
+			if ($this->shop->get_option('wpsg_vp_product_stock_varinotchange') ==='1') {
 			
 				if ($this->shop->hasMod('wpsg_mod_productvariants')) {
