![]() |
Enlarge product image popup
This is for those who prefer to have a popup window to display an enlarged product image instead of the image thats displayed at the bottom of the product page.
All code is placed in: /skin1/customer/main/product.tpl Step 1: Add this code above the code in step 2: Code:
{php} Step 2: Add the following code immediately after 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"}: Code:
{if $image_paths[0].path_value ne ""} ALERT: You'll probably need to adjust the number values for: substr:28:30, in above code to match the length of your particular url. Step 3 (optional): Create an image and name it "enlarge_img.gif" and place in /skin1/images sub directory. If you dont need or want an image then remove: [img]{$ImagesDir}/enlarge_img.gif[/img] from the code in step 2. |
Moving to Custom Mods.
|
All times are GMT -8. The time now is 07:24 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.