Appending title text to product description.

Integration of Magic Zoom Plus from http://www.magictoolbox.com with Actinic.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Appending title text to product description.

Post by norman »

The Zoom Image n Title setting usually replaces the Product Name.

If you'd rather append the Title text to the Product Name, do the following:

Go to Design / Library / Layouts / Zoom Image Layout.

Edit layout Magic Zoom First Product Image and look for:

Code: Select all

		$alttext = htmlentities($iconalts[$i] ? $iconalts[$i] : '<actinic:variable name="ProductName" encoding="perl" selectable="false" />');
Replace it with:

Code: Select all

		$alttext = htmlentities('<actinic:variable name="ProductName" encoding="perl" selectable="false" />' . ($iconalts[$i] != '' ? ' - ' . $iconalts[$i] : ' - view 1'));
Edit layout Magic Zoom Image Liste and look for:

Code: Select all

						$alttext = '<actinic:variable name="ProductName" encoding="perl" selectable="false" />' . $viewtext . $viewnumber;
						if ( $iconalts[$i] != '' ) $alttext = $iconalts[$i];
Replace it with:

Code: Select all

						$alttext = '<actinic:variable name="ProductName" encoding="perl" selectable="false" />' . ($iconalts[$i] != '' ? ' - ' . $iconalts[$i] : $viewtext . $viewnumber);
The above is for images on Product layouts (not on Fragments or Extended Info)
Norman
Post Reply