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

Want a WYSIWYG detailed description text area?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 02-16-2005, 07:20 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

Quote:
Originally Posted by SugarFreeGum
Thanks heaps, its working now.

Is there a htmlarea version thats compatible with FireFox Browser?

Well, it is possible, but I would imagine it is a special progie and you would have to purchase though AND you would have to do a search that would probably take a while. I know there are multiple versions out there by different companies, but have not looked at them as close as I have this one. AND ITS FREE!

With this one, the version 3 beta that was released was just started not too aweful long ago that made it compatible with the mozilla browsers.
__________________
vs 4.1.12
Reply With Quote
  #72  
Old 03-08-2005, 09:17 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

FYI,

HTMLAREA has been discontinued.

www.htmlarea.com
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #73  
Old 03-10-2005, 04:15 PM
 
mpj mpj is offline
 

Senior Member
  
Join Date: Feb 2005
Posts: 106
 

Default

How can I remove the default "

" and " </P>" tags.

I use CSS for my site and the default tags interfers with this code.



TEXT</P>

the only place I found the

tags was in the editor.js file.

I've taken that out and it still exist. Please help!
__________________
X-Cart 4.0.11


{My simple mods}
Adding Market list and % save on product detail
Quantity input box
Reply With Quote
  #74  
Old 03-21-2005, 04:35 PM
 
vulcan-works vulcan-works is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 143
 

Default

Ok, this editor will work on almost all browsers(IE 5.5+, Firefox 1.0+, Mozilla 1.3+ and Netscape 7+)

go here to download FCKeditor: http://prdownloads.sourceforge.net/fckeditor/FCKeditor_2.0rc3.zip?download

unzip and upload that to your server

1.Add:
Code:
<script type="text/javascript" src="http://www.yoursite.com/FCKeditor/fckeditor.js"></script>

To: meta.tpl right after the
Code:
{* $Id: meta.tpl,v 1.18.2.4 2004/12/23 12:50:34 svowl Exp $ *}

2.Then go to /main/product_details.tpl
and add this
Code:
<script type="text/javascript"> var oFCKeditor = new FCKeditor( 'descr' ) ; oFCKeditor.ReplaceTextarea() ; </script> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'fulldescr' ) ; oFCKeditor.ReplaceTextarea() ; </script>
right before the last
Code:
</FORM>

and thats it, just make sure that step 1 is pointed to the right spot on your server
__________________
X-cart--4.7.12

vulcanworks.net
Reply With Quote
  #75  
Old 03-25-2005, 07:59 PM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

I messed and messed and messed with that damn code. The only thing I can get it to do is to show my "page not found" page where the text area should be. I double quadruple checked my locations, renamed and moved them, updating the line of code along the way to match.

Still won't work.

Any ideas?

This is FCKEditor btw, not the original code posted by the thread starter.
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
  #76  
Old 03-26-2005, 03:31 PM
 
vulcan-works vulcan-works is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 143
 

Default

