Page 1 of 1

Automatically including the Product Image.

Posted: Tue Jul 06, 2010 1:53 pm
by norman
The following tweak will include the product image as the LightboxImage1 (assuming it's not already set).

Edit layout Lightbox Image List (via Design / Library / Layouts / Lightbox Images).

Look for the pair of lines:

Code: Select all

if ( $havelightboximage )
	{
Immediately under them add:

Code: Select all

	
	if ( $LightBoxImages[0] == '' ) 
		{
		$LightBoxImages[0] = str_replace('\\', '/', '<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />');
		}