Zoom into a image javascript mod for product.tpl
OK I wanted to have a ZOOM IN icon near the product image, so that you can see a larger image of the product.
You can see a picture below: http://www.shisha.co.uk/images/zoom_in.jpg The zoom in image is provided here for you http://www.shisha.co.uk/shopcart/skin1/images/zoom1.gif right click this image and save this in your shopcart/skin1/images/zoom1.gif I decided to use javascript and I used a file called zoombox.js and saved this at shopcart/skin1/zoombox.js - Below is the Java script: Code:
// Zoom into the picture - Save as /shopcart/skin1/zoombox.js Then I needed to call this code in the body section of the product.tpl file at shopcart/skin1/main/product.tpl - I placed the code just before the last </table> at the end of the file: Code:
<script language="JavaScript" src="{$SkinDir}/zoombox.js"></script> Also in the same file shopcart/skin1/main/product.tpl near the top you will find: Code:
<TD valign="top" align="left"> Replace this with: Code:
<TD valign="top" align="left"> I like the way that this opens up to view the file. The page can be viewed at www.shisha.co.uk/shopcart/product.php?productid=16139&cat=265&page=1 Thanks, regards Paul. |
consider the TelaFirma mod to that and more ...
|
Also yours triggers my popup blocker in firefox.
AS above said try teleafirmas or what im doing is getting x-cart to quote for implementing zoomify into our site www.zoomify.com |
Thanks for the advice.
Just to let you know i found the correct line i needed to correct., i have also changed the 1st post as well to reflect this. Code:
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"} |
All times are GMT -8. The time now is 08:50 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.