Page 1 of 1

Automatically add a zoom to scaled down product images.

Posted: Thu Aug 16, 2018 11:39 am
by norman
Note that this capability is now in Magic Zoom Plus V3.14 onwards.

If you use the SellerDeck Product Image Maximum Width capability (via Settings / Site Options / layout / Product) then you can tweak Magic Zoom Plus to automatically zoom the product image if your supplied image is greater that the Product Image Maximum Width.

To do this do the following:

Go to Settings / Site Options / Zoom Images Control and set ZoomIncludeProductImage to true.

Go to Design / Library / Layouts / Product Image / Standard Product Image.
Look (at the top) for the line containing <!-- Magic zoom prefix...
It should start with a BlockIf.
Click that BlockIf to open it in the Condition Editor.
Paste the following in at the top to make a new first line:

Code: Select all

(<actinic:variable name="ProductImageWidth" /> > <actinic:variable name="ProductImageMaxWidth" />) OR
OK out of the Condition Editor.

Look (near the bottom) for the line containing <!-- Magic zoom suffix...
It should start with a BlockIf.
Click that BlockIf to open it in the Condition Editor.
Paste the following in at the top to make a new first line:

Code: Select all

(<actinic:variable name="ProductImageWidth" /> > <actinic:variable name="ProductImageMaxWidth" />) OR
OK out of the Condition Editor.

That should be the capability added.

Re: Automatically add a zoom to scaled down product images.

Posted: Fri Dec 21, 2018 3:25 pm
by Worsham
norman wrote: Sat Dec 22, 2018 1:40 am The maximum size that the electric log splitters product image is displayed at is a SellerDeck setting.

Settings / Site Options / Layout / Product / Product Image Maximum Width.

This patch give a zoom to the product image if the one you're using is larger than what you've set in Product Image Maximum Width.
To what size does this scale down product images, Norman? Seems like a neat functionality.

Re: Automatically add a zoom to scaled down product images.

Posted: Sat Dec 22, 2018 1:40 am
by norman
The maximum size that the product image is displayed at is a SellerDeck setting.

Settings / Site Options / Layout / Product / Product Image Maximum Width.

This patch give a zoom to the product image if the one you're using is larger than what you've set in Product Image Maximum Width.