sooly Posted March 7, 2018 Share Posted March 7, 2018 I have a question about Prestashop 1.7.3.0 smarty. I would like to display a product features in product description but I dont know which smarty should I use in new prestashop. In version 1.6 it was this code: {foreach from=$features item=feature} {if $feature.id_feature = 1} <tr> <td>{$feature.value|escape:'htmlall':'UTF-8'}</td> <td>{$feature.id|escape:'htmlall':'UTF-8'}</td> </tr> {/if} {/foreach} Does anyone know right solution for Prestashop 1.7? Thank you! Link to comment Share on other sites More sharing options...
v-alex Posted January 15, 2020 Share Posted January 15, 2020 Hi! I have a same problem but I want to show the features of the shop in a dropwdown list but I don't find how.. What is the global smarty variable for get all the features? Link to comment Share on other sites More sharing options...
MarlexLadag Posted January 16, 2020 Share Posted January 16, 2020 On 3/7/2018 at 6:20 PM, sooly said: I have a question about Prestashop 1.7.3.0 smarty. I would like to display a product features in product description but I dont know which smarty should I use in new prestashop. In version 1.6 it was this code: {foreach from=$features item=feature} {if $feature.id_feature = 1} <tr> <td>{$feature.value|escape:'htmlall':'UTF-8'}</td> <td>{$feature.id|escape:'htmlall':'UTF-8'}</td> </tr> {/if} {/foreach} Does anyone know right solution for Prestashop 1.7? Thank you! you can found it in themes/classic/templates/catalog/_partials/product-details.tpl Link to comment Share on other sites More sharing options...
MarlexLadag Posted January 16, 2020 Share Posted January 16, 2020 11 hours ago, v-alex said: Hi! I have a same problem but I want to show the features of the shop in a dropwdown list but I don't find how.. What is the global smarty variable for get all the features? you can just change the display to select tag instead of table. 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