Herland Posted March 26, 2013 Share Posted March 26, 2013 (edited) I am looking forward adding the piece of code in Home Featured that allows to use a product feature. For example: {$features[5].value|escape:'htmlall':'UTF-8'} Where is that piece of code that makes this possible? Working under Prestashop 1.4.7 Best regards, Edited March 26, 2013 by Herland (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted March 26, 2013 Share Posted March 26, 2013 To make things simple, you can sdirectly add it to modules/homefeatured/homefeatured.tpl. Somewhere between line 43 and 55. To do a cleaner thing, copy that file into your theme folder/modules/homefeatured (create the structure if doesn't exist, if the file already exist edit that one) Of course, you'll need to force re-compile after the changes Link to comment Share on other sites More sharing options...
anhtu88 Posted March 26, 2013 Share Posted March 26, 2013 (edited) To make things simple, you can sdirectly add it to modules/homefeatured/homefeatured.tpl. Somewhere between line 43 and 55. To do a cleaner thing, copy that file into your theme folder/modules/homefeatured (create the structure if doesn't exist, if the file already exist edit that one) Of course, you'll need to force re-compile after the changes Voyage Mékong-Sapa tour randonnée-Voyage Laos Grande, c'est ce que je dois savoir, je vous remercie pour le partage de ce sujet. Edited May 19, 2013 by anhtu88 (see edit history) Link to comment Share on other sites More sharing options...
Herland Posted March 26, 2013 Author Share Posted March 26, 2013 Hi Nemo, it is already there, but it is not reading the value Link to comment Share on other sites More sharing options...
NemoPS Posted March 26, 2013 Share Posted March 26, 2013 You probably need to recompile (preferences->performance, turn off cache and turn on force compile. if this doesn't work go to tools/smarty/compile and clean everything but index.php Link to comment Share on other sites More sharing options...
Herland Posted March 26, 2013 Author Share Posted March 26, 2013 SOLVED. The code is used in product-list.tpl but can as well be used in Homefeatured {foreach from=$product.features item=feature name=features} {if $feature.name == 'Release Date'} {$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'} {/if} {if $feature.name == 'Studio'} {$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'} {/if} {foreachelse} Awaiting Release Details... {/foreach} http://www.prestashop.com/forums/topic/33188-solved-product%E2%80%99s-features/ 1 Link to comment Share on other sites More sharing options...
ricardoferreira.net Posted November 1, 2013 Share Posted November 1, 2013 Awsome Herland! works for me. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts