This is not a support request. It is a customisation tip!
There is a script called Lightbox that is free to download and integrates beautifully with Price Tapestry.
Demo: Pioneer Avic S1 Price Comparison
Click on the picture and it blacks the background and opens an enlarged picture in the foreground.
The files to download are at Lightbox 2. Extract these files (in 2 folders - 1 called js, 1 called css) to your Price Comparison root directory.
You will need to add a few lines of code to your header.php file as directed on this site: Installing Lightbox 2.
You will also need to change the line on HTML/product.php that displays the picture to include the text: rel="lightbox"
I cannot tell you what that is in the distro file as I have hacked away at my code but my code looks like this:
<a href='<?php print $mainProduct["image_url"]; ?>' rel="lightbox" title="<?php print $mainProduct["name"]; ?>">
<img width="100" src='<?php print $mainProduct["image_url"]; ?>' alt='<?php print $mainProduct["name"]; ?>'
title='<?php print $mainProduct["name"]; ?>' /></a>
Please note that the size of the enlarged picture depends upon what size the retailers picture is.
Hope this helps some people looking to add some sparkle.
Apparently it should work in all current browsers so says the author.
Truly magic!
Nice looking mod!
That code is from html/product.php...
Cheers,
David.
dbfcs,
can you help me use the lightbox to make an ajax popup using this example here.
http://www.pricetapestry.com/node/701
its a merchant info page popup.
thank you in advance.
Please post a link to a sample page you are having problems with.
Dave
nice! thanks for the tip.