浏览代码

[Backend] Product : Ajout prix avec réduction liste produit

develop
Fabien Normand 1年前
父节点
当前提交
5dcbe130a3
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. +9
    -1
      Resources/views/admin/product/field/price_with_tax.html.twig

+ 9
- 1
Resources/views/admin/product/field/price_with_tax.html.twig 查看文件

@@ -1 +1,9 @@
{{ price_solver.getPriceWithTax(entity.instance)|format_price|raw }}
{% set priceWithTax = price_solver.getPriceWithTax(entity.instance)|format_price %}
{% set priceWithTaxAndReduction = price_solver.getPriceWithTaxAndReduction(entity.instance)|format_price %}

{% if priceWithTax != priceWithTaxAndReduction %}
<s>{{ priceWithTax|raw }}</s><br />
{{ priceWithTaxAndReduction|raw }}
{% else %}
{{ priceWithTaxAndReduction|raw }}
{% endif %}

正在加载...
取消
保存