X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Thick box integration... Help (https://forum.x-cart.com/showthread.php?t=37767)

EN4U 02-21-2008 08:49 PM

Thick box integration... Help
 
Hello, ive upload the files to the locations and all, yet the thread i read here seems to differ from the product.tpl i have. So i didnt want to mess with it. Even took me some time to find it, it was in the /main folder...

Im totaly new to this and after readin and reading for the last fe days I finaly got up the nerve to begin to alter some things, etc.... yet its still so very confusing to me.


i was wondering, if anyone here could take a few monents and adjust this product.tpl for me.

Thank you so very much in advance....

{* $Id: product.tpl,v 1.46.2.2 2007/06/04 11:13:13 max Exp $ *}
{capture name=dialog}
<table width="100%">
<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}&a mp;mode=printable" target="_blank"><img src="{$ImagesDir}/print.gif" width="23" height="22" name="print" alt="{$lng.lbl_printable_version|escape}" /></a>
{/if}
</td>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>{$lng.lbl_sku}</td>
<td>{$product.productcode}</td>
</tr>
{if $product.category_text}
<tr>
<td>{$lng.lbl_category}</td>
<td>{$product.category_text}</td>
</tr>
{/if}
{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_avail_for_sale_bundled}{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" class="Spc" alt="" /></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="50%">{$lng.lbl_price}</td>
<td nowrap="nowrap"><font class="ProductPriceSmall">{include file="currency.tpl" value=$product.price}</font></td>
</tr>
<tr>
<td width="50%">{$lng.lbl_in_stock}</td>
<td nowrap="nowrap">{$lng.lbl_items_available|substitu te:"items":$product.avail}</td>
</tr>
<tr>
<td width="50%">{$lng.lbl_weight}</td>
<td nowrap="nowrap">{$product.weight} {$config.General.weight_symbol}</td>
</tr>
</table>
<br />

<table cellspacing="0" cellpadding="0">
<tr>
<td>{include file="buttons/modify.tpl" href="product_modify.php?productid=`$product.produ ctid`"}</td>
<td>&nbsp;&nbsp;</td>
<td>{include file="buttons/clone.tpl" href="process_product.php?mode=clone&productid=`$p roduct.productid`"}</td>
<td>&nbsp;&nbsp;</td>
<td>{include file="buttons/delete.tpl" href="process_product.php?mode=delete&productid=`$ product.productid`"}</td>
</tr>
</table>

</td>
</tr>
</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}

pauldodman 02-21-2008 11:16 PM

Re: Thick box integration... Help
 
I'm not 100% sure there is any difference, but what version of thickbox are you installing, 2 or 3?

EN4U 02-21-2008 11:20 PM

Re: Thick box integration... Help
 
Quote:

Originally Posted by pauldodman
I'm not 100% sure there is any difference, but what version of thickbox are you installing, 2 or 3?


Hello...

i got it from here http://www.7dana.com/106.84.0.0.1.0.phtml


Looking at others product.tpl the version appeared different.. I couldnt find the points that matched to the insall either.... So i thought id sk you guys.. Lord knows im no expert yet, nor do i think at this point i ever will be....

lol

pauldodman 02-22-2008 12:24 AM

Re: Thick box integration... Help
 
Hi
Well for someone who doesn't know what they are doing - you have a heavily modified product.tpl template there!!!

Firstly, you have thickbox v3.

From the instructions - line 2 is simply to place on the page where you want the links to the thickbox detailed images to be - so you have to try it and see, but I suggest you simply add this line:

{include file="thickbox/thickbox_productpage.tpl" }

after your existing {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product}
at line #6 and see what it looks like.

Point 3 of the instruction is simply to remove Detailed Images from showing, as Thickbox is going to do this.
I can't see anywhere on your page that you have detailed images - so someone has already removed them by the looks of it - so you can ignore point 3.

EN4U 02-22-2008 12:29 AM

Re: Thick box integration... Help
 
Quote:

Originally Posted by pauldodman
Hi
Well for someone who doesn't know what they are doing - you have a heavily modified product.tpl template there!!!

Firstly, you have thickbox v3.

From the instructions - line 2 is simply to place on the page where you want the links to the thickbox detailed images to be - so you have to try it and see, but I suggest you simply add this line:

{include file="thickbox/thickbox_productpage.tpl" }

after your existing {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product}
at line #6 and see what it looks like.

Point 3 of the instruction is simply to remove Detailed Images from showing, as Thickbox is going to do this.
I can't see anywhere on your page that you have detailed images - so someone has already removed them by the looks of it - so you can ignore point 3.


Thank you paul.... i will try that. The odd thing is, i havent altered this product.tpl at all. What u see above, is what it was soon after my host installed the cart. So you saying it's modified is really odd. Wonder why?

I will let ya know if I get it to work or not.... Im so afraid to change anything.lol

pauldodman 02-22-2008 01:10 AM

Re: Thick box integration... Help
 
If you back it up first, you can't go wrong!
Yes, definately modified - do you want to send me a link to your shop and I'll see why it is so different? (email of PM if you want)

