<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SyliusShop/Product/Show/_addToCart.html.twig */
class __TwigTemplate_2832c8c40aee77ff4760486539a065be46a3fca30fbfe270b3da0124ccdc80ef extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/Show/_addToCart.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/Show/_addToCart.html.twig"));
// line 1
$macros["icons"] = $this->macros["icons"] = $this->loadTemplate("@SyliusShop/Common/Macro/icons.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
$context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_article", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 3, $this->source); })()), "channel", [], "any", false, false, false, 3), "code", [], "any", false, false, false, 3));
// line 4
echo "
";
// line 5
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 5)->unwrap();
// line 6
echo "
";
// line 7
$context["product"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 7, $this->source); })()), "variant", [], "any", false, false, false, 7), "product", [], "any", false, false, false, 7);
// line 8
echo "
";
// line 9
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 9, $this->source); })()), [0 => "@SyliusShop/Form/theme.html.twig"], true);
// line 10
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 10, $this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_ajax_cart_add_item", ["productId" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 10, $this->source); })()), "id", [], "any", false, false, false, 10)]), "attr" => ["id" => "sylius-product-adding-to-cart", "data-js-add-to-cart" => "form", "class" => "loadable", "novalidate" => "novalidate", "data-redirect" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, (isset($context["configuration"]) || array_key_exists("configuration", $context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.', 10, $this->source); })()), "getRedirectRoute", [0 => "summary"], "method", false, false, false, 10))]]);
echo "
";
// line 12
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 12, $this->source); })()), 'errors');
echo "
<div class=\"\" id=\"sylius-product-selecting-variant\" ";
// line 13
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-selecting-variant");
echo ">
";
// line 14
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.before_add_to_cart", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 14, $this->source); })()), "order_item" => (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 14, $this->source); })())]);
echo "
<div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\" id=\"sylius-cart-validation-error\" ";
// line 15
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-validation-error");
echo "></div>
<div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4 empty-hide\">";
// line 16
if ( !twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 16, $this->source); })()), "simple", [], "any", false, false, false, 16)) {
// line 17
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 17, $this->source); })()), "variantSelectionMethodChoice", [], "any", false, false, false, 17)) {
// line 18
echo " <div class=\"devis-perso\">
<div class=\"bloc-devis-perso\">
<h2 class=\"text-white text-center\">";
// line 20
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.composer_devis");
echo "</h2>
<div class=\"table-devis\">
";
// line 22
$this->loadTemplate("@SyliusShop/Product/Show/_variants.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 22)->display($context);
// line 23
echo " </div>
</div>
</div>
";
} else {
// line 27
echo " <div class=\"devis-perso\">
<div class=\"bloc-devis-perso\">
<h2 class=\"text-white text-center\">";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.caracteristiques"), "html", null, true);
echo "</h2>
<div class=\"table-devis\">
";
// line 31
$this->loadTemplate("@SyliusShop/Product/Show/_configurator.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 31)->display($context);
// line 32
echo " </div>
</div>
</div>
";
}
// line 36
echo " ";
}
echo "</div>
</div>
<div class=\"pt-2 etat-article\">
";
// line 40
$context["missingFrancoPort"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
// line 41
echo " ";
if ((isset($context["missingFrancoPort"]) || array_key_exists("missingFrancoPort", $context) ? $context["missingFrancoPort"] : (function () { throw new RuntimeError('Variable "missingFrancoPort" does not exist.', 41, $this->source); })())) {
// line 42
echo " <div class=\"color-blue-s font-seize pb-2 \">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.more_than"), "html", null, true);
echo " <strong>";
echo twig_call_macro($macros["money"], "macro_convertAndFormat", [(isset($context["missingFrancoPort"]) || array_key_exists("missingFrancoPort", $context) ? $context["missingFrancoPort"] : (function () { throw new RuntimeError('Variable "missingFrancoPort" does not exist.', 42, $this->source); })())], 42, $context, $this->getSourceContext());
echo "</strong> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.to_benefit_the_free_delivery"), "html", null, true);
echo "</div>
";
}
// line 44
echo " <div id=\"enStock\" class=\"color-green-s font-seize ";
if ( !$this->env->getFunction('sylius_inventory_is_available')->getCallable()(twig_get_attribute($this->env, $this->source, (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 44, $this->source); })()), "variant", [], "any", false, false, false, 44))) {
echo " d-none ";
}
echo "\"><span class=\"bull-stock\"></span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.en_stock"), "html", null, true);
echo "</div>
<div id=\"horsStock\" class=\"color-red font-seiz";
// line 45
if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()(twig_get_attribute($this->env, $this->source, (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 45, $this->source); })()), "variant", [], "any", false, false, false, 45))) {
echo " d-none ";
}
echo "\"><i class=\"icon-cancel\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.en_rupture"), "html", null, true);
echo "</div>
</div>
<div class=\"py-3 row no-gutters align-items-center\">
<div class=\"col-auto\">
<div class=\"art-qte d-flex no-gutters sofiaregular-14 align-items-center\">
<label class=\"col-auto mb-0 font-seize\">";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.quantity"), "html", null, true);
echo " :</label>
<div class=\"contenu-qte-art qte-article-fiche col\">
<div class=\"qte-panier sylius-quantity site-p-quantity\">
<a role=\"button\" class=\"qte-moins qte-moins-art\" title=\"";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.qty_minus"), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/f_select.svg"), "html", null, true);
echo "\" class=\"d-block\" alt=\"-\"></a>
";
// line 57
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 57, $this->source); })()), "cartItem", [], "any", false, false, false, 57), "quantity", [], "any", false, false, false, 57), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("quantity"));
echo "
<a role=\"button\" class=\"qte-plus qte-plus-art\" title=\"";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.qty_plus"), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/f_select2.svg"), "html", null, true);
echo "\" class=\"d-block\" alt=\"+\"></a>
";
// line 59
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.add_to_cart_form", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 59, $this->source); })()), "order_item" => (isset($context["order_item"]) || array_key_exists("order_item", $context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.', 59, $this->source); })())]);
echo "
</div>
</div>
</div>
</div>
</div>
<div class=\"box-shadow-s px-4 pb-4 article-recap mb-md-0 mb-4 mt-3\">
<ul class=\"list-group list-group-flush px-0 pt-4 font-seize font-weight-medium \">
";
// line 70
$this->loadTemplate("@SyliusShop/Product/Show/_priceWidget.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 70)->display($context);
// line 71
echo " </ul>
";
// line 72
$context["variant"] = $this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 72, $this->source); })()));
// line 73
echo " ";
$context["channelpricing"] = twig_get_attribute($this->env, $this->source, (isset($context["variant"]) || array_key_exists("variant", $context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.', 73, $this->source); })()), "getChannelPricingForChannel", [0 => twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 73, $this->source); })()), "channel", [], "any", false, false, false, 73)], "method", false, false, false, 73);
// line 74
echo " ";
$context["almaPrice"] = ($this->extensions['App\Twig\Extensions\Tax\TaxExtension']->getPriceTTCFromVariant($this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 74, $this->source); })())), $this->env->getFilter('sylius_calculate_price')->getCallable()($this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 74, $this->source); })())), ["channel" => twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 74, $this->source); })()), "channel", [], "any", false, false, false, 74)]), false) / 4);
// line 75
echo " ";
if ((isset($context["almaPrice"]) || array_key_exists("almaPrice", $context) ? $context["almaPrice"] : (function () { throw new RuntimeError('Variable "almaPrice" does not exist.', 75, $this->source); })())) {
// line 76
echo " <div class=\"alma-bloc py-2 alma-configurator alma-black prix-total-project-label alma-fixed\">
<div class=\"d-flex align-items-center justify-content-between font-seize\">
<div class=\"d-flex fois-alma-article align-items-center pt-1\">";
// line 78
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.alma.pay");
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/alma2.svg"), "html", null, true);
echo "\" alt=\"\" class=\"ml-2\"/></div>
<div id=\"prix-total-project-alma-fixed\">4x <span>";
// line 79
echo twig_call_macro($macros["money"], "macro_convertAndFormat", [(isset($context["almaPrice"]) || array_key_exists("almaPrice", $context) ? $context["almaPrice"] : (function () { throw new RuntimeError('Variable "almaPrice" does not exist.', 79, $this->source); })())], 79, $context, $this->getSourceContext());
echo "</span></div>
</div>
</div>
";
}
// line 83
echo " <div class=\"btn-panier-content pt-3 mb-md-0 \">
<button type=\"submit\" class=\"btn-panier btn-add-panier bg-gradient-hover bg-gradient-orange\" ";
// line 84
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("add-to-cart-button");
echo "> <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.add_to_cart"), "html", null, true);
echo "</span></button>
</div>
</div>
";
// line 88
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 88, $this->source); })()), "_token", [], "any", false, false, false, 88), 'row');
echo "
";
// line 89
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 89, $this->source); })()), 'form_end', ["render_rest" => false]);
echo "
";
// line 91
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 91, $this->source); })()), "variants", [], "any", false, false, false, 91), "first", [], "any", false, false, false, 91), "onHand", [], "any", false, false, false, 91) < 1) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 91, $this->source); })()), "variants", [], "any", false, false, false, 91), "first", [], "any", false, false, false, 91), "tracked", [], "any", false, false, false, 91))) {
// line 92
echo " <div id=\"availability-notifier\">
";
} else {
// line 94
echo " <div class=\"d-none\" id=\"availability-notifier\">
";
}
// line 96
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_partial_availability_notifier_create", ["productVariantId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 96, $this->source); })()), "variants", [], "any", false, false, false, 96), "first", [], "any", false, false, false, 96), "id", [], "any", false, false, false, 96), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
echo "
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/Show/_addToCart.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 272 => 96, 268 => 94, 264 => 92, 262 => 91, 257 => 89, 253 => 88, 244 => 84, 241 => 83, 234 => 79, 228 => 78, 224 => 76, 221 => 75, 218 => 74, 215 => 73, 213 => 72, 210 => 71, 208 => 70, 194 => 59, 188 => 58, 184 => 57, 178 => 56, 172 => 53, 157 => 45, 148 => 44, 138 => 42, 135 => 41, 133 => 40, 125 => 36, 119 => 32, 117 => 31, 112 => 29, 108 => 27, 102 => 23, 100 => 22, 95 => 20, 91 => 18, 88 => 17, 86 => 16, 82 => 15, 78 => 14, 74 => 13, 70 => 12, 65 => 10, 63 => 9, 60 => 8, 58 => 7, 55 => 6, 53 => 5, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import \"@SyliusShop/Common/Macro/icons.html.twig\" as icons %}
{% set block = app_get_blocks('texteperso_article', sylius.channel.code ) %}
{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{% set product = order_item.variant.product %}
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
{{ form_start(form, {'action': path('sylius_shop_ajax_cart_add_item', {'productId': product.id}), 'attr': {'id': 'sylius-product-adding-to-cart', 'data-js-add-to-cart': 'form', 'class': 'loadable', 'novalidate': 'novalidate', 'data-redirect': path(configuration.getRedirectRoute('summary'))}}) }}
{{ form_errors(form) }}
<div class=\"\" id=\"sylius-product-selecting-variant\" {{ sylius_test_html_attribute('product-selecting-variant') }}>
{{ sylius_template_event('sylius.shop.product.show.before_add_to_cart', {'product': product, 'order_item': order_item}) }}
<div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\" id=\"sylius-cart-validation-error\" {{ sylius_test_html_attribute('cart-validation-error') }}></div>
<div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4 empty-hide\">{% if not product.simple %}
{% if product.variantSelectionMethodChoice %}
<div class=\"devis-perso\">
<div class=\"bloc-devis-perso\">
<h2 class=\"text-white text-center\">{{ 'app.product.composer_devis'|trans|raw }}</h2>
<div class=\"table-devis\">
{% include '@SyliusShop/Product/Show/_variants.html.twig' %}
</div>
</div>
</div>
{% else %}
<div class=\"devis-perso\">
<div class=\"bloc-devis-perso\">
<h2 class=\"text-white text-center\">{{ 'app.product.caracteristiques' |trans }}</h2>
<div class=\"table-devis\">
{% include '@SyliusShop/Product/Show/_configurator.html.twig' %}
</div>
</div>
</div>
{% endif %}
{% endif %}</div>
</div>
<div class=\"pt-2 etat-article\">
{% set missingFrancoPort = app_get_missing_franco_port() %}
{% if missingFrancoPort %}
<div class=\"color-blue-s font-seize pb-2 \">{{'app.product.more_than'|trans}} <strong>{{ money.convertAndFormat(missingFrancoPort) }}</strong> {{'app.product.to_benefit_the_free_delivery'|trans}}</div>
{% endif %}
<div id=\"enStock\" class=\"color-green-s font-seize {% if not sylius_inventory_is_available(order_item.variant) %} d-none {% endif %}\"><span class=\"bull-stock\"></span>{{ 'app.product.en_stock' | trans }}</div>
<div id=\"horsStock\" class=\"color-red font-seiz{% if sylius_inventory_is_available(order_item.variant) %} d-none {% endif %}\"><i class=\"icon-cancel\"></i> {{ 'app.product.en_rupture' | trans }}</div>
</div>
<div class=\"py-3 row no-gutters align-items-center\">
<div class=\"col-auto\">
<div class=\"art-qte d-flex no-gutters sofiaregular-14 align-items-center\">
<label class=\"col-auto mb-0 font-seize\">{{ 'sylius.ui.quantity' |trans }} :</label>
<div class=\"contenu-qte-art qte-article-fiche col\">
<div class=\"qte-panier sylius-quantity site-p-quantity\">
<a role=\"button\" class=\"qte-moins qte-moins-art\" title=\"{{'app.common.qty_minus'|trans}}\"><img src=\"{{asset('images/f_select.svg')}}\" class=\"d-block\" alt=\"-\"></a>
{{ form_row(form.cartItem.quantity, sylius_test_form_attribute('quantity')) }}
<a role=\"button\" class=\"qte-plus qte-plus-art\" title=\"{{'app.common.qty_plus'|trans}}\"><img src=\"{{asset('images/f_select2.svg')}}\" class=\"d-block\" alt=\"+\"></a>
{{ sylius_template_event('sylius.shop.product.show.add_to_cart_form', {'product': product, 'order_item': order_item}) }}
</div>
</div>
</div>
</div>
</div>
<div class=\"box-shadow-s px-4 pb-4 article-recap mb-md-0 mb-4 mt-3\">
<ul class=\"list-group list-group-flush px-0 pt-4 font-seize font-weight-medium \">
{% include '@SyliusShop/Product/Show/_priceWidget.html.twig' %}
</ul>
{% set variant = product|sylius_resolve_variant %}
{% set channelpricing = variant.getChannelPricingForChannel(sylius.channel) %}
{% set almaPrice = (app_get_price_ttc_from_variant(product|sylius_resolve_variant, product|sylius_resolve_variant|sylius_calculate_price({'channel': sylius.channel}), false)) / 4 %}
{% if almaPrice %}
<div class=\"alma-bloc py-2 alma-configurator alma-black prix-total-project-label alma-fixed\">
<div class=\"d-flex align-items-center justify-content-between font-seize\">
<div class=\"d-flex fois-alma-article align-items-center pt-1\">{{'app.alma.pay'|trans|raw }} <img src=\"{{asset('images/alma2.svg')}}\" alt=\"\" class=\"ml-2\"/></div>
<div id=\"prix-total-project-alma-fixed\">4x <span>{{ money.convertAndFormat(almaPrice) }}</span></div>
</div>
</div>
{% endif %}
<div class=\"btn-panier-content pt-3 mb-md-0 \">
<button type=\"submit\" class=\"btn-panier btn-add-panier bg-gradient-hover bg-gradient-orange\" {{ sylius_test_html_attribute('add-to-cart-button') }}> <span>{{ 'sylius.ui.add_to_cart' |trans }}</span></button>
</div>
</div>
{{ form_row(form._token) }}
{{ form_end(form, {'render_rest': false}) }}
{% if product.variants.first.onHand < 1 and product.variants.first.tracked %}
<div id=\"availability-notifier\">
{% else %}
<div class=\"d-none\" id=\"availability-notifier\">
{% endif %}
{{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
</div>
</div>
", "@SyliusShop/Product/Show/_addToCart.html.twig", "/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig");
}
}