| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to make "extra Field" become "textarea&qu | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||||
|
|||||||||
Edit skin1/modules/Extra_Fields/product_modify.tpl:
Code:
Copy paste that into it replace its entire contents
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|