Index: /mods/wpsg_mod_productvariants.class.php
===================================================================
--- /mods/wpsg_mod_productvariants.class.php	(revision 8253)
+++ /mods/wpsg_mod_productvariants.class.php	(revision 8254)
@@ -67,5 +67,4 @@
 				shortname varchar(255) NOT NULL,
 				anr varchar(255) NOT NULL,
-				ean text NOT NULL COMMENT 'EAN der Variation',
 				deleted int(1) NOT NULL,
 				pos int(11) NOT NULL,
@@ -102,4 +101,5 @@
 				weight double(10,2) NOT NULL,
 				fmenge double(10,2) NOT NULL,
+				ean text NOT NULL COMMENT 'EAN der Variation',
 				PRIMARY KEY  (id),
 				KEY product_id (product_id),
@@ -1471,5 +1471,5 @@
 			} else if (wpsg_isSizedString($_REQUEST['field'], 'ean')) {
 				
-				$this->db->UpdateQuery(WPSG_TBL_VARIANTS_VARI, ['ean' => wpsg_q($_REQUEST['value'])], " `id` = '".intval($_REQUEST['field_id'])."' ");
+				$this->setProductVariation($_REQUEST['product_id'], $_REQUEST['field_id'], 'ean', wpsg_xss($_REQUEST['value']));
 				
 			} else if (wpsg_isSizedString($_REQUEST['field'], 'template_id') && $this->shop->hasMod('wpsg_mod_downloadplus')) {
@@ -1656,5 +1656,5 @@
 				$strQueryJOIN .= " LEFT JOIN `".WPSG_TBL_PRODUCTS."` AS P ON (P.`id` = PV.`product_id`) ";
 
-				$strQuerySELECT .= $strQueryP_SELECT;
+				$strQuerySELECT .= $strQueryP_SELECT.", PV.`ean`";
 				$strQueryJOIN .= $strQueryP_JOIN;
 				$strQueryWHERE .= $strQueryP_WHERE;
@@ -1664,5 +1664,5 @@
 
 				$strQueryJOIN .= " LEFT JOIN `".WPSG_TBL_PRODUCTS_VARIATION."` AS PV ON (PV.`variation_id` = VI.`id` AND PV.`product_id` = '".wpsg_q($product_id)."') ";
-				$strQuerySELECT .= " , PV.`id` AS iid, PV.`variation_id`, PV.`active`, PV.`anr`, PV.`price`, PV.`stock`, PV.`min_stock`, PV.`images`, PV.`images_set`, PV.`weight`, PV.`fmenge` ";
+				$strQuerySELECT .= " , PV.`id` AS iid, PV.`variation_id`, PV.`active`, PV.`ean`, PV.`anr`, PV.`price`, PV.`stock`, PV.`min_stock`, PV.`images`, PV.`images_set`, PV.`weight`, PV.`fmenge` ";
 
 			}
@@ -1670,6 +1670,4 @@
 			if ($this->shop->hasMod('wpsg_mod_downloadplus')) $strQuerySELECT .= " , VI.`template_id` ";
 			
-			$strQuerySELECT .= " , VI.`ean` ";
-
 			$strQuery = "
 				SELECT
@@ -2064,5 +2062,5 @@
 							SELECT
 								PVI.*, VI.`images` AS `global_images`,
-								VI.`name`, VI.`shortname`, VI.`deleted`, VI.`pos`,  VI.`ean`
+								VI.`name`, VI.`shortname`, VI.`deleted`, VI.`pos`
 							FROM
 								`".WPSG_TBL_VARIANTS_VARI."` AS VI
Index: /views/mods/mod_productvariants/admin_edit.phtml
===================================================================
--- /views/mods/mod_productvariants/admin_edit.phtml	(revision 8253)
+++ /views/mods/mod_productvariants/admin_edit.phtml	(revision 8254)
@@ -317,4 +317,5 @@
                     <?php } ?>
 					
+					<?php if (wpsg_isSizedInt($this->view['product_id'])) { ?>
 					<div style="margin-top:0.25rem;">
 						<span>EAN:
@@ -326,5 +327,6 @@
 							submitdata: {
 								field: 'ean',
-								field_id: '<?php echo $vari['id']; ?>'
+								product_id: <?php echo $this->view['product_id']; ?>,
+					    		field_id: '<?php echo $vari['id']; ?>'
 							}
 						});
@@ -332,4 +334,5 @@
 						</script>
 					</div>
+					<?php } ?>
 					
 					<script>
Index: /views/produkttemplates/standard.phtml
===================================================================
--- /views/produkttemplates/standard.phtml	(revision 8253)
+++ /views/produkttemplates/standard.phtml	(revision 8254)
@@ -38,4 +38,5 @@
         <meta itemprop="name" content="<?php echo wpsg_hspc($this->getProductName($this->view['data']['id'])); ?>" />
         <meta itemprop="sku" content="<?php echo wpsg_hspc($oProduct->getProductNr()); ?>" />
+        <meta itemprop="gtin13" content="<?php echo wpsg_hspc($oProduct->getEAN()); ?>" />
         <meta itemprop="detailname" content="<?php echo wpsg_hspc($this->view['data']['detailname']); ?>" />
 
