Following on from the AUG guide on how to limit the number of words in a product description can you limit the number of letters returned in the ProductName on the best sellers list using PHP?
Simply look at the AUG code and as it is replacing the description variable and code, change that to the product title one in all occurences and it should do it just the same.... But the php code is for words and not number of characters, although someone should be able to work out a character version...
Now it works if you simply type in some basic text into $sOriginal but as soon as you use the ProductName variable it returns a Parse Error. Any ideas anyone?
Changing the numbers '10' to however many characters you want to display. I would imagine it can be used to control the character display in almost any layout you want.
Comment