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

Length of Text Box Option (Help)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-04-2012, 04:40 AM
 
momentum momentum is offline
 

Senior Member
  
Join Date: Jun 2011
Posts: 120
 

Default Length of Text Box Option (Help)

Hello Great Forum Users

I have been using the option of Text box for business cards. I just found out the fields for a text box are only 14 characters long.

My question is WITHOUT using a text area box where can I change the length of all the boxes have a text length of 40 characters.

I cannot find the TPL where to change the fields

Any and all suggestion would be greatly appreciated.
__________________
X-Cart version 4.6.4 GOLD
X-Cart version 4.6.1 GOLD
X-Cart version 4.5.5 GOLD
X-Cart version 4.5.4 GOLD
X-cart Version 4.5.3 GOLD
X-cart Version 4.4.3 GOLD
X-cart Version 4.4.2 GOLD
PHP 5.3.27
MySQL client 5.5.37
Linux
Reply With Quote
  #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

The following user thanks totaltec for this useful post:
tartaglia (10-05-2012)
  #3  
Old 10-04-2012, 05:43 AM
 
momentum momentum is offline
 

Senior Member
  
Join Date: Jun 2011
Posts: 120
 

Default Re: Length of Text Box Option (Help)

Hello

We Love you in Florida!

I would have never found that page to adjust that.

Thank You

BTW, in the main.css on line 2709 I had to change the width from 40% to 10%. If I did not the fields went way right of the text

table.product-properties .property-name {
width: 10%; (Was 40%)
}

Hopefully I did not screw anything else up in the store.

Thanks again for taking the time to help on this problem.
__________________
X-Cart version 4.6.4 GOLD
X-Cart version 4.6.1 GOLD
X-Cart version 4.5.5 GOLD
X-Cart version 4.5.4 GOLD
X-cart Version 4.5.3 GOLD
X-cart Version 4.4.3 GOLD
X-cart Version 4.4.2 GOLD
PHP 5.3.27
MySQL client 5.5.37
Linux
Reply With Quote

The following user thanks momentum for this useful post:
totaltec (10-04-2012)
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 06:50 AM.

   

 
X-Cart forums © 2001-2020