markovo Posted September 23, 2021 Share Posted September 23, 2021 (edited) Hello! I want to hide the "Data sheet" tab (where the product features are displayed) when there are no features selected. Here is the code from my template: {block name='product_features'} {if $product.grouped_features} <section class="product-features"> <dl class="data-sheet"> {foreach from=$product.grouped_features item=feature} <dt class="name">{$feature.name}</dt> <dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd> {/foreach} </dl> </section> {/if} {/block} What should I add to this code, so the "Data sheet" tab is hidden when there is no features selected for the product. Edited September 23, 2021 by markovo Spelling mistake (see edit history) Link to comment Share on other sites More sharing options...
markovo Posted September 23, 2021 Author Share Posted September 23, 2021 Never mind, I did it. 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