| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Detailed Product Images Popup on Thumbnail click. | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
detailed pictures dosn't load correctly
I played around with it some more even tried "window.open('..customer/product_detailed_images.php?" I tried changing the permissions on the both product.tp and product_detailed_images.php because the window opens so product.tpl is working? but the picture isn't showing so doe that mean it can't find product_detailed_images.php to capture the image?
My modified product.tpl(chmod644) is in skin1/customer/main & my product_detailed_images.php(chmod755) is in xcartdir/customer (I deleted the duplicate I had in skin1/customer) I did notice when changing the file that the format of what I was looking for was a little different than what boomer posted I must be using a different version (3.3.6) below is my product.tpl if that helps. Code:
PHP Version 4.3.2 Mysql Version 4.0.13 Xcart 3.3.6 gold |
|||||||
#22
|
|||||||
|
|||||||
figured it out works now
thanks stars I figured it out I commented out the wrong line and somehow it was making it not work but it works now..... :P -sorry I posted my whole file in retrospect that probably is not forum kosher... my bad apoligies all around...
|
|||||||
#23
|
|||||||
|
|||||||
What if some thumbnails have detailed images but others do not? It's not too cool to have a blank window pop up when there's nothing there. I thought the first {if $active_modules..... } statement around the image would take care of this, but it does not. HELP!
Thanks!! |
|||||||
#24
|
|||||||
|
|||||||
.
HELLO,
I wonder if this code will also work for detailed product images, if I have 3 to 4 images than it will be too big space to hold them , so If I use code similar to that will that work for detailed product images to go in more detail |
|||||||
#25
|
|||||||||
|
|||||||||
> if I have 3 to 4 images
Your popup window will have vertical scroll bar so people can see all the images. |
|||||||||
#26
|
|||||||
|
|||||||
Hi Boomer, just reading your code for detailed images!
Do you know if it is possible to have the detailed images linking... in my case i would like to link to a pdf file.
Also how do I put text into the detailed images box next to the relavent image. Regards Tye
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#27
|
|||||||||
|
|||||||||
Re: Hi Boomer, just reading your code for detailed images!
Quote:
Sure. Just put <a> tag around Code:
and add text under this code in /modules/Detailed_Product_Images/product_images.tpl |
|||||||||
#28
|
|||||||
|
|||||||
But what if some products do not have a detailed image while others do? Blank popup windows suck. The "{if $active_modules..... }" statement around the image doesn't seem do it. I still can't figure it out.
|
|||||||
#29
|
|||||||||
|
|||||||||
Quote:
{if $images}...{/if}
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#30
|
|||||||
|
|||||||
Full code! Is this correct!
{* $Id: product_images.tpl,v 1.6 2002/05/20 06:55:24 lucky Exp $ *}
{if $images ne ""} {capture name=dialog} {section name=image loop=$images} {if $images[image].avail eq "Y"} [img]../product_image.php?imageid={$images[image].imageid}[/img] {/if} {/section} {/capture} {if $smarty.capture.dialog ne ""} {include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"} {/if} {/if} [img]../product_image.php?imageid={if $images[image].imageid}[/img]
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
|
|||
X-Cart forums © 2001-2020
|