ornusweb Posted October 9, 2013 Share Posted October 9, 2013 (edited) hello, My shop is setup on Prestashop version 1.5.4.1. I am trying to display the feature and values in the product listing page. I have till now tried this: added the below code to the product-list.tpl {if isset($features) && $features} {foreach from=$features item=feature} {if isset($feature.value)} <span>{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}</span> {/if} {/foreach} {/if} within the <div class="content_price"> However it doesn't work! After reading similar topics I believe that this should work. I checked the product.php class file and found that in the getProductProperties the below line of code is already present, which should allow me to make the above hack in product-list.tpl. $row['features'] = Product::getFrontFeaturesStatic((int)$id_lang, $row['id_product']); Any help would be appreciated by this noob! Edited October 9, 2013 by ornusweb (see edit history) Link to comment Share on other sites More sharing options...
popand Posted January 10, 2014 Share Posted January 10, 2014 Hi - Have you been able to figure out why the features were not available? I have a similar problem on the productcomment module, where I'm trying to make the features available and have not had any luck. Thanks Link to comment Share on other sites More sharing options...
ornusweb Posted February 3, 2014 Author Share Posted February 3, 2014 Nope haven't found a way yet! 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