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

How to make "extra Field" become "textarea&qu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-19-2003, 05:59 PM
 
jAnkis jAnkis is offline
 

Member
  
Join Date: Oct 2003
Location: Brisbane, Australia
Posts: 16
 

Default How to make "extra Field" become "textarea&qu

I need to input a HTML table into extrafield. In order for the administrator to input the code easier, I would like to change the detault extra field type to texarea type. I;ve made server attempt and still not be able to work it out.

I tried to modify /modules/Extra_Fields/product_modify.tpl

{* $Id: product_modify.tpl,v 1.4 2003/02/18 09:33:11 svowl Exp $ *}
{section name=field loop=$extra_fields}
<tr>
<td class=ProductDetails height="11">{$extra_fields[field].field}</td>
<td class=ProductDetails height="11">
<input type="textarea" name="param0{%field.index%}" cols="45" rows="5" value="{if $product.productid eq ""}{$extra_fields[field].value}{elseif %field.index% eq 0}{$product.param00|escape}{elseif %field.index% eq 1}{$product.param01|escape}{elseif %field.index% eq 2}{$product.param02|escape}{elseif %field.index% eq 3}{$product.param03|escape}{elseif %field.index% eq 4}{$product.param04|escape}{elseif %field.index% eq 5}{$product.param05|escape}{elseif %field.index% eq 6}{$product.param06|escape}{elseif %field.index% eq 7}{$product.param07|escape}{elseif %field.index% eq 8}{$product.param08|escape}{elseif %field.index% eq 9}{$product.param09|escape}{/if}">
</td>
</tr>
{/section}

Please advise where should I change in order to have textarea field instead of text field

thanks

Reply With Quote
  #2  
Old 10-20-2003, 12:29 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Edit skin1/modules/Extra_Fields/product_modify.tpl:

Code:
{* $Id: product_modify.tpl,v 1.4 2003/02/18 09:33:11 svowl Exp $ *} {section name=field loop=$extra_fields} <tr> <td class=ProductDetails height="11">{$extra_fields[field].field}</td> <td class=ProductDetails height="11"> {*<input type="text" name="param0{%field.index%}" size="24" value="{if $product.productid eq ""}{$extra_fields[field].value}{elseif %field.index% eq 0}{$product.param00|escape}{elseif %field.index% eq 1}{$product.param01|escape}{elseif %field.index% eq 2}{$product.param02|escape}{elseif %field.index% eq 3}{$product.param03|escape}{elseif %field.index% eq 4}{$product.param04|escape}{elseif %field.index% eq 5}{$product.param05|escape}{elseif %field.index% eq 6}{$product.param06|escape}{elseif %field.index% eq 7}{$product.param07|escape}{elseif %field.index% eq 8}{$product.param08|escape}{elseif %field.index% eq 9}{$product.param09|escape}{/if}">*} <TEXTAREA name="text" name="param0{%field.index%}" COLS=25 ROWS=5>{if $product.productid eq ""}{$extra_fields[field].value}{elseif %field.index% eq 0}{$product.param00|escape}{elseif %field.index% eq 1}{$product.param01|escape}{elseif %field.index% eq 2}{$product.param02|escape}{elseif %field.index% eq 3}{$product.param03|escape}{elseif %field.index% eq 4}{$product.param04|escape}{elseif %field.index% eq 5}{$product.param05|escape}{elseif %field.index% eq 6}{$product.param06|escape}{elseif %field.index% eq 7}{$product.param07|escape}{elseif %field.index% eq 8}{$product.param08|escape}{elseif %field.index% eq 9}{$product.param09|escape}{/if}</TEXTAREA> </td> </tr> {/section}

Copy paste that into it replace its entire contents
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 01:24 AM.

   

 
X-Cart forums © 2001-2020