Always include the Product Image

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

Always include the Product Image

Post by norman »

Always include the Product Image.

If you display the product image scaled down and want to automatically use it as the first Lightbox image:

Edit layout Lightbox Image List (Design / Library / Layouts / Lightbox Images)and look for the line:

Code: Select all

$LightBoxImages = array('<actinic:variable name="LightboxImage1" encoding="perl" selectable="false" />',
Change it to be:

Code: Select all

$LightBoxImages = array('<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />',
			'<actinic:variable name="LightboxImage1" encoding="perl" selectable="false" />',
Look for the line:

Code: Select all

		$LightBoxTitles = array('<actinic:variable name="LightboxTitle1" encoding="perl" selectable="false" />',
Change it to be:

Code: Select all

		$LightBoxTitles = array('', '<actinic:variable name="LightboxTitle1" encoding="perl" selectable="false" />',
Go to Design / Library / Layouts / Product Image / Standard Product Image.

Look for the line (the V404 bit may change):

Code: Select all

<!-- LBOX prefix V404 -->
Immediately below it is a BlockIf. Double click it. The first line should be:

Code: Select all

(<actinic:variable name="LightboxImage1" /> 
Change it to be

Code: Select all

(<actinic:variable name="ProductImageFileName" /> . <actinic:variable name="LightboxImage1" /> 

Look for the line (the V404 bit may change):

Code: Select all

<!-- LBOX suffix V404 -->
Immediately below it is a BlockIf. Double click it. The first line should be:

Code: Select all

(<actinic:variable name="LightboxImage1" /> 
Change it to be

Code: Select all

(<actinic:variable name="ProductImageFileName" /> . <actinic:variable name="LightboxImage1" /> 


You should be able to use LighboxImage 1 through 10 as usual.
Norman
Post Reply