| ||||||||||
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 |
#31
|
|||||||
|
|||||||
ignore last post! I am so stupid at times! nm
nm
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#32
|
|||||||
|
|||||||
So Far So Good!
I have the detailed products working ok but I would like the thumbnail to link to a pdf...
You can see where I am up to live at: http://www.cableeducational.com/xcart/customer/product.php?productid=20357&cat=328&page=1 Any suggestions welcome! Tye
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#33
|
|||||||||
|
|||||||||
Re: So Far So Good!
Quote:
If your "product_images.tpl" template add <a href... tag like this: change: Code:
to Code:
|
|||||||||
#34
|
|||||||
|
|||||||
Thanks for the replies!
I have edited the /modules/Detailed_Product_Images/product_images.tpl
and it is half way there but still some glitches on the page: the image is now linkable but it is not picking up the {$productid}. in the link. also the thumbnail has vanished. http://www.cableeducational.com/xcart/customer/product.php?productid=20357&cat=328&page=1 The script i have is as follows: {* $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"} <a href="http://www.cableeducational.com/pdf_files/{$productid}.pdf" target="_new"> [img]../product_image.php?imageid={$images[image].imageid}[/img]</a> <a>For further information, please contact: Andrew Sellers or Kim Franks at Cable Educational Ltd Telephone 01723 890351 [b]andrew@cableeducational.com kim@cableeducational.com {/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} Regards Tye
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#35
|
|||||||||
|
|||||||||
in the "xcart/customer/product_detailed_images.php" you have to add
Code:
|
|||||||||
#36
|
|||||||
|
|||||||
done that!
<?
require "../smarty.php"; require "../config.php"; # # Collect product images # $images = func_query("select * from $sql_tbl[images] where productid='$productid' order by imageid"); $smarty->assign("productid",$productid); $smarty->assign("images",$images); $smarty->display("modules/Detailed_Product_Images/product_images.tpl"); ?> Whats the next step!
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#37
|
|||||||||
|
|||||||||
I did not know you are not using popup for detailed images.
in product_images.tpl change Code:
to Code:
|
|||||||||
#38
|
|||||||
|
|||||||
Fantastic!
You sir are a ledgend!
Now is it possible to have more than one detailed image per product! Regards Tye
__________________
Today is a beautiful day, grab it while you can and live it to the full Version 4.2.3 UNIX |
|||||||
#39
|
|||||||
|
|||||||
This script not working in 3.4.5 version atall. Can you help inplement this script in 3.4.5? Thank you
|
|||||||
#40
|
|||||||||
|
|||||||||
Quote:
What kind of error are you getting? |
|||||||||
|
|||
X-Cart forums © 2001-2020
|