X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Thickbox implementation - need some help (https://forum.x-cart.com/showthread.php?t=31409)

HWT 05-24-2007 08:58 AM

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

inebriate 05-24-2007 06:41 PM

Re: Thickbox implementation - need some help
 
did you include thickbox itself?

HWT 05-24-2007 06:48 PM

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.

HWT 05-25-2007 02:32 PM

Re: Thickbox implementation - need some help
 
Using Thickbox 2.1 and ??? version of jQuery. Used the files out of here

inebriate 05-25-2007 02:55 PM

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

HWT 05-25-2007 03:00 PM

Re: Thickbox implementation - need some help
 
unfortunately yes. I've checked the pages' source code, and there it's definetly there.

thanks!


All times are GMT -8. The time now is 03:34 PM.

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