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

Thickbox 2.0 implementation

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #21  
Old 01-18-2007, 06:10 AM
 
MattUK MattUK is offline
 

Member
  
Join Date: Nov 2006
Posts: 23
 

Default Re: Thickbox 2.0 implementation

That doesn't seem to do anything apart from un-centre the page
__________________
X-Cart Gold 4.1.9
Reply With Quote
  #22  
Old 01-19-2007, 03:19 AM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: Thickbox 2.0 implementation

Then the other way is

{* $Id: product.tpl,v 1.147.2.8 2006/08/02 05:39:12 max Exp $ *}
{include file="main/include_js.tpl" src="main/popup_image.js"}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/product_offers_short_list.tpl" product=$product}
{/if}
{include file="form_validation_js.tpl"}
{if $product.product_type eq "C" && $active_modules.Product_Configurator}
{include file="modules/Product_Configurator/pconf_customer_product.tpl"}
{else}
<font class=product_grey_dark_lrg_bold>{$product.product title}</font><br>
<form name="orderform" method="post" action="cart.php?mode=add" onsubmit="javascript: return FormValidation();">
<table width="100%" border=0>
<tr>
<td class="PImgBox" rowspan="2">
{if $active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'}
{include file="modules/Detailed_Product_Images/popup_image.tpl"}
{else}
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}&nbsp;
{/if}
{include file="thickbox/thickbox_productpage.tpl" }
{if $active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include file="modules/Magnifier/popup_magnifier.tpl"}
{/if}
</td>
<td valign="top" width="100%" border=0>
<table width="100%" cellpadding="0" cellspacing="0">
{if $active_modules.Subscriptions ne "" and $subscription}
{include file="modules/Subscriptions/subscription_info.tpl"}
{else}
<tr>
<td valign="top">
{if $product.taxed_price ne 0 || $variant_price_no_empty}
<font class="price_lrg_bold"><span id="product_price">{include file="currency.tpl" value=$product.taxed_price}</span></font><font class="MarketPrice"> <span id="product_alt_price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</span></font>
{if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if}
{else}
<input type="text" size="7" name="price" />
{/if}
</td>
<td align=right>{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}</td>
</tr>
{/if}
<tr>
<td height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<br /><font class="ProductDetailsTitle">{$lng.txt_need_min_amo unt|substitute:"items":$product.min_amount}</font>{/if}</td>
<td>
{if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''}
<script type="text/javascript" language="JavaScript 1.2">
<!--
var min_avail = 1;
var avail = 0;
var product_avail = 0;
-->
</script>
<b>{$lng.txt_out_of_stock}</b>
{else}
{if $config.General.unlimited_products eq "Y"}
{assign var="mq" value=$config.Appearance.max_select_quantity}
{else}
{math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"}
{if $tmp<2}
{assign var="minamount" value=$product.min_amount}
{else}
{assign var="minamount" value=1}
{/if}
{math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail}
{/if}
{if $product.distribution eq "" and !($active_modules.Subscriptions ne "" and $subscription)}
{if $product.min_amount le 1}
{assign var="start_quantity" value=1}
{else}
{assign var="start_quantity" value=$product.min_amount}
{/if}
{if $config.General.unlimited_products eq "Y"}
{math equation="x+y" assign="mq" x=$mq y=$start_quantity}
{/if}
<script type="text/javascript" language="JavaScript 1.2">
<!--
var min_avail = {$start_quantity|default:1};
var avail = {$mq|default:1}-1;
var product_avail = {$product.avail|default:"0"};
-->
</script>
<select id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}>
{section name=quantity loop=$mq start=$start_quantity}
<option value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</option>
{/section}
</select>
{else}
<script type="text/javascript" language="JavaScript 1.2">
<!--
var min_avail = 1;
var avail = 1;
var product_avail = 1;
-->
</script>
<font class="ProductDetailsTitle">1</font><input type="hidden" name="amount" value="1" /> {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if}
{/if}
{/if}
</td></tr>
{if $product.descr}
<tr>
<td colspan=2><br>{$product.descr}<br><br></td>
</tr>
{/if}
<tr>
<td width="30%"><span class="product_grey_dark_sml"><b>Product Code:</b></span></td>
<td nowrap="nowrap" id="product_code">{$product.productcode}</td>
</tr>
{if $active_modules.Product_Options ne ""}
{include file="modules/Product_Options/customer_options.tpl"}
{/if}
{if $product_wholesale ne ""}
<tr><td colspan="2">
{include file="customer/main/product_prices.tpl"}
<br /><br />
</td>
</tr>
{/if}
{if $active_modules.Feature_Comparison ne ""}
<tr><td colspan="2">
{include file="modules/Feature_Comparison/product_buttons.tpl"}
<br /><br />
</td>
</tr>
{/if}
<input type="hidden" name="mode" value="add" />
<input type="hidden" name="productid" value="{$product.productid}" />
<input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" />
<input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" />
</form>
{if $config.Appearance.send_to_friend_enabled eq 'Y'}
<tr>
<td colspan=2><br>
<span class="x_send_to" onClick="javascript: if (document.getElementById('send_to_friend').style.d isplay == 'none') document.getElementById('send_to_friend').style.di splay=''; else document.getElementById('send_to_friend').style.di splay='none'">Email a friend about this product</span>
<br>
<div id='send_to_friend' style='display: none'>
{include file="customer/main/send_to_friend.tpl"}
</div>
<br>
</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
{if $product.fulldescr}
{$product.fulldescr}
{/if}
{/if}
{if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')}
<p />
{include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid}
{/if}
{*{if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')}
<p />
{include file="modules/Detailed_Product_Images/product_images.tpl" }
{/if}*}
{if $active_modules.Upselling_Products ne ""}
<p />
{include file="modules/Upselling_Products/related_products.tpl" }
{/if}
{if $active_modules.Recommended_Products ne ""}
<p />
{include file="modules/Recommended_Products/recommends.tpl" }
{/if}
{if $active_modules.Customer_Reviews ne ""}
<p />
{include file="modules/Customer_Reviews/vote_reviews.tpl" }
{/if}
{if $active_modules.Product_Options ne '' && $product_options ne ''}
<script type="text/javascript" language="JavaScript 1.2">
<!--
check_options();
-->
</script>
{/if}
{include file="thickbox/thickbox_include.tpl" }
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #23  
Old 01-19-2007, 04:53 AM
 
MattUK MattUK is offline
 

Member
  
Join Date: Nov 2006
Posts: 23
 

Default Re: Thickbox 2.0 implementation

Hi,

Thanks very much! It seems to be working, but the page is still becoming left-alligned. It should be centred. Any ideas what's causing this?
__________________
X-Cart Gold 4.1.9
Reply With Quote
  #24  
Old 01-19-2007, 05:00 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: Thickbox 2.0 implementation

Quote:
Originally Posted by MattUK
Hi,

Thanks very much! It seems to be working, but the page is still becoming left-alligned. It should be centred. Any ideas what's causing this?

open thickbox.css:
Find
Quote:
*{ padding: 0; margin: 0; }
html, body { min-height: 100%; height: auto !important; height: 100%; }
Comment it out like this:
Quote:
/*{ padding: 0; margin: 0; }
html, body { min-height: 100%; height: auto !important; height: 100%; }*/
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote
  #25  
Old 01-19-2007, 08:25 AM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: Thickbox 2.0 implementation

Thanks for following up on this ranger


Anyhow, hope it all now works ok


Richard
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #26  
Old 01-20-2007, 11:14 AM
 
MattUK MattUK is offline
 

Member
  
Join Date: Nov 2006
Posts: 23
 

Default Re: Thickbox 2.0 implementation

Thanks for thehelp guys, that worked out fine!

Did you manage to solve removing the detailed images link in the end? I tried unticking the 'show detailed images' box i the options, but that meant that the large images were displayed on the products page
__________________
X-Cart Gold 4.1.9
Reply With Quote
  #27  
Old 02-16-2007, 08:07 AM
 
impact-computers impact-computers is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: Sunderland
Posts: 70
 

Default Re: Thickbox 2.0 implementation

Hi, i'm trying to install the this mod too but can't work out how to make the file changes.

Can someone help? below is my product.tpl

{* $Id: product.tpl,v 1.37.2.1 2004/08/19 12:17:53 max Exp $ *}
{capture name=dialog}
<TABLE border="0" width="100%">
<FORM>
<TR>
<TD valign="top" align="left" width="30%">
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product}
<P>
{if $smarty.get.mode ne "printable"}
<A href="product.php?productid={$product.productid}&m ode=printable" target=_blank><IMG src="{$ImagesDir}/print.gif" width="23" height="22" border="0" name="print" alt="{$lng.lbl_printable_version}"></A>
{/if}
</TD>
<TD valign="top">
<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<TR><TD>{$lng.lbl_sku}</TD><TD>{$product.productcode}</TD></TR>
<TR><TD>{$lng.lbl_category}</TD><TD>{$product.category_text}</TD></TR>
{if $usertype eq "A"}<TR><TD>{$lng.lbl_vendor}</TD><TD>{$product.provider}</TD></TR>{/if}
<TR><TD>{$lng.lbl_availability}</TD><TD>{if $product.forsale eq "Y"}{$lng.lbl_avail_for_sale}{elseif $product.forsale eq "B"}{$lng.lbl_pconf_bundled_descr}{elseif $product.forsale eq "H"}{$lng.lbl_hidden}{else}{$lng.lbl_disabled} {/if}</TD></TR>
<TR><TD colspan="2">
<BR>
<BR>
<SPAN class="Text">
{$product.descr}
</SPAN>
<BR>
<BR>
</TD></TR>
<TR><TD colspan="2"><B><FONT class="ProductDetailsTitle">{$lng.lbl_price_info}< /FONT></B></TD></TR>
<TR><TD class="Line" height="1" colspan="2"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD></TR>
<TR><TD colspan="2">&nbsp;</TD></TR>
<TR><TD width="50%">{$lng.lbl_price}</TD><TD nowrap><FONT class="ProductPriceSmall">{include file="currency.tpl" value=$product.price}</FONT></TD></TR>
<TR><TD width="50%">{$lng.lbl_quantity}</TD><TD nowrap>{$product.avail} {$lng.lbl_items_available}</TD></TR>
<TR><TD width="50%">{$lng.lbl_weight}</TD><TD nowrap>{$product.weight} {$config.General.weight_symbol}</TD></TR>
</TR></TABLE>
<BR>
{include file="buttons/modify.tpl" href="product_modify.php?productid=`$product.produ ctid`"}
&nbsp;&nbsp;
{include file="buttons/clone.tpl" href="process_product.php?mode=clone&productid=`$p roduct.productid`"}
&nbsp;&nbsp;
{include file="buttons/delete.tpl" href="process_product.php?mode=delete&productid=`$ product.productid`"}
</TD>
</TR>
<INPUT type="hidden" name="mode" value="add">
<INPUT type="hidden" name="productid" value="{$product.productid}">
</FORM>
</TABLE>
{/capture}
{if $smarty.get.mode eq "printable"}
{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=440"}
{else}
{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"}
{/if}
__________________
www.Impact-Computers.co.uk (Live Store)
www.Forums.Impact-Computers.co.uk (Customer Forums)

X-Cart version 4.0.19 Gold

Mods installed:
CDSEO
Tab Product Menu
Easy Checkout
Froogle Feed
Shopping.com Feed
Remember Me
Pleasent Payment Details
Recently Viewed Products
Google Checkout
TelaFirma - X-Cart Dynamic Image Generator
Reply With Quote
  #28  
Old 03-04-2007, 11:03 AM
 
TA TA is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 302
 

Default Re: Thickbox 2.0 implementation

Has anybody successfully installed this on 4.0.18? product.tpl is different than the installation instructions.
__________________
v4.7.12
v5.4.x (In Dev)
Reply With Quote
  #29  
Old 03-05-2007, 08:34 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: Thickbox 2.0 implementation

Quote:
Originally Posted by TA
Has anybody successfully installed this on 4.0.18? product.tpl is different than the installation instructions.

Yeah - what he says.... 4.0.xxx?
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #30  
Old 03-08-2007, 08:28 PM
 
EXRN EXRN is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 8
 

Angry Re: Thickbox 2.0 implementation

Because of my lack of knowledge of x-cart, I shouldn't have attempted this mod on my own, but I did. I thought I would be safe by making a backup of the product.tpl file.

After following the install instructions, I got an error on the cart, so I decided to chicken out and uninstall the mod. I deleted all of the files and put the original product.tpl file back.

For some reason, I'm getting the following error when I click on detailed view:

Warning: Smarty error: unable to read resource: "thickbox/thickbox_productpage.tpl" in /home/crazymil/public_html/store/Smarty-2.6.12/Smarty.class.php on line 1095

Does anyone have a clue what I need to do to correct this. Everything seems to be working, it just that this error is appearing.

Thank you,
David
__________________
EXRN, Inc
xcart v4.1 [Linux]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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:31 AM.

   

 
X-Cart forums © 2001-2020