Hi Norman
I have a client who ALWAYS wants a thumbnail version of the main product image to appear in the thumbnail list - even when there are no alternative images specified (in ZoomImage1, ZoomImage2, etc.)
He doesn't want it clickable. He just wants it there.
Any suggestions? 12.0.2
Thanks in advance
Chris Dicken
Always Include Thumnail for Main Product Image
-
- Posts: 25
- Joined: Wed May 28, 2008 5:30 pm
Re: Always Include Thumnail for Main Product Image
Here's how to force the icon to display. However it will behave like a zoom image.
1) Go to Settings / Site Options / Zoom Images Control and make sure ZoomIncludeProductImage is set to True.
2) Edit layout Standard Product Image and replace the contents of the BlockIf that's just before <!-- Magic zoom prefix V2.14 --> with:
3) Still in layout Standard Product Image and replace the contents of the BlockIf that's just before <!-- Magic zoom suffix V2.14 --> with:
4) Edit Layout Magic Zoom Image List and replace the line:
With:
That should force the icon to display.
Much more difficult to make a special case of said icon doing nothing if there are no zoom images so would probably need bespoke paid for work.
1) Go to Settings / Site Options / Zoom Images Control and make sure ZoomIncludeProductImage is set to True.
2) Edit layout Standard Product Image and replace the contents of the BlockIf that's just before <!-- Magic zoom prefix V2.14 --> with:
Code: Select all
<actinic:variable name="ProductImageFileName" /> != ""
Code: Select all
<actinic:variable name="ProductImageFileName" /> != ""
Code: Select all
if ( $actualimagecount > 1 )
Code: Select all
if ( $actualimagecount > 0 )
Much more difficult to make a special case of said icon doing nothing if there are no zoom images so would probably need bespoke paid for work.
Norman
-
- Posts: 25
- Joined: Wed May 28, 2008 5:30 pm
Re: Always Include Thumnail for Main Product Image
Many thanks Norman - that works brilliantly.
I had found the code in the 'Magic Zoom Image List' layout but hadn't thought to edit 'Standard Product Image' to make sure the code around the product image was also present and correct.
Have a great day - and thanks for everything you do.
Chris
I had found the code in the 'Magic Zoom Image List' layout but hadn't thought to edit 'Standard Product Image' to make sure the code around the product image was also present and correct.
Have a great day - and thanks for everything you do.
Chris