View Single Post
  #2  
Old 10-04-2012, 04:59 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Length of Text Box Option (Help)

I don't see any limitations set on a text box. (4.5.2)

Template: /common_files/modules/Product_Options/customer_options.tpl

Line 39:
PHP Code:
{if $v.is_modifier eq 'T'}

            <
input id="po{$v.classid}type="text" name="{$poname}value="{$v.default|escape}/> 

So you can assign the size="40" or whatever you want it to be right there. Here is a link to all the properties that can be defined on a html input like that: http://www.echoecho.com/htmlforms05.htm

So to accomplish what you want use:
PHP Code:
<input id="po{$v.classid}type="text" name="{$poname}value="{$v.default|escape}size="40" /> 
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote