Jump to content

Getting product features into description as smarty - Prestashop 1.7


sooly

Recommended Posts

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

  • 1 year later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...