Просмотр исходного кода

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

develop
Fabien Normand 1 год назад
Родитель
Сommit
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 %}

Загрузка…
Отмена
Сохранить