Automatically add a zoom to scaled down product images.

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

Automatically add a zoom to scaled down product images.

Post by norman » Thu Aug 16, 2018 11:39 am

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.
Norman

Worsham
Posts: 1
Joined: Thu Dec 20, 2018 11:26 am

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

Post by Worsham » Fri Dec 21, 2018 3:25 pm

To what size does this scale down product images, Norman? Seems like a neat functionality.

norman
Site Admin
Posts: 1235
Joined: Sat Feb 07, 2004 9:55 pm

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

Post by norman » Sat Dec 22, 2018 1:40 am

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.
Norman

Post Reply