Dynamic Choice Images with Multi Product Images

Images added to each Choice. Images displayed as scaled down icons. Main image swaps when the Choice is selected.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Dynamic Choice Images with Multi Product Images

Post by norman »

Dynamic Choice Images and Multi Product Images can be used together.

Install Multi Product Images after Dynamic Choice images.

Once both are installed, go to Design / Library / Layouts / Extended Information Image / Standard Extended Information Image.
Look for the line:

Code: Select all

	id="im-<Actinic:Variable Name="EncodedProductAnchor" />"
Immediately after it add:

Code: Select all

	<actinic:block if="%3cactinic%3avariable%20name%3d%22RestoreMainImageOnMouseover%22%20%2f%3e%20%3d%3d%20true" >
		onmouseover="mpirestoremain(this,'<actinic:block php="true">echo str_replace('\\', '/', '<actinic:variable name="ExtendedInfoImage" encoding="perl" selectable="false" />');</actinic:block>')"	
	</actinic:block>
Go to Design / Library / Layouts / Product Image / Small Product Image.
Look for the line:

Code: Select all

	id="im-<Actinic:Variable Name="EncodedProductAnchor" />"
Immediately after it add:

Code: Select all

		<actinic:block if="%3cactinic%3avariable%20name%3d%22ShowDynamicChoices%22%20%2f%3e%20%26%26%20%28%3cactinic%3avariable%20name%3d%22RestoreMainImageOnMouseover%22%20%2f%3e%20%3d%3d%20true%29" >
			onmouseover="dcirestoremain(this,'<actinic:block php="true">echo str_replace('\\', '/', '<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />');</actinic:block>')"	
		</actinic:block>
Go to Design / Library / Layouts / Product Image / Standard Product Image.
Look for the line:

Code: Select all

	id="im-<Actinic:Variable Name="EncodedProductAnchor" />"
Immediately after it add:

Code: Select all

		<actinic:block if="%3cactinic%3avariable%20name%3d%22ShowDynamicChoices%22%20%2f%3e%20%26%26%20%28%3cactinic%3avariable%20name%3d%22RestoreMainImageOnMouseover%22%20%2f%3e%20%3d%3d%20true%29" >
			onmouseover="dcirestoremain(this,'<actinic:block php="true">echo str_replace('\\', '/', '<actinic:variable name="ProductImageFileName" encoding="perl" selectable="false" />');</actinic:block>')"	
		</actinic:block>
That's all patching done and both add-ons can operate together.
Norman
Post Reply