Automatically including the Product Image.

Adds a Lightbox slideshow to your products.
Post Reply
norman
Site Admin
Posts: 1248
Joined: Sat Feb 07, 2004 9:55 pm

Automatically including the Product Image.

Post 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" />');
		}
Norman
Post Reply