As promised, here is the file set. Should work with a clean install of ZC 1.5.1.
It should handle all variations of image sizes in the directories you have, for example
if you only have small images in your main image directory, you simply just need the actual image size larger than the value set for your product listing image for the zoom to appear to work.
If you have small and medium images, you simply need to ensure that your actual medium image size is larger than that set in for your product info page.
If you have small, medium and large images, you product info page will as per zen carts logic will show your medium image size and will then zoom to the size of your large image size.
I added an additional file to this file set:
/includes/modules/YOUR_TEMPLATE/main_product_image.php
The reason for this is explained here:
http://www.zen-cart.com/showthread.p...duct_image-php
however this file should be optional. I just found that the logic wasn't working correctly when only small and medium images were present when the large link is built.
Nick,
I would be greatful if you could help finishing what I think is the only thing left to do on this, which is to make the additional image link a proper <script> document.wrtite ...
I think its going to be an escaping nightmare but as we spoke about before, good practice to ensure Java disabled browsers do not see the images twice.
Ta.
Phil

Bookmarks