the end of product_details.tpl should look like this:
Code:
{if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product_modify.tpl"} {/if} <TR> <TD colspan="3" align="center"> <INPUT type="submit" value=" {$lng.lbl_save} "></TD> </TR> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'descr' ) ; oFCKeditor.ReplaceTextarea() ; </script> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'fulldescr' ) ; oFCKeditor.ReplaceTextarea() ; </script> </FORM> </TABLE> {/capture} {include file="dialog.tpl" title=$lng.lbl_product_details content=$smarty.capture.dialog extra="width=100%"}

Do the samples that come with fckeditor work? there in the "_samples" folder of your fckeditor folder, if they dont work it might be your server.
__________________
X-cart--4.7.12

vulcanworks.net
Reply With Quote
  #77  
Old 03-26-2005, 04:59 PM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

I'm not sure what you mean by "the end". Can you post exactly where that code is to go?

I did as you said, but it messed up my entire page.

Here is my code BEFORE:

Code:
{* $Id: product_details.tpl,v 1.15.2.5 2004/11/05 12:48:25 max Exp $ *} {capture name=dialog} <TABLE border="0" cellpadding="4" cellspacing="0" width="100%"> <FORM action="product_modify.php" method="POST" name="modifyform"> <INPUT type="hidden" name="productid" value="{$product.productid}"> <INPUT type="hidden" name="section" value="{$section}"> <INPUT type="hidden" name="mode" value="product_modify"> {if $productids ne ''} <TR> <TD width="15" class="TableSubHead"></TD> <TD class="TableSubHead" colspan="2">* {$lng.lbl_note}: {$lng.txt_edit_product_group}</TD> </TR> {/if} {if $config.Appearance.show_thumbnails eq "Y"} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2">{include file="main/subheader.tpl" title=$lng.lbl_product_thumbnail}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[thumbnail]"></TD>{/if} <TD class="ProductDetails" valign="top"><FONT class="FormButton">{$lng.lbl_thumbnail}</FONT> {$lng.lbl_thumbnail_msg}</TD> <TD class="ProductDetails"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD> <INPUT type="button" value="{$lng.lbl_change_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}")){ldelim}popup_image_selection("T", "{$product.productid}", "{$query_string}");{rdelim}'> <INPUT type="button" value="{$lng.lbl_delete_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}")){ldelim}self.location="product_modify.php?mode=delete_thumbnail&productid={$product.productid}"{rdelim}'> </TD> <TR> {if $file_upload_data.file_path} <TR> <TD> {$lng.txt_save_thumbnail_note} </TD> </TR> {/if} </TABLE> </TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_product_owner}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" width="20%" nowrap>{$lng.lbl_provider}:</TD> <TD class="ProductDetails" width="80%"> {if $usertype eq "A" and $new_product eq 1} <SELECT name="provider" class="InputWidth"> {section name=prov loop=$providers} <OPTION value="{$providers[prov].login}">{$providers[prov].login} ({$providers[prov].title} {$providers[prov].lastname} {$providers[prov].firstname})</OPTION> {/section} </SELECT> {else} {$provider_info.title} {$provider_info.lastname} {$provider_info.firstname} ({$provider_info.login}) {/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_classification}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryid]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_main_category}:</TD> <TD class="ProductDetails"> <SELECT name="categoryid" class="InputWidth"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].categoryid eq $product.categoryid or $allcategories[cat_num].categoryid eq $default_categoryid}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT> {if $top_message.fillerror ne "" and $product.categoryid eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_additional_categories}:</TD> <TD class="ProductDetails"> <SELECT name="categoryids[]" class="InputWidth" multiple size="8"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].productid eq $product.productid and $product.productid ne "" and $allcategories[cat_num].main ne "Y"}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT></TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[forsale]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_availability}:</TD> <TD class="ProductDetails"> <SELECT name="forsale"> <OPTION value="Y" {if $product.forsale eq "Y"}selected{/if}>{$lng.lbl_avail_for_sale}</OPTION> <OPTION value="H" {if $product.forsale eq "H"}selected{/if}>{$lng.lbl_hidden}</OPTION> <OPTION value="N" {if $product.forsale eq "N"}selected{/if}>{$lng.lbl_disabled}</OPTION> {if $active_modules.Product_Configurator} <OPTION value="B" {if $product.forsale eq "B"}selected{/if}>{$lng.lbl_bundled}</OPTION> {/if} </SELECT> </TD> </TR> {if $product.forsale eq 'H'} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_url}:</TD> <TD class="ProductDetails">{$catalogs.customer}/product.php?productid={$product.productid}&cat={$product.categoryid}</TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_details}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_sku}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="productcode" size="20" value="{$product.productcode}" class="InputWidth"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[product]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_name}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="product" size="45" class="InputWidth" value="{$product.product|escape}"> {if $top_message.fillerror ne "" and $product.product eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> {if $active_modules.Egoods ne ""} {include file="modules/Egoods/egoods.tpl"} {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[descr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_short_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="descr" cols="45" rows="6" class="InputWidth">{$product.descr|escape:"html"}</TEXTAREA> {if $top_message.fillerror ne "" and $product.descr eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[fulldescr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_det_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="fulldescr" cols="45" rows="10" class="InputWidth">{$product.fulldescr|escape:"html"}</TEXTAREA> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {$lng.txt_html_tags_in_description} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[price]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_price} ({$config.General.currency_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="price" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.price }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $top_message.fillerror ne "" and $product.price eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_price_note}{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[list_price]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_list_price} <SPAN class="Text"> ({$config.General.currency_symbol})</SPAN></TD> <TD class="ProductDetails"> <INPUT type="text" name="list_price" size="18" value="{if $product.productid eq ""}0.00{else}{$product.list_price}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[avail]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_quantity_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="avail" size="18" value="{if $product.productid eq ""}1000{else}{ $product.avail }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $top_message.fillerror ne "" and $product.avail eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_avail_note}{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[low_avail_limit]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_lowlimit_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="low_avail_limit" size="18" value="{if $product.productid eq ""}10{else}{ $product.low_avail_limit }{/if}"> {if $top_message.fillerror ne "" and $product.low_avail_limit le 0}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[min_amount]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_min_order_amount}</TD> <TD class="ProductDetails"> <INPUT type="text" name="min_amount" size="18" value="{if $product.productid eq ""}1{else}{$product.min_amount}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[weight]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_weight} ({$config.General.weight_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="weight" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.weight }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_weight_note}{/if} </TD> </TR> {if $active_modules.RMA ne ''} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[return_time]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_return_time}</TD> <TD class="ProductDetails"> <INPUT type="text" name="return_time" size="18" value="{$product.return_time}"> </TD> </TR> {/if} {if $taxes} <SCRIPT type="text/javascript" language="JavaScript 1.2"> <!-- function ChangeTaxesBoxStatus() {ldelim} if (document.modifyform.free_tax.value=='Y') disabled = true; else disabled = false; document.modifyform.elements('taxes[]').disabled = disabled; {rdelim} --> </SCRIPT> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_tax]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_tax_exempt}</TD> <TD class="ProductDetails"> <SELECT name="free_tax"{if $taxes} onchange="javascript:ChangeTaxesBoxStatus();"{/if}> <OPTION value='N' {if ($product.free_tax eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_tax eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> {if $taxes} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[taxes]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_taxes}</TD> <TD> <SELECT name="taxes[]" multiple{if $product.free_tax eq "Y"} disabled{/if}> {section name=tax loop=$taxes} <OPTION value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0 and $product.productid ne ""} selected{/if}>{$taxes[tax].tax_name}</OPTION> {/section} </SELECT> {$lng.lbl_hold_ctrl_key} {if $usertype eq "P" or $active_modules.Simple_Mode ne ""} {$lng.lbl_click_here_to_modify_vat}{/if} </TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_shipping]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_free_shipping}</TD> <TD class="ProductDetails"> <SELECT name="free_shipping"> <OPTION value='N' {if ($product.free_shipping eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_shipping eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[shipping_freight]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_shipping_freight} ({$config.General.currency_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="shipping_freight" size="18" value="{if $product.shipping_freight eq ""}0.00{else}{$product.shipping_freight}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[discount_avail]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_global_discounts}</TD> <TD class="ProductDetails"> <INPUT type="checkbox" name="discount_avail" value="Y" {if $product.productid eq ""}checked{elseif $product.discount_avail eq "Y"}checked{/if}> </TD> </TR> {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product_modify.tpl"} {/if} <TR> <TD colspan="3" align="center"> <INPUT type="submit" value=" {$lng.lbl_save} "></TD> </TR> </FORM> </TABLE> {/capture} {include file="dialog.tpl" title=$lng.lbl_product_details content=$smarty.capture.dialog extra="width=100%"}

Here is my code AFTER:

Code:
{* $Id: product_details.tpl,v 1.15.2.5 2004/11/05 12:48:25 max Exp $ *} {capture name=dialog} <TABLE border="0" cellpadding="4" cellspacing="0" width="100%"> <FORM action="product_modify.php" method="POST" name="modifyform"> <INPUT type="hidden" name="productid" value="{$product.productid}"> <INPUT type="hidden" name="section" value="{$section}"> <INPUT type="hidden" name="mode" value="product_modify"> {if $productids ne ''} <TR> <TD width="15" class="TableSubHead"></TD> <TD class="TableSubHead" colspan="2">* {$lng.lbl_note}: {$lng.txt_edit_product_group}</TD> </TR> {/if} {if $config.Appearance.show_thumbnails eq "Y"} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2">{include file="main/subheader.tpl" title=$lng.lbl_product_thumbnail}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[thumbnail]"></TD>{/if} <TD class="ProductDetails" valign="top"><FONT class="FormButton">{$lng.lbl_thumbnail}</FONT> {$lng.lbl_thumbnail_msg}</TD> <TD class="ProductDetails"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD> <INPUT type="button" value="{$lng.lbl_change_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}")){ldelim}popup_image_selection("T", "{$product.productid}", "{$query_string}");{rdelim}'> <INPUT type="button" value="{$lng.lbl_delete_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}")){ldelim}self.location="product_modify.php?mode=delete_thumbnail&productid={$product.productid}"{rdelim}'> </TD> <TR> {if $file_upload_data.file_path} <TR> <TD> {$lng.txt_save_thumbnail_note} </TD> </TR> {/if} </TABLE> </TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_product_owner}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" width="20%" nowrap>{$lng.lbl_provider}:</TD> <TD class="ProductDetails" width="80%"> {if $usertype eq "A" and $new_product eq 1} <SELECT name="provider" class="InputWidth"> {section name=prov loop=$providers} <OPTION value="{$providers[prov].login}">{$providers[prov].login} ({$providers[prov].title} {$providers[prov].lastname} {$providers[prov].firstname})</OPTION> {/section} </SELECT> {else} {$provider_info.title} {$provider_info.lastname} {$provider_info.firstname} ({$provider_info.login}) {/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_classification}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryid]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_main_category}:</TD> <TD class="ProductDetails"> <SELECT name="categoryid" class="InputWidth"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].categoryid eq $product.categoryid or $allcategories[cat_num].categoryid eq $default_categoryid}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT> {if $top_message.fillerror ne "" and $product.categoryid eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_additional_categories}:</TD> <TD class="ProductDetails"> <SELECT name="categoryids[]" class="InputWidth" multiple size="8"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].productid eq $product.productid and $product.productid ne "" and $allcategories[cat_num].main ne "Y"}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT></TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[forsale]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_availability}:</TD> <TD class="ProductDetails"> <SELECT name="forsale"> <OPTION value="Y" {if $product.forsale eq "Y"}selected{/if}>{$lng.lbl_avail_for_sale}</OPTION> <OPTION value="H" {if $product.forsale eq "H"}selected{/if}>{$lng.lbl_hidden}</OPTION> <OPTION value="N" {if $product.forsale eq "N"}selected{/if}>{$lng.lbl_disabled}</OPTION> {if $active_modules.Product_Configurator} <OPTION value="B" {if $product.forsale eq "B"}selected{/if}>{$lng.lbl_bundled}</OPTION> {/if} </SELECT> </TD> </TR> {if $product.forsale eq 'H'} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_url}:</TD> <TD class="ProductDetails">{$catalogs.customer}/product.php?productid={$product.productid}&cat={$product.categoryid}</TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_details}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_sku}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="productcode" size="20" value="{$product.productcode}" class="InputWidth"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[product]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_name}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="product" size="45" class="InputWidth" value="{$product.product|escape}"> {if $top_message.fillerror ne "" and $product.product eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> {if $active_modules.Egoods ne ""} {include file="modules/Egoods/egoods.tpl"} {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[descr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_short_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="descr" cols="45" rows="6" class="InputWidth">{$product.descr|escape:"html"}</TEXTAREA> {if $top_message.fillerror ne "" and $product.descr eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[fulldescr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_det_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="fulldescr" cols="45" rows="10" class="InputWidth">{$product.fulldescr|escape:"html"}</TEXTAREA> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {$lng.txt_html_tags_in_description} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[price]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_price} ({$config.General.currency_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="price" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.price }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $top_message.fillerror ne "" and $product.price eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_price_note}{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[list_price]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_list_price} <SPAN class="Text"> ({$config.General.currency_symbol})</SPAN></TD> <TD class="ProductDetails"> <INPUT type="text" name="list_price" size="18" value="{if $product.productid eq ""}0.00{else}{$product.list_price}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[avail]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_quantity_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="avail" size="18" value="{if $product.productid eq ""}1000{else}{ $product.avail }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $top_message.fillerror ne "" and $product.avail eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_avail_note}{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[low_avail_limit]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_lowlimit_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="low_avail_limit" size="18" value="{if $product.productid eq ""}10{else}{ $product.low_avail_limit }{/if}"> {if $top_message.fillerror ne "" and $product.low_avail_limit le 0}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[min_amount]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_min_order_amount}</TD> <TD class="ProductDetails"> <INPUT type="text" name="min_amount" size="18" value="{if $product.productid eq ""}1{else}{$product.min_amount}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[weight]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_weight} ({$config.General.weight_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="weight" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.weight }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_weight_note}{/if} </TD> </TR> {if $active_modules.RMA ne ''} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[return_time]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_return_time}</TD> <TD class="ProductDetails"> <INPUT type="text" name="return_time" size="18" value="{$product.return_time}"> </TD> </TR> {/if} {if $taxes} <SCRIPT type="text/javascript" language="JavaScript 1.2"> <!-- function ChangeTaxesBoxStatus() {ldelim} if (document.modifyform.free_tax.value=='Y') disabled = true; else disabled = false; document.modifyform.elements('taxes[]').disabled = disabled; {rdelim} --> </SCRIPT> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_tax]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_tax_exempt}</TD> <TD class="ProductDetails"> <SELECT name="free_tax"{if $taxes} onchange="javascript:ChangeTaxesBoxStatus();"{/if}> <OPTION value='N' {if ($product.free_tax eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_tax eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> {if $taxes} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[taxes]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_taxes}</TD> <TD> <SELECT name="taxes[]" multiple{if $product.free_tax eq "Y"} disabled{/if}> {section name=tax loop=$taxes} <OPTION value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0 and $product.productid ne ""} selected{/if}>{$taxes[tax].tax_name}</OPTION> {/section} </SELECT> {$lng.lbl_hold_ctrl_key} {if $usertype eq "P" or $active_modules.Simple_Mode ne ""} {$lng.lbl_click_here_to_modify_vat}{/if} </TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_shipping]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_free_shipping}</TD> <TD class="ProductDetails"> <SELECT name="free_shipping"> <OPTION value='N' {if ($product.free_shipping eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_shipping eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[shipping_freight]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_shipping_freight} ({$config.General.currency_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="shipping_freight" size="18" value="{if $product.shipping_freight eq ""}0.00{else}{$product.shipping_freight}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[discount_avail]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_global_discounts}</TD> <TD class="ProductDetails"> <INPUT type="checkbox" name="discount_avail" value="Y" {if $product.productid eq ""}checked{elseif $product.discount_avail eq "Y"}checked{/if}> </TD> </TR> {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product_modify.tpl"} {/if} <TR> <TD colspan="3" align="center"> <INPUT type="submit" value=" {$lng.lbl_save} "></TD> </TR> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'descr' ) ; oFCKeditor.ReplaceTextarea() ; </script> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'fulldescr' ) ; oFCKeditor.ReplaceTextarea() ; </script> </FORM> </TABLE> {/capture} {include file="dialog.tpl" title=$lng.lbl_product_details content=$smarty.capture.dialog extra="width=100%"}
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
  #78  
