Page 1 of 1

Dynamic Choice Images with Multi Product Images

Posted: Wed Jan 11, 2017 4:53 pm
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.