Product images update (v. 2.9)
In version 2.9, clicking either the Large Image or Thumbnail Image allows you to upload both images at one time. If the thumbnail image isn't added, and your site has the necessary PHP libraries, the system will create an automatic thumbnail. However, if you try to load a new image, the thumbnail does not appear in the drop down box in the pop up screen. To add that in and streamline the process:
-
Open the imgload.php file in the /includes/ folder of the /storeadmin/ folder.
-
Remove the following code, around line 379:
$optn1_list = (isset($o1)) ? explode(" ", str_replace("value="$o1"", "value="$o1" selected="selected"", $optn_list)) : $listimgfiles; -
Change the code:
to:
-
Change the code:
to:
if (document.getElementById('existimg1')) { document.getElementById('existimg1').value = window.opener.document.$formsname.$fieldsname.value; } if (document.getElementById('existimg2')) { document.getElementById('existimg2').value = window.opener.document.$formsname.$smfieldsname.value; } "; }