Old 03-26-2005, 08:15 PM
 
vulcan-works vulcan-works is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 143
 

Default

your after code is of "product_modify.tpl" not "product_details.tpl" but heres my product_details.tpl code anyways:

Code:
{* $Id: product_details.tpl,v 1.15.2.5 2004/11/05 12:48:25 max Exp $ *} {capture name=dialog} <TABLE border="0" cellpadding="4" cellspacing="0" width="100%"> <FORM action="product_modify.php" method="POST" name="modifyform"> <INPUT type="hidden" name="productid" value="{$product.productid}"> <INPUT type="hidden" name="section" value="{$section}"> <INPUT type="hidden" name="mode" value="product_modify"> {if $productids ne ''} <TR> <TD width="15" class="TableSubHead"></TD> <TD class="TableSubHead" colspan="2">* {$lng.lbl_note}: {$lng.txt_edit_product_group}</TD> </TR> {/if} {if $config.Appearance.show_thumbnails eq "Y"} <TR> {if $productids ne ''}<TD width= "15" class="TableSubHead"></TD>{/if} <TD colspan="2">{include file="main/subheader.tpl" title=$lng.lbl_product_thumbnail}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[thumbnail]"></TD>{/if} <TD class="ProductDetails" valign="top"><FONT class="FormButton">{$lng.lbl_thumbnail}</FONT> {$lng.lbl_thumbnail_msg}</TD> <TD class="ProductDetails"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD> <INPUT type="button" value="{$lng.lbl_change_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}")){ldelim}popup_image_selection("T", "{$product.productid}", "{$query_string}");{rdelim}'> <INPUT type="button" value="{$lng.lbl_delete_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}")){ldelim}self.location="product_modify.php?mode=delete_thumbnail&productid={$product.productid}"{rdelim}'> </TD> <TR> {if $file_upload_data.file_path} <TR> <TD> {$lng.txt_save_thumbnail_note} </TD> </TR> {/if} </TABLE> </TD> </TR> {/if} For Pictures go here: http://vulcanworks.fileburst.com/store-images/thumbnails/ <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_product_owner}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" width="20%" nowrap>{$lng.lbl_provider}:</TD> <TD class="ProductDetails" width="80%"> {if $usertype eq "A" and $new_product eq 1} <SELECT name="provider" class="InputWidth"> {section name=prov loop=$providers} <OPTION value="{$providers[prov].login}">{$providers[prov].login} ({$providers[prov].title} {$providers[prov].lastname} {$providers[prov].firstname})</OPTION> {/section} </SELECT> {else} {$provider_info.title} {$provider_info.lastname} {$provider_info.firstname} ({$provider_info.login}) {/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_classification}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryid]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_main_category}:</TD> <TD class="ProductDetails"> <SELECT name="categoryid" class="InputWidth"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].categoryid eq $product.categoryid or $allcategories[cat_num].categoryid eq $default_categoryid}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT> {if $top_message.fillerror ne "" and $product.categoryid eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_additional_categories}:</TD> <TD class="ProductDetails"> <SELECT name="categoryids[]" class="InputWidth" multiple size="8"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].productid eq $product.productid and $product.productid ne "" and $allcategories[cat_num].main ne "Y"}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT></TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[forsale]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_availability}:</TD> <TD class="ProductDetails"> <SELECT name="forsale"> <OPTION value="Y" {if $product.forsale eq "Y"}selected{/if}>{$lng.lbl_avail_for_sale}</OPTION> <OPTION value="H" {if $product.forsale eq "H"}selected{/if}>{$lng.lbl_hidden}</OPTION> <OPTION value="N" {if $product.forsale eq "N"}selected{/if}>{$lng.lbl_disabled}</OPTION> {if $active_modules.Product_Configurator} <OPTION value="B" {if $product.forsale eq "B"}selected{/if}>{$lng.lbl_bundled}</OPTION> {/if} </SELECT> </TD> </TR> {if $product.forsale eq 'H'} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_url}:</TD> <TD class="ProductDetails">{$catalogs.customer}/product.php?productid={$product.productid}&cat={$product.categoryid}</TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_details}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_sku}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="productcode" size="20" value="{$product.productcode}" class="InputWidth"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[product]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_name}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="product" size="45" class="InputWidth" value="{$product.product|escape}"> {if $top_message.fillerror ne "" and $product.product eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> {if $active_modules.Egoods ne ""} {include file="modules/Egoods/egoods.tpl"} {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[descr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_short_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="descr" cols="45" rows="6" class="InputWidth">{$product.descr|escape:"html"}</TEXTAREA> {if $top_message.fillerror ne "" and $product.descr eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[fulldescr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_det_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="fulldescr" cols="45" rows="10" class="InputWidth">{$product.fulldescr|escape:"html"}</TEXTAREA> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {$lng.txt_html_tags_in_description} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[price]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_price} ({$config.General.currency_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="price" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.price }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $top_message.fillerror ne "" and $product.price eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_price_note}{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[list_price]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_list_price} <SPAN class="Text"> ({$config.General.currency_symbol})</SPAN></TD> <TD class="ProductDetails"> <INPUT type="text" name="list_price" size="18" value="{if $product.productid eq ""}0.00{else}{$product.list_price}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[avail]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_quantity_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="avail" size="18" value="{if $product.productid eq ""}1000{else}{ $product.avail }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $top_message.fillerror ne "" and $product.avail eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_avail_note}{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[low_avail_limit]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_lowlimit_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="low_avail_limit" size="18" value="{if $product.productid eq ""}10{else}{ $product.low_avail_limit }{/if}"> {if $top_message.fillerror ne "" and $product.low_avail_limit le 0}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[min_amount]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_min_order_amount}</TD> <TD class="ProductDetails"> <INPUT type="text" name="min_amount" size="18" value="{if $product.productid eq ""}1{else}{$product.min_amount}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead">{if $product.is_variant eq 'Y'}{else}<INPUT type="checkbox" value="Y" name="fields[weight]">{/if}</TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_weight} ({$config.General.weight_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="weight" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.weight }{/if}"{if $product.is_variant eq 'Y'} readonly{/if}> {if $product.is_variant eq 'Y'} {$lng.lbl_note}: {$lng.txt_pvariant_weight_note}{/if} </TD> </TR> {if $active_modules.RMA ne ''} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[return_time]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_return_time}</TD> <TD class="ProductDetails"> <INPUT type="text" name="return_time" size="18" value="{$product.return_time}"> </TD> </TR> {/if} {if $taxes} <SCRIPT type="text/javascript" language="JavaScript 1.2"> <!-- function ChangeTaxesBoxStatus() {ldelim} if (document.modifyform.free_tax.value=='Y') disabled = true; else disabled = false; document.modifyform.elements('taxes[]').disabled = disabled; {rdelim} --> </SCRIPT> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_tax]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_tax_exempt}</TD> <TD class="ProductDetails"> <SELECT name="free_tax"{if $taxes} onchange="javascript:ChangeTaxesBoxStatus();"{/if}> <OPTION value='N' {if ($product.free_tax eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_tax eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> {if $taxes} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[taxes]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_taxes}</TD> <TD> <SELECT name="taxes[]" multiple{if $product.free_tax eq "Y"} disabled{/if}> {section name=tax loop=$taxes} <OPTION value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0 and $product.productid ne ""} selected{/if}>{$taxes[tax].tax_name}</OPTION> {/section} </SELECT> {$lng.lbl_hold_ctrl_key} {if $usertype eq "P" or $active_modules.Simple_Mode ne ""} {$lng.lbl_click_here_to_modify_vat}{/if} </TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_shipping]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_free_shipping}</TD> <TD class="ProductDetails"> <SELECT name="free_shipping"> <OPTION value='N' {if ($product.free_shipping eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_shipping eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[shipping_freight]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_shipping_freight} ({$config.General.currency_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="shipping_freight" size="18" value="{if $product.shipping_freight eq ""}0.00{else}{$product.shipping_freight}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[discount_avail]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_global_discounts}</TD> <TD class="ProductDetails"> <INPUT type="checkbox" name="discount_avail" value="Y" {if $product.productid eq ""}checked{elseif $product.discount_avail eq "Y"}checked{/if}> </TD> </TR> {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product_modify.tpl"} {/if} <TR> <TD colspan="3" align="center"> <INPUT type="submit" value=" {$lng.lbl_save} "></TD> </TR> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'descr' ) ; oFCKeditor.ToolbarSet = "Basic" ; oFCKeditor.ReplaceTextarea() ; </script> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'fulldescr' ) ; oFCKeditor.ToolbarSet = "Basic" ; oFCKeditor.ReplaceTextarea() ; </script> </FORM> </TABLE> {/capture} {include file="dialog.tpl" title=$lng.lbl_product_details content=$smarty.capture.dialog extra="width=100%"}
__________________
X-cart--4.7.12

vulcanworks.net
Reply With Quote
  #79  
Old 03-26-2005, 08:46 PM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

Sorry about that. I fixed it. I just copy/paste the wrong code. Either way, it's still telling me page not found.

Here is my meta.tpl file:

Code:
{* $Id: meta.tpl,v 1.18.2.4 2004/12/23 12:50:34 svowl Exp $ *} <script type="text/javascript" src="http://www.sarversystems.com/FCKeditor/fckeditor.js"></script> <META http-equiv="Content-Type" content="text/html; charset={$default_charset|default:"iso-8859-1"}"> {if $usertype eq "P" or $usertype eq "A"} <META name="ROBOTS" content="NOINDEX"> <META name="ROBOTS" content="NOFOLLOW"> {else} {assign var="_meta_descr" value=""} {assign var="_meta_keywords" value=""} {if $product.meta_descr ne "" and $config.SEO.include_meta_products eq "Y"} {assign var="_meta_descr" value="`$product.meta_descr` "} {assign var="_meta_keywords" value="`$product.meta_keywords` "} {/if} {if $current_category.meta_descr ne "" and $config.SEO.include_meta_categories eq "Y"} {assign var="_meta_descr" value="$_meta_descr`$current_category.meta_descr` "} {assign var="_meta_keywords" value="$_meta_keywords`$current_category.meta_keywords` "} {/if} {assign var="_meta_descr" value="$_meta_descr`$config.SEO.meta_descr`"} {assign var="_meta_keywords" value="$_meta_keywords`$config.SEO.meta_keywords`"} <META name="description" content="{$_meta_descr|truncate:"500":"...":false|replace:'"':"'"}"> <META name="keywords" content="{$_meta_keywords|truncate:"500":"":false|replace:'"':"'"}"> {/if} {if $webmaster_mode eq "editor"} {if ($usertype eq "P" or $usertype eq "A") and $current_language ne ""} <SCRIPT type="text/javascript" language="JavaScript 1.2">var store_language = "{$current_language}"</SCRIPT> {else} <SCRIPT type="text/javascript" language="JavaScript 1.2">var store_language = "{$store_language}"</SCRIPT> {/if} <SCRIPT type="text/javascript" language="JavaScript 1.2"> var catalogs = new Object(); catalogs.admin = "{$catalogs.admin}"; catalogs.provider = "{$catalogs.provider}"; catalogs.customer = "{$catalogs.customer}"; catalogs.partner = "{$catalogs.partner}"; catalogs.images = "{$ImagesDir}"; catalogs.skin = "{$SkinDir}"; var lng_labels = new Array(); {foreach key=lbl_name item=lbl_val from=$webmaster_lng} lng_labels['{$lbl_name}'] = '{$lbl_val}'; {/foreach} var page_charset = "{$default_charset|default:"iso-8859-1"}"; </SCRIPT> {if $user_agent eq "ns"} <SCRIPT type="text/javascript" language="JavaScript 1.2" src="{$SkinDir}/editorns.js"></SCRIPT> {else} <SCRIPT type="text/javascript" language="JavaScript 1.2" src="{$SkinDir}/editor.js"></SCRIPT> {/if} {/if}
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
  #80  
Old 03-27-2005, 01:03 PM
 
vulcan-works vulcan-works is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 143
 

Default

try the samples that come with the editor, if they dont work its a problem with your server

you can just copy and paste the code from my product_details.tpl above into yours since we have the same version
__________________
X-cart--4.7.12

vulcanworks.net
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 11:35 AM.

   

 
X-Cart forums © 2001-2020