![]() |
Re: Lightbox JS v2.0 implementation
For clickable thubmnails, here is my thickbox_productpage.tpl
Code:
{if $images ne ""} |
Re: Lightbox JS v2.0 implementation
Quote:
Dfawdon, thank you for your code, however, it does not do what I need for version 4.1 - since it totally blows out variant thumb images (let's say I have a product with 11 colors [i do] - when the customer pulls down the select color menu, the thumb changes! This is a very cool feature and causing me to lose sleep & hair.) The code I posted before allows each variant to have its own thumb (this is right out of xcart 4.1.3) - I am satisfied with how the images are displayed, and how they appear -- I just need to be able to click on the primary thumb and have it behave as if it were the first thickbox link. Anyone else? Thanks! Jeremy |
Re: Lightbox JS v2.0 implementation
What a GREAT mod! ANybody have any idea why it's not working for me though? I did exactly what the instructions said to no and no-go - the loading animation keeps twilrling....
I am using 4.0.18 - any ideas as to what I could be doing wrong? http://www.homegrownmarket.com/product.php?productid=16143&cat=317&page=1 Thanks in advance! xo |
Re: Lightbox JS v2.0 implementation
Xo, I can't find anything Thickbox related on this page. 8O
|
Re: Lightbox JS v2.0 implementation
The reason dfawdon's code did not work for me -- the img src tag was not needed...
My next post will be my COMPLETE mod to Thickbox, for 4.1.3, including clickable thumbnail images. Thanks to all... |
Re: Lightbox JS v2.0 implementation
OK... I paid X-Cart to help me figure this out... and I am now presenting my final mod...
This revision to Goran's free contribution is "optimized" for 4.1.3 and allows unique variant thumbnail images (that is, if you have assigned unique thumbs to variants) to be CLICKABLE, and the thumbnail link will call THICKBOX. This is ONLY for 4.1 and later... First, install Thickbox as described in Goran's instructions. Then: 1. Enable Detailed Product Images options (4.1 admin settings) 2. Change this code in product.tpl: FIND: Code:
{if $active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'} Code:
{if $active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'} 3. /skin1/thickbox/thickbox_productpage.tpl -- this is the new code. REPLACE what you have with this: Code:
{section name=image loop=$images} 4. You will probably need to make a minor adjustment to /skin1/thickbox/files/thickbox.css Comment out lines 4-6 - to look like this: Code:
/* { padding: 0; margin: 0; } 5. You could stop here, but then when you call Thickbox, the display will say "image 2 of 2" if you have a single detailed image, or "image 2 of 3" if you have 2 images, etc... so this required one last edit -- in /skin1/thickbox/files/thickbox.js Line 70 -- FIND: Code:
TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length); Code:
TB_imageCount = "Image " + (TB_Counter) +" of "+ (TB_TempArray.length - 1); That's that. Please alert me if you find any issues... This code works perfectly for me in 4.1.3 Goran, feel free to use this or add this to the distribution. Jeremy |
Re: Lightbox JS v2.0 implementation
Has anyone tried to implement this with TelaFirma's image mod?
|
Re: ThickBox implementation
THANK YOU Zaja!
This mod works great, and it was a real time saver. |
Not working on 4.0.18
Hi,
I've just done a fresh install of 4.0.18 and Thickbox does not work. The loading image just rotates and nothing happens. Could some have a look here? http://www.rocasoft.co.uk/product.php?productid=167&cat=111&page=1 cheers |
Re: Lightbox JS v2.0 implementation
Did you remove thickbox? All I see on your site is a mega supersized detailed image.
|
All times are GMT -8. The time now is 12:05 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.