Explorar el Código

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

develop
Fabien Normand hace 1 año
padre
commit
5dcbe130a3
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  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 Ver fichero

@@ -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 %}

Cargando…
Cancelar
Guardar