EN4U 02-22-2008 01:17 AM

Re: Thick box integration... Help
 
Quote:

Originally Posted by pauldodman
If you back it up first, you can't go wrong!
Yes, definately modified - do you want to send me a link to your shop and I'll see why it is so different? (email of PM if you want)


Would messing with skins change that? Allthough, when I found that product.tpl the site was still default oarnge right after host installed it.... So its just odd

But since then, ive done skins and a few other things.

Yes i am definetly backing things up before i do anything. i allready have 4 skin folders on comp from each tweak i do..lol

PErhasp being a bit paranoid, but until I get the hang of this im going to back up like a mad man.

Right now the site is in maintenence mode, with a custom shop_closed file and im using my shop key to look at the site as i make changes.

Im so happy they have this shop key thing. i wrote a post earler asking if this was an option here, then i found it shortly afterwords. LOL////

Trial and error indeed.......

---------

PS - paul i jjst tried to fire ya a pm, yet your inbox says its full and past quota bro......

pauldodman 02-22-2008 01:30 AM

Re: Thick box integration... Help
 
Yes, I'm afraid the PM system isn't really much use in this forum!! As soon as I empty it, it fills up again!
You can try now, or just email me - no limits on emails!

pauldodman 02-22-2008 01:39 AM

Re: Thick box integration... Help
 
Right, well you've got an off the shelf, 3rd party template on there from 7dana. Which is fine, no problem at all - it simply explains why it's not default code.

You were asking about showing images for subcats - yes, this is something I do all the time - I think this thread may be the one for it:
http://forum.x-cart.com/showthread.php?t=3848&highlight=subcategory+images

EN4U 02-22-2008 02:17 AM

Re: Thick box integration... Help
 
Quote:

Originally Posted by pauldodman
Right, well you've got an off the shelf, 3rd party template on there from 7dana. Which is fine, no problem at all - it simply explains why it's not default code.

You were asking about showing images for subcats - yes, this is something I do all the time - I think this thread may be the one for it:
http://forum.x-cart.com/showthread.php?t=3848&highlight=subcategory+images



Nice thanks you..i pasted the top one in the tpl yet it didnt work..... I see the last person who has my cart version had success ...I wonder if that is available on what they did.

There site looks great using it, i must have this mod...... if you got a working copy bro, fire it to me would ya....

Thanks

PS - im trying to mess wit the product.tl also..... yet no go. BUT, i cant even get the detailed image section to work even in default. The module is engaged. and the 2 buttons for it i have checked..yet detailed section doesnt even show up on the page at all.

Am i missing something here?? is here something else I need to check, or uncheck.... Very frustrating...

balinor 02-22-2008 03:33 AM

Re: Thick box integration... Help
 
Moving this to the Third Party Add-Ons forum

pauldodman 02-22-2008 05:03 AM

Re: Thick box integration... Help
 
As I said before - there is no mention of Detailed Images in your product.tpl - I don't really know why that would be - but even if it's enabled etc, etc - it's not going to show, as there is no code for it.
If you are going to have Thickbox though, you don't need to worry about it.

pauldodman 02-22-2008 05:44 AM

Re: Thick box integration... Help
 
The problem with the forum is that if people update their versions and their signatures after they have posted here, the post may be for a different version!
Anyway, did you try the code in post #250?

EN4U 02-22-2008 11:11 AM

Re: Thick box integration... Help
 
Quote:

Originally Posted by pauldodman
As I said before - there is no mention of Detailed Images in your product.tpl - I don't really know why that would be - but even if it's enabled etc, etc - it's not going to show, as there is no code for it.
If you are going to have Thickbox though, you don't need to worry about it.


Hmm that is odd.... i did however try the thick box and that didnt work. Well let me ask, if you send up a thumb and a product pic no matter what size it is, once its seen in the product view, how does it set up for a larger view? i mean how do you click it, wheres the prompt to do that?

is it just the pic that is clicable at that point? Just asking, cuase i wanna make sure that when i adeed the line above paul that you mentioned that i wasnt doing something else wrong.

.....

Also I tried that category thing also, yet that didint work... Oh gosh im frustrated. i did look into that thread you posted about it, yet the version seems old. Eitehr way, i did copy and paste the rewrite(first poost) in the subcategories.tpl yet it didnt appear to work.

EN4U 02-22-2008 04:22 PM

Re: Thick box integration... Help
 
Quote:

Originally Posted by pauldodman
Right, well you've got an off the shelf, 3rd party template on there from 7dana. Which is fine, no problem at all - it simply explains why it's not default code.

You were asking about showing images for subcats - yes, this is something I do all the time - I think this thread may be the one for it:
http://forum.x-cart.com/showthread.php?t=3848&highlight=subcategory+images



Well i got the subcateogories workign right now.....

As far as the thickbox..still no luck.... LEt me ask, when you upload a picture , are u then allwoed to put the curosr over that pic and it will enlarge via thickbox?

or does there need to be soem kind of link asssociated to it?

Perhaps im just not setting this up right at all.... and im just missing somthing...


All times are GMT -8. The time now is 07:40 AM.

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