Index: /views/produkttemplates/standard3.phtml
===================================================================
--- /views/produkttemplates/standard3.phtml	(revision 8472)
+++ /views/produkttemplates/standard3.phtml	(revision 8473)
@@ -9,5 +9,9 @@
 
     $arAttachmentIDsAll = $this->imagehandler->getAttachmentIDs($this->view['data']['product_id']);
-
+	$arAttachmentID = $this->imagehandler->getAttachmentID($this->view['data']['product_key']);
+	$arAttachmentIndex = 0;
+	
+	foreach ($arAttachmentIDsAll as $k => $v) if (intval($v) === intval($arAttachmentID)) $arAttachmentIndex = $k;
+	
 ?>
 
@@ -191,5 +195,5 @@
 
                 <?php /* FÃŒllmengenanzeige START */ ?>
-                <?php echo $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', [$oProduct->getPrice($this->view['data']['product_key']), $this->view['data']['fmenge'], $oProduct->getId()]); ?>
+                <?php echo $this->callMod('wpsg_mod_fuellmenge', 'renderPriceInfo', [$oProduct->getPrice($this->view['data']['product_key']), $this->view['data']['fmenge']??0, $oProduct->getId()]); ?>
                 <?php /* FÃŒllmengenanzeige ENDE */ ?>
 
@@ -460,5 +464,5 @@
         if (!wpsg_standard3_load) {
 
-            function wpsg_standard3_load(templateIndex) {
+            function wpsg_standard3_load(templateIndex, imageIndex) {
 
                 if (wpsg_standard3_slider[templateIndex]) {
@@ -508,5 +512,5 @@
                 }
 
-                wpsg_standard3_slider[templateIndex].goTo(0);
+                wpsg_standard3_slider[templateIndex].goTo(imageIndex);
 
             };
@@ -514,5 +518,5 @@
         };
 
-        window.addEventListener('load', () => { wpsg_standard3_load(<?php echo $this->getTemplateIndex(); ?>); });
+        window.addEventListener('load', () => { wpsg_standard3_load(<?php echo $this->getTemplateIndex(); ?>, <?php echo $arAttachmentIndex; ?>); });
 
         <?php if (($_REQUEST['action']??'') === 'wpsg_productvariants_switch') { ?>
@@ -520,5 +524,5 @@
             window.setTimeout(() => {
 
-                wpsg_standard3_load(<?php echo $this->getTemplateIndex(); ?>);
+                wpsg_standard3_load(<?php echo $this->getTemplateIndex(); ?>, <?php echo $arAttachmentIndex; ?>);
 
             }, 100);
