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)
-   -   Adjusting the number of characters shown in Bestsellers (https://forum.x-cart.com/showthread.php?t=32448)

Madhatterr 07-10-2007 09:00 AM

Adjusting the number of characters shown in Bestsellers
 
Just wondering,

Does anyone know if there is there a way to limit the number of characters shown bestselling item area of my front page so the links don't word wrap?

Thanks for your help in advance. :mrgreen:

chamberinternet 07-10-2007 12:18 PM

Re: Adjusting the number of characters shown in Bestsellers
 
Yes, you can use smarty's 'truncate' modifier ...

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

Some examples there to show you how it works.

Hope this helps.

Shafiq :sK

Madhatterr 07-12-2007 07:24 AM

Re: Adjusting the number of characters shown in Bestsellers
 
I was pretty nervous to mess with smarty stuff but truth be told that was pretty easy. I just went into the modules/Bestsellers/ and open the menu.tpl which was there... added the text off the page you suggested (adjusted to my liking) and BOOM... instant fix.

Thanks for the point in the right direction. :D/


All times are GMT -8. The time now is 03:50 AM.

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