rbacchi Posted May 3, 2016 Share Posted May 3, 2016 Hey guys. Does anyone have an idea how I can achieve to show the title in product-list always on 3 lines? The titles are like this: Bringer 5" - Color - 4 Stk. I need it like this Bringer 5" Color 4 Stk. for me it is kinda tricky... i tried to use but that is not allowed, as is <br> Thx for your help Link to comment Share on other sites More sharing options...
rbacchi Posted May 3, 2016 Author Share Posted May 3, 2016 Never mind, found the solution by myself. Your product name should be set like: My product - new line If you want this hack in product list: https://github.com/P...t-list.tpl#L118 {$product.name|replace:' - ':'<br/>'} You could also add the |truncate:45 if you want to limit the characters, but don't add the escape parameter. In product page: https://github.com/P...roduct.tpl#L158 If you want the product name split on new line use the code from vekia: {$product->name|replace:' - ':'<br/>'} Otherwise if you only want to display the name of the product without the ' - ' and no new line use: {$product->name|replace:' - ':' '} 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