【发布时间】:2021-12-10 20:42:10
【问题描述】:
我有一个 Prestashop 1.7.5,我需要在产品页面中显示每个组合中的一些额外数据,但无需点击查看。
我需要查看以下数据:
- 组合参考
- 组合股票
- 组合库存位置
我使用 Warehouse 模板,我必须将其添加到文件 \themes\warehouse\templates\catalog_partials\product-variants.tpl 中,在以下 foreach 中:
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<li class="input-container float-left">
<input class="input-radio" type="radio" data-product-attribute="{$id_attribute_group}"
name="group[{$id_attribute_group}]"
value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}>
<span class="radio-label">{$group_attribute.name}</span>
</li>
{/foreach}
有人知道我该怎么做吗?
【问题讨论】:
标签: attributes prestashop combinations product smarty