Thread: textarea option
View Single Post
  #7  
Old 09-25-2007, 09:41 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: textarea option

I tried this -

{if $v.is_modifier eq 'T'}
<input id="po{$v.classid}" type="text" name="{$poname}" value="{$v.default|escape}" />
{elseif $v.classtext eq 'Special instructions'}
<textarea cols="25" rows="6"></textarea>
{else}
<select id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options(); FormValidation();"{/if}>{foreach from=$v.options item=o}
<option value="{$o.optionid}"{if $o.selected eq 'Y'} selected="selected"{/if}>{$o.option_name}{if $v.is_modifier eq 'Y' && $o.price_modifier ne 0} {*({if $o.modifier_type ne '%'}{include file="currency.tpl" value=$o.price_modifier display_sign=1 plain_text_message=1}{else}{$o.price_modifier}%{/if})*}{/if}</option> {/foreach}
</select>

Still its just a one line text box. If I change the type from text field to product option and add some blank options the textarea shows up, but the cart button will not work.. very confusing
__________________
xcart 5.1.2
Reply With Quote