Jump to content

Display product features in producto long description


alfredadler

Recommended Posts

Hello,

In Prestashop 1.7.8 I would like to differentiate the product features into two groups, one of them stop showing it in the features table and show it in the long description block.

I have managed to display features under the product name but the code to display in the description does not work.

Link to comment
Share on other sites

Kindly check the following file : themes/{Your-theme}/templates/catalog/product.tpl

<div class="tab-pane fade in{if $product.description} active js-product-tab-active{/if}" id="description" role="tabpanel">
     {block name='product_description'}
          <div class="product-description">{$product.description nofilter}</div>
     {/block}
</div>

Use the below code inside the above code

<p class="h6">{l s='Data sheet' d='Shop.Theme.Catalog'}</p>
        <dl class="data-sheet">
          {foreach from=$product.grouped_features item=feature}

           {if $feature.id_feature eq 22}
            <dt class="name">{$feature.name}</dt>
            <dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>

            {/if}
          {/foreach}
        </dl>

 

Link to comment
Share on other sites

  • 2 months later...

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...