5ummer5 Posted May 9, 2010 Share Posted May 9, 2010 Hi everyone,I am having a spot of trouble with the text in the Cart Block.Basically when the item is first added the text displays fine like this "Pantone..." but when I navigate to another page this text expands to "Pantone Sunglasses" the full title. When it expands it pushes down the price to the next line. How can I get the text to stay in the "Pantone..." form all of the time?Has anyone experienced this? Any solutions?Many thanks! Link to comment Share on other sites More sharing options...
vipul Posted May 10, 2010 Share Posted May 10, 2010 go module > blockcart > bloclcart.tpl and change truncate as you want it may be help u Link to comment Share on other sites More sharing options...
5ummer5 Posted May 11, 2010 Author Share Posted May 11, 2010 Hey, thanks for the reply. I did look in there but there is only one truncate bit of code and that seems to relate to the "discount.description" rather than the product description. Link to comment Share on other sites More sharing options...
vipul Posted May 12, 2010 Share Posted May 12, 2010 please show me screen shot Link to comment Share on other sites More sharing options...
5ummer5 Posted May 18, 2010 Author Share Posted May 18, 2010 Hi!Sorry for my very late reply!I have attached a screenshot of where the truncate code applies. This is in the discount section of the code and not the product description. I have tried adding the truncate command into the product section code but that has been trial and error and all i seem to get is errors!Any ideas? Thanks! Link to comment Share on other sites More sharing options...
5ummer5 Posted May 18, 2010 Author Share Posted May 18, 2010 Ok you know when you have been working on something for hours and the blindingly obvious isn't actually that obvious!Well there is no need to alter the truncate or move it to the products section!The way to do it go to module > blockcart > bloclcart.tpl and alter the LENGTH=xx in the line below! That will alter the length of the product name that is displayed in the cart block!getProductLink($product.id_product, $product.link_rewrite, $product.category)}" title="{$product.name|escape:htmlall:'UTF-8'}">{t text=$product.name length='12' encode='true'}Simple as that! Maybe it pays to take a break once and a while! %-P Thanks for your replies though! Link to comment Share on other sites More sharing options...
vipul Posted May 19, 2010 Share Posted May 19, 2010 go to theme > prestshop > shopping-product-line.tpl( simirly)here you can find des turncate please give me screenshot of where problem has Link to comment Share on other sites More sharing options...
5ummer5 Posted May 19, 2010 Author Share Posted May 19, 2010 Hi,No its ok I have solved it. Please see my response above.Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now