Html 如何在.tpl文件中隐藏列?

Html 如何在.tpl文件中隐藏列?,html,Html,我的客户不想显示第三列:SKU。我该怎么做?代码如下: {foreach from=$customization.fields item="field"} <div class="product-customization-line row"> <div class="col-sm-3 col-xs-4 label"> {**$field.label*} </div>

我的客户不想显示第三列:SKU。我该怎么做?代码如下:

{foreach from=$customization.fields item="field"}
     <div class="product-customization-line row">
            <div class="col-sm-3 col-xs-4 label">
               {**$field.label*}
            </div>
                <div class="col-sm-9 col-xs-8 value">
                    {if $field.type == 'text'}
                      {if (int)$field.id_module}

                          {$field.text nofilter}

                      {else}

                          {$field.text}

                      {/if}
                    {elseif $field.type == 'image'}
                      <img src="{$field.image.small.url}">
                    {/if}
                  </div>
            </div>
       {/foreach}
{foreach from=$customization.fields item=“field”}
{**$field.label*}
{如果$field.type=='text'}
{if(int)$field.id_module}
{$field.text nofilter}
{else}
{$field.text}
{/if}
{elseif$field.type=='image'}
{/if}
{/foreach}
这是一种我不懂的语言。

也许可以试试这个:

{foreach from=$customization.fields item=“field”}
{**$field.label*}
{如果$field.type=='text'}
{if(int)$field.id_module}
{$field.text nofilter}
{else}
{$field.text}
{/if}
{elseif$field.type=='image'}
{/if}
{/foreach}
我是这样做的:

<style>

.page-cart table tr th:nth-child(3) {
display: none;
}

.page-cart table tr td:nth-child(3) {
display: none;
}

</style>

.page购物车表tr第n个子项(3){
显示:无;
}
.page购物车表tr td:n子项(3){
显示:无;
}

欢迎来到堆栈溢出。请学习如何使用堆栈溢出,并阅读如何提高问题的质量。然后检查,看看你可以问什么问题。请将您的问题包括完整的源代码和模板。还要询问模板的原始作者如何更改模板。