【问题标题】:The formula for a function of output prices产出价格函数的公式
【发布时间】:2020-04-29 20:09:56
【问题描述】:

此功能在前面显示价格。

{$product.price_amount}">{$product.price}

如何向此函数添加一个公式,以允许我以折扣方式输出结果?

例如当前显示的金额是1000美元

显示金额时必须扣除此价格的7%的折扣。

并显示 930 $

【问题讨论】:

    标签: prestashop product discount


    【解决方案1】:

    在模板级别,这不是定义价格计算逻辑的最佳方式。

    而是从 Prestashop Admin 创建目录价格规则。

    http://doc.prestashop.com/display/PS17/Catalog+Price+Rules

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多