Automatically including the Product Image.
Posted: Tue Jul 06, 2010 1:53 pm
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:
Immediately under them add:
Edit layout Lightbox Image List (via Design / Library / Layouts / Lightbox Images).
Look for the pair of lines:
Code: Select all
if ( $havelightboximage )
{
Code: Select all
if ( $LightBoxImages[0] == '' )
{
$LightBoxImages[0] = str_replace('\\', '/', '<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />');
}