robchef Posted September 4, 2012 Share Posted September 4, 2012 (edited) help please how do you hide short product discription on the page were all your products are list but i still want a short product description when they click on your product and it loads up on your product page any help please Edited September 6, 2012 by robchef (see edit history) Link to comment Share on other sites More sharing options...
hxd Posted September 6, 2012 Share Posted September 6, 2012 You can do this by modifying the product-list.tpl file. You can find the file in the folder of your theme. For example, if you're using the default prestashop theme and your PrestaShop is installed directly in the public_html directory on your account, the path would be public_html/themes/prestashop/product-list.tpl. Comment out or delete the following code: <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'}</a></p> To comment it out just put an exclamation mark and two hyphens after the first bracket (e.g. <!--p), and two hyphens before the last bracket (e.g. p-->). Don't forget that when you edit template files you have to enable the Force Compile option from the back office (Preferences tab>Performance sub-tab) so that you can see the changes on the frontend. Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts