View Single Post
  #28  
Old 04-07-2010, 11:55 AM
 
jphillips jphillips is offline
 

Advanced Member
  
Join Date: Feb 2010
Posts: 33
 

Default Re: Display HTML in Extra fields

Go into your MySQL database and do the following:

Quote:
As of v 4.1.5 the field you want (to increase the extra field capacity) is in the 'xcart_extra_field_values' table and you'll want to change the 'value' fields datatype to text, blob, etc

Change the value "type" to something else. I used "text."

Under "/modules/Extra_Fields/product_modify.tpl"

Change:

Quote:
<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[efields][{$ef.fieldid}]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$ef.field}:</td>
<td class="ProductDetails"><input type="text" name="efields[{$ef.fieldid}]" size="24" value="{if $ef.is_value eq 'Y'}{$ef.field_value|escape:"html"}{else}{$ef.valu e|escape:"html"}{/if}" /></td>
</tr>

To the following:

Quote:
<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[efields][{$ef.fieldid}]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$ef.field}:</td>
<td class="ProductDetails"><textarea class="InputWidth InputWidth" rows="12" cols="45"name="efields[{$ef.fieldid}]" value="{$ef.field_value}" </textarea></td>
</tr>

This should provide a large text area to type things in under the product admin page for extra fields, as well as display the current values for those fields if there are any.

Your mileage may vary
__________________
4.3 Gold
Reply With Quote