Index: /mods/wpsg_mod_productvariants.class.php
===================================================================
--- /mods/wpsg_mod_productvariants.class.php	(revision 7069)
+++ /mods/wpsg_mod_productvariants.class.php	(revision 7071)
@@ -1592,5 +1592,5 @@
 			";
 
-			$arVari = $this->db->fetchAssoc($strQuery);
+			$arVari = $this->db->fetchAssoc($strQuery, "id");
 
 			return $arVari;
@@ -2160,44 +2160,75 @@
             $arFields[10]['fields']['wpsg_mod_productvariants_varname'] = __('Varianten Name', 'wpsg');
             $arFields[10]['fields']['wpsg_mod_productvariants_varanr'] = __('Varianten Artikelnummer', 'wpsg');
+         
+            $arVariant = $this->db->fetchAssoc("
+                SELECT
+                    `id`, `name`, `product_id`
+                FROM
+                    ".WPSG_TBL_VARIANTS." 
+                WHERE
+                    `deleted` != '1'
+            ");
             
+            foreach ($arVariant as $v) {
+                
+                if (wpsg_isSizedInt($v['product_id'])) $label = __('Produktvariante', 'wpsg');
+                else $label = __('Globale Variante', 'wpsg');
+
+                if (trim($v['name']) === '') $label = wpsg_translate(__('Unbenannte #1# (ID:#2#)', 'wpsg'), $label, $v['id']); 
+                else $label = wpsg_translate(__('#1# #2# (ID:#3#)', 'wpsg'), $label, $v['name'], $v['id']);
+
+                $arFields[10]['fields']['var_'.$v['id']] = $label;
+                
+            }
+             
         }
 
         public function wpsg_mod_export_getValue(&$return, $field_value, $o_id, $p_id, $product_key, $product_index, $profil_separator) {
 
-            if (!in_array($field_value, ['wpsg_mod_productvariants_varname', 'wpsg_mod_productvariants_varanr'])) return;
+		    if (preg_match('/^var_\d+$/', $field_value)) {
+		        
+		        $var_id = intval(substr($field_value, 4));
+		        $arProductKey = $this->explodeProductKey($product_key);
+		        $arVariation = $this->getVariationOfVariant($var_id);
+		        
+		        $return = $arVariation[$arProductKey['arVari'][$var_id]]['name'];
+		        		        
+            } else if (in_array($field_value, ['wpsg_mod_productvariants_varname', 'wpsg_mod_productvariants_varanr'])) {
             
-            $return = '';
-
-            $arProductExportProductKeys = [];
-            $arReturn = [];
-
-            if (wpsg_isSizedString($product_key)) $arProductExportProductKeys = [$product_key];
-            else {
-
-                $oOrder = wpsg_order::getInstance($o_id);
-
-                /** @var \wpsg_order_product $oOrderProducts */
-                foreach ($oOrder->getOrderProducts() as $oOrderProduct) {
-
-                    if (!in_array($oOrderProduct->getProductKey(), $arProductExportProductKeys)) $arProductExportProductKeys[] = $oOrderProduct->getProductKey();
-
+                $return = '';
+    
+                $arProductExportProductKeys = [];
+                $arReturn = [];
+    
+                if (wpsg_isSizedString($product_key)) $arProductExportProductKeys = [$product_key];
+                else {
+    
+                    $oOrder = wpsg_order::getInstance($o_id);
+    
+                    /** @var \wpsg_order_product $oOrderProducts */
+                    foreach ($oOrder->getOrderProducts() as $oOrderProduct) {
+    
+                        if (!in_array($oOrderProduct->getProductKey(), $arProductExportProductKeys)) $arProductExportProductKeys[] = $oOrderProduct->getProductKey();
+    
+                    }
+    
                 }
-
-            }
-            
-            foreach ($arProductExportProductKeys as $product_key) {
                 
-                if ($this->isVariantsProductKey($product_key)) {
-    
-                    $arVariInfo = $this->getVariantenInfoArray($product_key);
+                foreach ($arProductExportProductKeys as $product_key) {
                     
-                    if ($field_value === 'wpsg_mod_productvariants_varname') {
-                                            
-                        $return = $arVariInfo['key']; 
+                    if ($this->isVariantsProductKey($product_key)) {
+        
+                        $arVariInfo = $this->getVariantenInfoArray($product_key);
                         
-                    } else if ($field_value === 'wpsg_mod_productvariants_varanr') {
-    
-                        $return = $arVariInfo['akey'];
-    
+                        if ($field_value === 'wpsg_mod_productvariants_varname') {
+                                                
+                            $return = $arVariInfo['key']; 
+                            
+                        } else if ($field_value === 'wpsg_mod_productvariants_varanr') {
+        
+                            $return = $arVariInfo['akey'];
+        
+                        }
+                        
                     }
                     
