drroot Posted March 17, 2012 Share Posted March 17, 2012 I want to have the product title and image only, and don't want to display the "Short description" in the "Featured products block". Any way to configure this? I am using prestashop 1.4.7.0 Link to comment Share on other sites More sharing options...
hxd Posted March 17, 2012 Share Posted March 17, 2012 You can do that by commenting out some code in the template file of the module. If, for example, your PrestaShop is installed in a folder called prestashop directly in the public_html directory on your hosting account, the path to the file would be public_html/prestashop/modules/homefeatured/homefeatured.tpl. Find the following code in that file and comment it out: <div class="product_desc"> <a href="{$product.link}" title="{l s='More' mod='homefeatured'}"> {$product.description_short|strip_tags|truncate:130:'...'}</a></div> You can comment it out by putting an exclamation mark and two hyphens after the first bracket (e.g. <!--div class) and two hyphens before the last bracket for that string of code (e.g. div-->). When you make changes to template files you should also enable the Force compile option from the back office of your store (Preferences tab>Performance sub-tab>Force compile set to Yes). In this way you'll be able to see the changes when you refresh the frontend of the site. When you're done with the changes to the template file, disable the force compile. Hope this helps. 1 Link to comment Share on other sites More sharing options...
drroot Posted March 17, 2012 Author Share Posted March 17, 2012 Nice. Thanks a lot, hxd. You can do that by commenting out some code in the template file of the module. If, for example, your PrestaShop is installed in a folder called prestashop directly in the public_html directory on your hosting account, the path to the file would be public_html/prestashop/modules/homefeatured/homefeatured.tpl. Find the following code in that file and comment it out: <div class="product_desc"> <a href="{$product.link}" title="{l s='More' mod='homefeatured'}"> {$product.description_short|strip_tags|truncate:130:'...'}</a></div> You can comment it out by putting an exclamation mark and two hyphens after the first bracket (e.g. <!--div class) and two hyphens before the last bracket for that string of code (e.g. div-->). When you make changes to template files you should also enable the Force compile option from the back office of your store (Preferences tab>Performance sub-tab>Force compile set to Yes). In this way you'll be able to see the changes when you refresh the frontend of the site. When you're done with the changes to the template file, disable the force compile. Hope this helps. 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