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

Thickbox implementation - need some help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-24-2007, 08:58 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Thickbox implementation - need some help

I've got the Thickbox working for the detailed images as outlined here: http://forum.x-cart.com/showthread.php?t=23858

That works great. So after taking the 2 1/2 minutes to install that, I thought, hey, this would be a GREAT way to declutter the product pages without using tabs, so I set off to get the send to a friend and product review to display using Thickbox. But I just can't seem to get it to display properly.

Here's what I have so far:

I created a new .tpl to handle the links:

Code:
{if $js_enabled} <a href="#TB_inline?height=300&width=500&inlineId=TBsend_friend" class="thickbox"> <img src="{$ImagesDir}/send_friend.gif" width="95" height="32" alt="e-mail this page to a friend" /></a> {if $reviews ne ""} <a href="#TB_inline?height=800&width=500&inlineId=TBreview" class="thickbox"> <img src="{$ImagesDir}/read_review.gif" width="95" height="32" alt="read reviews about this product" /></a> {else} <a href="#TB_inline?height=800&width=500&inlineId=TBreview" class="thickbox"> <img src="{$ImagesDir}/write_review.gif" width="95" height="32" alt="be the first to review this product" /></a> {/if} {else} <a class="thickbox" href="#send_friend"> <img src="{$ImagesDir}/send_friend.gif" width="95" height="32" alt="e-mail this page to a friend" /></a> {if $reviews ne ""} <a class="thickbox" href="#review"> <img src="{$ImagesDir}/read_review.gif" width="95" height="32" alt="read reviews about this product" /></a> {else} <a class="thickbox" href="#review"> <img src="{$ImagesDir}/write_review.gif" width="95" height="32" alt="be the first to review this product" /></a> {/if} {/if}

and altered this part of product.tpl:

Code:
{if $config.Appearance.send_to_friend_enabled eq 'Y'} <p /> {if $js_enabled} <div id="TBsend_friend" style="display:none"> {else} <a name="send_friend"></a> {/if} {include file="customer/main/send_to_friend.tpl" } {if $js_enabled} </div> {/if} {/if}

and

Code:
{if $active_modules.Customer_Reviews ne ""} {if $js_enabled} <div id="TBreview" style="display:none"> {else} <a name="review"></a> {/if} <p /> {include file="modules/Customer_Reviews/vote_reviews.tpl" } {if $js_enabled} </div> {/if}

When all this is done, when I click on one of the images, all I get is the thickbox loading dot going around and around and around........but the forms don't load.

What am I missing here?

This is on a 4.1.7 site that I'm working on.

TIA
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #2  
Old 05-24-2007, 06:41 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Thickbox implementation - need some help

did you include thickbox itself?
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 05-24-2007, 06:48 PM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Thickbox implementation - need some help

Thank you inebriate. How often it is the simplest things!

Unfortunately, thickbox is loaded. That was the first thing I checked as well.

The detailed images pop up without a problem on the same page. The forms just never seem to load. The screen grays out, and the loading image goes around and around, but no form loads.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #4  
Old 05-25-2007, 02:32 PM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Thickbox implementation - need some help

Using Thickbox 2.1 and ??? version of jQuery. Used the files out of here
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #5  
Old 05-25-2007, 02:55 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Thickbox implementation - need some help

it looks fine to me, but i havent touched thickbox in awhile...but one more thing which you probably have checked, is the new tpl included in the product.tpl with correct path? you could also try making a div in product.tpl with like a simple phrase to test if that even works to find out where your problem lies
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #6  
Old 05-25-2007, 03:00 PM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Thickbox implementation - need some help

unfortunately yes. I've checked the pages' source code, and there it's definetly there.

thanks!
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 08:42 AM.

   

 
X-Cart forums © 2001-2020