{% extends 'base_admin.html.twig' %} {% block title %}Modifier l’option{% endblock %} {% block body %}

Modifier l’option {{ option.label }}

{{ form_start(form, { attr: { class: 'grid grid-2 gap-4' } }) }} {{ form_row(form.label) }} {{ form_row(form.price) }} {{ form_row(form.quantity) }} {{ form_row(form.enabled) }} {{ form_row(form.substitutePrice) }} {{ form_row(form.substituteTotalPrice) }}
Annuler
{{ form_end(form) }} {% if product.price and form.price.vars.value and form.quantity.vars.value %} {% set fullPrice = product.price * form.quantity.vars.value %} {% set savings = fullPrice - form.price.vars.value %} {% if savings > 0 %}

💡 Le prix normal pour {{ form.quantity.vars.value }} x {{ product.title|lower }} est de {{ fullPrice|number_format(2, ',', ' ') }} €. Avec ce pack, l’utilisateur économise {{ savings|number_format(2, ',', ' ') }} €.

{% endif %} {% endif %} {% if product.price and form.price.vars.value and form.quantity.vars.value %} {% set fullPrice = product.price * form.quantity.vars.value %} {% set savings = fullPrice - form.price.vars.value %} {% if savings > 0 %}

💡 Le prix normal pour {{ form.quantity.vars.value }} x {{ product.title|lower }} est de {{ fullPrice|number_format(2, ',', ' ') }} €. Avec ce pack, l’utilisateur économise {{ savings|number_format(2, ',', ' ') }} €.

{% endif %} {% endif %} {% endblock %}