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

How to find Variable{$title} length

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-03-2010, 10:26 PM
 
Kannan Kannan is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 116
 

Default How to find Variable{$title} length

Hi all,
I am using x-cart 4.1.10 gold version.
Dialog.tpl has one variable {$title}. This is string variable. I have to know how much character (string length) available for this varible.

For example we can get the array count result by {$product|@count}.

Could you tell any for this variable character count for {$title}

Thanks in advance
__________________
4.6.6
- SNK
Reply With Quote
  #2  
Old 03-04-2010, 05:47 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How to find Variable{$title} length

{$title|count_characters}
http://www.smarty.net/manual/en/language.modifier.count.characters.php
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 03-04-2010, 07:34 PM
 
Kannan Kannan is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 116
 

Default Re: How to find Variable{$title} length

Hi,
Thank you very much. Its working fine..........
__________________
4.6.6
- SNK
Reply With Quote
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 07:31 AM.

   

 
X-Cart forums © 2001-2020