X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Increase number of characters displayed in 'Search products' (https://forum.x-cart.com/showthread.php?t=1042)

Jan 12-26-2002 09:14 AM

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 ?

B00MER 01-15-2003 05:19 PM

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

:wink:

disneyana 01-16-2003 04:16 AM

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"

Jan 01-24-2003 06:47 PM

Many thanks :)

Exactly what I was looking for !!

samz724 02-11-2008 10:35 AM

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! :mrgreen:


All times are GMT -8. The time now is 05:40 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.