View Single Post
  #2  
Old 09-20-2011, 11:13 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Limiting Product Name Field

1. Limit characters in product name
There are many ways you could do this, one would be to simply limit the number of characters that the database field for product name can accept. To provide feedback about this to the provider, you could use javascript validation on the product form.

2. To provide your line break is a little more tricky, you will need to write some logic that counts the characters in the product name variable and seperates it into two new variable which you could then display.
http://www.smarty.net/docsv2/en/language.modifier.count.characters.tpl

If you need more info on either of these solutions just ask.
__________________
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