Rajastones Posted February 7, 2012 Share Posted February 7, 2012 Hello, I am using Prestashop 1.3. I have many products but just can't get the product names to appear on the line. For example: http://www.rajastones.co.uk/5-Lighting It just shows: Two Teak Sandstone . . . I wish not to have the full stops, showing that it has been shortend. Any help would be appreciated. Thanks Raja Link to comment Share on other sites More sharing options...
tdr170 Posted February 7, 2012 Share Posted February 7, 2012 Find the file style.css and look for the section labeled UL#products list LI H3 A and change the width to 200. 1 Link to comment Share on other sites More sharing options...
Nuvish Posted February 8, 2012 Share Posted February 8, 2012 Hello. {$product.name|truncate:30:'...'|escape:'htmlall':'UTF-8'} This line means that the products name will be truncated after 30 characters(or maybe less,i forgot). Also "..." will be concatenated to it. Find your tpl file and find the line that displays the products name and remove the truncate part. Hope this helps. Edit : the .tpl file is product-list.tpl. 1 Link to comment Share on other sites More sharing options...
tdr170 Posted February 8, 2012 Share Posted February 8, 2012 My post as how to fix your issue was done using my Developer tool and works. 1 Link to comment Share on other sites More sharing options...
Rajastones Posted February 10, 2012 Author Share Posted February 10, 2012 Hello, Thanks for the advice. I have looked at this: {$product.name|truncate:30:'...'|escape:'htmlall':'UTF-8'} But I could not find it. All I could find was: <p class="product_desc"> <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessoryLink'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?> " title="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessory']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?> " class="product_image"><img src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['accessory']['link_rewrite'],$this->_tpl_vars['accessory']['id_image'],'medium'); ?> " alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessory']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?> " /></a> <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessoryLink'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?> " title="<?php echo smartyTranslate(array('s' => 'More'), $this);?> " class="product_description"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['accessory']['description_short'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 100, '...') : smarty_modifier_truncate($_tmp, 100, '...')); ?> </a> In short I do not know what I am to change, as the example above is different from what I have put here. I do not understand "tmp, 100", it is not something that I can see that I should change in the example above. Any advice would be appreciate. Thanks Raja Stones Link to comment Share on other sites More sharing options...
tdr170 Posted February 11, 2012 Share Posted February 11, 2012 Just follow my post is easy and will work. can be made widder in the furure if needed. 1 Link to comment Share on other sites More sharing options...
Rajastones Posted February 22, 2012 Author Share Posted February 22, 2012 Thank you for your help tdr170. I have increased the number to 200 and 250, but it has worked on some pages but not on others. I have a full title on the Pergolas, but not on the Planters. In response to Martin, I have looked at the product-list.tpl file but not follow your advice, hence the copy of code in the post. If I do find it what do I remove exactly in the code. Thanks Martyn. Your help is appreciated tdr170 & Martyn. Link to comment Share on other sites More sharing options...
Nuvish Posted February 26, 2012 Share Posted February 26, 2012 Try this. Open folder themes/theme028/product-list.tpl Search for " $product.name " everywhere in the file and remove the truncate part everywhere. 2 Link to comment Share on other sites More sharing options...
Nuvish Posted February 28, 2012 Share Posted February 28, 2012 If this worked,mark this post as solved. But i cannot see any product names on your web-site : http://www.rajastones.co.uk/5-Lighting Edit : The names appear for the english language,its good. Link to comment Share on other sites More sharing options...
DGP_Maluco Posted July 30, 2012 Share Posted July 30, 2012 (edited) Changing the truncate number on products-list.tpl worked! Thanks Edited July 30, 2012 by DGP_Maluco (see edit history) Link to comment Share on other sites More sharing options...
neenusudhi Posted February 25, 2015 Share Posted February 25, 2015 how to include slider while customizing a theme inprestashop??i have include the slider.but its did not slided,it only shows the images.could you please fix the problem?? 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