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

Increase number of characters displayed in 'Search products'

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-26-2002, 09:14 AM
 
Jan Jan is offline
 

Member
  
Join Date: Nov 2002
Posts: 21
 

Default Increase number of characters displayed in 'Search products'

Hi

Whenever I use the 'Search' function and products are displayed, the product titles are truncated at some point.

A product titled :
'Pink Floyd - A momentary lapse of reason (Special Edition)'
will come out in my search results as
'Pink Floyd - A momentary lapse of...'

This is not very practical since I have a lot of products starting with the same name and I can't differentiate them when they are listed up.

I would therefore like to be able to display the FULL product name.

Does anybody know where I could change that ?
Reply With Quote
  #2  
Old 01-15-2003, 05:19 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

http://smarty.php.net/manual/en/language.modifier.truncate.php

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 01-16-2003, 04:16 AM
  disneyana's Avatar 
disneyana disneyana is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Columbus, OH
Posts: 116
 

Default

The file that you want to edit is <x-cart dir>/skin1/main/products.tpl

Code:
<a href="product.php?productid={ $products[cat_num].productid }"> <font class=ItemsList>{ $products[cat_num].product|escape|truncate:35:"...":false}</font> </a>
Change the "35"
__________________
- disneyana
4.0.17
Reply With Quote
  #4  
Old 01-24-2003, 06:47 PM
 
Jan Jan is offline
 

Member
  
Join Date: Nov 2002
Posts: 21
 

Default

Many thanks

Exactly what I was looking for !!
Reply With Quote
  #5  
Old 02-11-2008, 10:35 AM
 
samz724 samz724 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 84
 

Exclamation Re: Increase number of characters displayed in 'Search products' works for ADMIN too!

I was just looking to add this to the forum;

I was having the same problem on the ADMIN section of my cart. I also have many products that have similar names. When search results came up, they were truncated and I would have to go by the SKU # only.

Changing the truncated setting in this same file fixed that too.

Thank you!
__________________
Samz
--------------------------------------
Heavily modified
X-Cart Gold v4.1.10
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 05:49 AM.

   

 
X-Cart forums © 2001-2020