X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Lightbox JS v2.0 implementation (https://forum.x-cart.com/showthread.php?t=23858)

Zaja 08-04-2006 01:53 PM

ThickBox implementation
 
7.9.2006: Lightbox is replaced with Thickbox 2.1!


Here's the X-cart implementation of the Thickbox 2.1 image scripts for detailed image module:
http://www.7dana.com/106.84.0.0.1.0.phtml (4.0.x and 4.1.x versions available)

( tested with X-cart version 4.1.6 and 4.0.19 )

Dongan 08-04-2006 09:38 PM

simple. Nice share. very useful.

Thanks

carpeperdiem 08-05-2006 03:56 AM

Hi Goran,

Thanks for posting the 4.0 fix.

PS -- I am really liking the template that I bought from you... although I have modified the daylights out of it, because you coded it to spec, other mods and functions simply look perfect, without extensive re-writing... just wanted to say thanks, in public.

Cpt.Crashtastic 08-13-2006 09:27 AM

I'm trying to get the thumbnails to show of the detailed images instead of links.

Code:

$images[image].tmbn_url

returns the detailed image url

why can't I use

Code:

str_replace("/D","/T",$images[image].tmbn_url)

I get a Smarty compiler error

This is on 4.1

Thanks in advance

Ant

Jayk 08-22-2006 09:53 PM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by Cpt.Crashtastic
I'm trying to get the thumbnails to show of the detailed images instead of links.


Did you manage to find a solution to accomplish this?

Cheers,
Jason

Zaja 08-23-2006 03:34 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by Jayk
Did you manage to find a solution to accomplish this?
Cheers,
Jason


Yes, open lightbox/lightbox_productpage.tpl and replace the entire content with the following code:
Code:

{if $images ne ""}
<div style="white-space:nowrap;color:#D90000;font-weight:bold;padding:2px;margin:10px 0 4px;">{$lng.lbl_detailed_images} &not;</div>
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
<div style="white-space: nowrap;padding-left:10px;"><a href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" rel="lightbox[detailed]"><img src="{$xcart_web_dir}/image.php?id={$images[image].imageid}&amp;type=D" width="50" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /></a></div>
{else}
<div style="white-space: nowrap;padding-left:10px;"><a href="{$xcart_web_dir}/image.php?id={$images[image].imageid}&amp;type=D" title="{$images[image].alt|escape}" rel="lightbox[detailed]"><img src="{$xcart_web_dir}/image.php?id={$images[image].imageid}&amp;type=D" width="50" style="border:0;" alt="{$lng.lbl_click_to_enlarge|escape}" /></a></div>
{/if}
{/if}
{/section}
{/if}


Jayk 08-23-2006 09:16 AM

Re: Lightbox JS v2.0 implementation
 
Works great! Thanks!

Jason

leorulz 08-24-2006 08:39 AM

Re: Lightbox JS v2.0 implementation
 
This is a great mod. I have installed it with no problems.
Does anybody know how to get rid of javascript error on the bottom of internet explorere.
You can view an example here: http://www.dreamindiamonds.com/store/product.php?productid=16212&cat=252&page=1

Thank you.

Cpt.Crashtastic 08-28-2006 10:28 AM

Re: Lightbox JS v2.0 implementation
 
Quote:

Originally Posted by leorulz
This is a great mod. I have installed it with no problems.
Does anybody know how to get rid of javascript error on the bottom of internet explorere.
You can view an example here: http://www.dreamindiamonds.com/store/product.php?productid=16212&cat=252&page=1

Thank you.


Did you get to the bottom of this one. I get a JS error too but only when an option is selected.

Error variants[...].1.length is not a null or not an object

Selecting a quantity in Firefox completely trashes the wholesale table and fills it with NaN

I'm not sure what to guess or where to start with this one

Can be seen here http://www.embroideredcaps.info/product.php?productid=2&cat=1&page=1

leorulz 08-28-2006 10:36 AM

Re: Lightbox JS v2.0 implementation
 
i am still trying to figure it out. I wrote an email to 7dana.com, maybe he can help out. By the way nice website you have. How did you manage to have clickable thumbnails on product page?


All times are GMT -8. The time now is 11:12 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.