【问题标题】:Show in product page more data in product combination list - Prestashop 1.7在产品页面中显示产品组合列表中的更多数据 - Prestashop 1.7
【发布时间】: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


    【解决方案1】:

    如果一个产品有多个属性,这就有点复杂了,因为出现在产品页面上的不是组合,而是可以编译组合的属性。

    例如:产品页面上没有白色 XL T 恤的选择,但您可以单独选择 XL 尺码和颜色。

    你需要的是一个组合矩阵: https://mypresta.eu/modules/front-office-features/product-page-combinations-table.html

    【讨论】:

    • 感谢可能的解决方案,看来可以工作了,稍后修改模块并添加组合库存。
    猜你喜欢
    • 1970-01-01
    • 2021-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-07
    • 1970-01-01
    • 2014-08-14
    • 1970-01-01
    相关资源
    最近更新 更多