alfredadler Posted October 26, 2022 Share Posted October 26, 2022 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 More sharing options...
JBW Posted October 26, 2022 Share Posted October 26, 2022 2 hours ago, alfredadler said: code to display in the description does not work. So how does your code look like? Link to comment Share on other sites More sharing options...
alfredadler Posted October 26, 2022 Author Share Posted October 26, 2022 In product-brand.tpl works this code: {foreach from=$product.grouped_features item=feature} {if $feature.id_feature == 22} {$feature.value|escape:'htmlall'|nl2br nofilter} {/if} {/foreach} Link to comment Share on other sites More sharing options...
Knowband Plugins Posted October 27, 2022 Share Posted October 27, 2022 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 More sharing options...
alfredadler Posted January 16, 2023 Author Share Posted January 16, 2023 thank you so much! 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