Sfoglia il codice sorgente

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

develop
Fabien Normand 1 anno fa
parent
commit
5dcbe130a3
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  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 Vedi File

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

Loading…
Annulla
Salva