Jump to content

Hide some feature in Data Sheet


Recommended Posts

Hello

I've search all along this day the answer of my question ... I've tried many of soltutions that i found but nothing seems to be working ... so i hope someone could help me ...

It's simple ... I would like to hide on the front office only some features, I've tried to modified my product.tpl but nothing is OK .

My version of prestashop is 1.6.0.9 and I think the code I must change is :

{if isset($features) && $features}
            <!-- Data sheet -->
            <section class="page-product-box">
                <h3 class="page-product-heading">{l s='Data sheet'}</h3>
                <table class="table-data-sheet">
                    {foreach from=$features item=feature}
                        <tr class="{cycle values="odd,even"}">
                        {if isset($feature.value)}
                        <td>{$feature.name|escape:'html':'UTF-8'}</td>
                        <td>{$feature.value|escape:'html':'UTF-8'}</td>
                        {/if}
                    </tr>
                    {/foreach}
                </table>
            </section>
            <!--end Data sheet -->
        {/if}

Someone could help me please ... I would like to display only four features : ID 51,52,53 and 54...

Thanks for your help!!

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