Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Lightbox JS v2.0 implementation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 08-04-2006, 01:53 PM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default 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 )
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #2  
Old 08-04-2006, 09:38 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

simple. Nice share. very useful.

Thanks
Reply With Quote
  #3  
Old 08-05-2006, 03:56 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default

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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 08-13-2006, 09:27 AM
 
Cpt.Crashtastic Cpt.Crashtastic is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 219
 

Default

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
__________________
Xcart 4.4.?
Xcart Next
Litecommerce with Drupal
http://www.corbywebworx.com

Custom Mods, Hosting and Support for Xcart-Next and LiteCommerce
Reply With Quote
  #5  
Old 08-22-2006, 09:53 PM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default 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
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #6  
Old 08-23-2006, 03:34 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default 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}
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #7  
Old 08-23-2006, 09:16 AM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: Lightbox JS v2.0 implementation

Works great! Thanks!

Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #8  
Old 08-24-2006, 08:39 AM
 
leorulz leorulz is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 66
 

Default 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.
__________________
version 4.4.2
www.bodyandmindspa.com/
Reply With Quote
  #9  
Old 08-28-2006, 10:28 AM
 
Cpt.Crashtastic Cpt.Crashtastic is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 219
 

Default 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
__________________
Xcart 4.4.?
Xcart Next
Litecommerce with Drupal
http://www.corbywebworx.com

Custom Mods, Hosting and Support for Xcart-Next and LiteCommerce
Reply With Quote
  #10  
Old 08-28-2006, 10:36 AM
 
leorulz leorulz is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 66
 

Default 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?
__________________
version 4.4.2
www.bodyandmindspa.com/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:39 AM.

   

 
X-Cart forums © 2001-2020