<?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_5ceaed6c4a33d9d4a7f4191eb655cb16 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/Show/_addToCart.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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
$macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusShop/Common/Macro/messages.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 2)->unwrap();
// line 3
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 3)->unwrap();
// line 4
echo "
";
// line 5
$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.', 5, $this->source); })()), "variant", [], "any", false, false, false, 5), "product", [], "any", false, false, false, 5);
// line 6
$context["stock_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.', 6, $this->source); })()), "variant", [], "any", false, false, false, 6), "OnHand", [], "any", false, false, false, 6) - 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.', 6, $this->source); })()), "variant", [], "any", false, false, false, 6), "OnHold", [], "any", false, false, false, 6));
// line 7
$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.', 7, $this->source); })()), [0 => "@SyliusShop/Form/theme.html.twig"], true);
// line 8
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.', 8, $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.', 8, $this->source); })()), "id", [], "any", false, false, false, 8)]), "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.', 8, $this->source); })()), "getRedirectRoute", [0 => "summary"], "method", false, false, false, 8))]]);
echo "
";
// line 9
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.', 9, $this->source); })()), 'errors');
echo "
<div class=\"\" id=\"sylius-product-selecting-variant\" ";
// line 10
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-selecting-variant");
echo ">
";
// line 11
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.', 11, $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.', 11, $this->source); })())]);
echo "
<div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\" id=\"sylius-cart-validation-error\" ";
// line 12
echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-validation-error");
echo "></div>
<div class=\"pt-md-4 pt-3 pb-2 font-16 \">
<div id=\"enStock\" class=\"color-primary-s font-weight-bold ";
// line 15
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.', 15, $this->source); })()), "variant", [], "any", false, false, false, 15))) {
echo " d-none ";
}
echo "\">";
echo twig_escape_filter($this->env, (isset($context["stock_product"]) || array_key_exists("stock_product", $context) ? $context["stock_product"] : (function () { throw new RuntimeError('Variable "stock_product" does not exist.', 15, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.in_stock"), "html", null, true);
echo "</div>
<div id=\"horsStock\" class=\"font-weight-bold text-danger ";
// line 16
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.', 16, $this->source); })()), "variant", [], "any", false, false, false, 16))) {
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.out_of_stock"), "html", null, true);
echo "</div>
<span id=\"restockingDate\" class=\"text-danger font-weight-bold ";
// line 17
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.', 17, $this->source); })()), "variant", [], "any", false, false, false, 17))) {
echo " d-none ";
}
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.the_product_will_be_available_on"), "html", null, true);
echo " <span id=\"restockingDateValue\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 17, $this->source); })()), "variant", [], "any", false, false, false, 17), "restockingDate", [], "any", false, false, false, 17), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.restocking_date_format")), "html", null, true);
echo "</span></span>
";
// line 18
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 19
echo " ";
$context["missingFrancoPortHT"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
// line 20
echo " ";
if ((isset($context["missingFrancoPortHT"]) || array_key_exists("missingFrancoPortHT", $context) ? $context["missingFrancoPortHT"] : (function () { throw new RuntimeError('Variable "missingFrancoPortHT" does not exist.', 20, $this->source); })())) {
// line 21
echo " ";
// line 22
echo " <div class=\"font-weight-bold\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.more_than"), "html", null, true);
echo " <span class=\"color-primary-s\">";
echo twig_call_macro($macros["money"], "macro_convertAndFormat", [(isset($context["missingFrancoPortHT"]) || array_key_exists("missingFrancoPortHT", $context) ? $context["missingFrancoPortHT"] : (function () { throw new RuntimeError('Variable "missingFrancoPortHT" does not exist.', 22, $this->source); })())], 22, $context, $this->getSourceContext());
echo "</span> ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.to_benefit_the_free_delivery");
echo "</div>
";
}
// line 24
echo " ";
}
// line 25
echo " </div>
<div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4\">
";
// line 27
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.', 27, $this->source); })()), "simple", [], "any", false, false, false, 27)) {
// line 28
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.', 28, $this->source); })()), "variantSelectionMethodChoice", [], "any", false, false, false, 28)) {
// line 29
echo " <div class=\"pt-2\">
<h2 class=\"font-16\">";
// line 30
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.product_details");
echo "</h2>
<div class=\"table-devis\">
";
// line 32
$this->loadTemplate("@SyliusShop/Product/Show/_variants.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 32)->display($context);
// line 33
echo " </div>
</div>
";
} else {
// line 37
echo " <div class=\"selectfitre-bit pb-md-3 pb-4\">
";
// line 38
$this->loadTemplate("@SyliusShop/Product/Show/_options.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 38)->display($context);
// line 39
echo " </div>
";
}
// line 41
echo " ";
}
// line 42
echo " </div>
</div>
";
// line 44
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 44, $this->source); })()), "user", [], "any", false, false, false, 44)) {
// line 45
echo " <div class=\" pt-lg-4 pb-3\">
<div class=\"row no-gutters\">
<div class=\"col-md col-12 pl-md-3 order-md-2 mb-md-0 mb-4\">
";
// line 48
$this->loadTemplate("@Brille24SyliusTierPricePlugin/Shop/Product/Show/_tier_price_promo.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 48)->display($context);
// line 49
echo " </div>
<div class=\"col-md-7 col-12 order-md-1\">
<div class=\"art-qte no-gutters align-items-center\">
<label class=\" mb-2 font-16 font-22-mobile font-weight-bold\">Quantité :</label>
<div class=\"contenu-qte-art qte-article-fiche\">
<div class=\"qte-panier sylius-quantity-bit sylius-p-quantity site-art-quantity position-relative\">
<a role=\"button\" class=\"qte-moins-bit qte-moins-art qte-moins qte-moins-availability transition-bgcolor\" title=\"";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.decrease_quantity"), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/moins_qte.svg"), "html", null, true);
echo "\" class=\"d-block\" alt=\"-\"></a>
";
// line 56
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.', 56, $this->source); })()), "cartItem", [], "any", false, false, false, 56), "quantity", [], "any", false, false, false, 56), 'row', $this->env->getFunction('sylius_test_form_attribute')->getCallable()("quantity"));
echo "
<a role=\"button\" class=\"qte-plus-bit qte-plus-art qte-plus qte-plus-availability transition-bgcolor\" title=\"";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.increase_quantity"), "html", null, true);
echo "\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/plus_qte.svg"), "html", null, true);
echo "\" class=\"d-block\" alt=\"+\"></a>
</div>
</div>
</div>
<div class=\"pb-md-2 pt-3 price-art-cart\">
<label class=\"font-16 font-weight-bold font-22-mobile mb-0\">";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.total_price"), "html", null, true);
echo " :</label>
";
// line 66
$this->loadTemplate("@SyliusShop/Product/Show/_priceWidget.html.twig", "@SyliusShop/Product/Show/_addToCart.html.twig", 66)->display($context);
// line 67
echo " </div>
</div>
</div>
</div>
";
// line 74
echo " <div id=\"step-by-step-info-msg\" class=\"font-weight-bold font-12\" style=\"display: none;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.fill_option_before_adding_to_cart"), "html", null, true);
echo "</div>
<div class=\"btn-panier-content py-0 ";
// line 76
if ( !$this->env->getFunction('sylius_inventory_is_available')->getCallable()(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.', 76, $this->source); })()), "variants", [], "any", false, false, false, 76), "first", [], "any", false, false, false, 76))) {
echo " d-none ";
}
echo "\" >
<button type=\"submit\" id=\"add-to-cart-btn\" class=\"btn-panier btn-add-panier transition-bgcolor\" ";
// line 77
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("app.product.addto_mycart"), "html", null, true);
echo "</span></button></div>
</div>
";
} else {
// line 80
echo " <div class=\"font-weight-bold error-app-user d-inline-block\"> ";
echo twig_call_macro($macros["messages"], "macro_error", ["app.product.not_connected_message"], 80, $context, $this->getSourceContext());
echo "</div>
";
}
// line 82
echo "
";
// line 84
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.', 84, $this->source); })()), 'form_end', ["render_rest" => false]);
echo "
<div id=\"availability-notifier\" ";
// line 86
if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()(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.', 86, $this->source); })()), "variants", [], "any", false, false, false, 86), "first", [], "any", false, false, false, 86))) {
echo " class=\"d-none\" ";
}
echo " >
";
// line 87
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.', 87, $this->source); })()), "variants", [], "any", false, false, false, 87), "first", [], "any", false, false, false, 87), "id", [], "any", false, false, false, 87), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
echo "
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/Show/_addToCart.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 266 => 87, 260 => 86, 255 => 84, 252 => 82, 246 => 80, 238 => 77, 232 => 76, 226 => 74, 218 => 67, 216 => 66, 212 => 65, 199 => 57, 195 => 56, 189 => 55, 181 => 49, 179 => 48, 174 => 45, 172 => 44, 168 => 42, 165 => 41, 161 => 39, 159 => 38, 156 => 37, 150 => 33, 148 => 32, 143 => 30, 140 => 29, 137 => 28, 135 => 27, 131 => 25, 128 => 24, 118 => 22, 116 => 21, 113 => 20, 110 => 19, 108 => 18, 98 => 17, 90 => 16, 80 => 15, 74 => 12, 70 => 11, 66 => 10, 62 => 9, 58 => 8, 56 => 7, 54 => 6, 52 => 5, 49 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import \"@SyliusShop/Common/Macro/icons.html.twig\" as icons %}
{% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{% set product = order_item.variant.product %}
{% set stock_product = order_item.variant.OnHand - order_item.variant.OnHold %}
{% 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=\"pt-md-4 pt-3 pb-2 font-16 \">
<div id=\"enStock\" class=\"color-primary-s font-weight-bold {% if not sylius_inventory_is_available(order_item.variant) %} d-none {% endif %}\">{{stock_product}} {{ 'app.product.in_stock' | trans }}</div>
<div id=\"horsStock\" class=\"font-weight-bold text-danger {% if sylius_inventory_is_available(order_item.variant) %} d-none {% endif %}\"><i class=\"icon-cancel\"></i> {{ 'app.product.out_of_stock' | trans }}</div>
<span id=\"restockingDate\" class=\"text-danger font-weight-bold {% if sylius_inventory_is_available(order_item.variant) %} d-none {% endif %}\">{{ 'app.product.the_product_will_be_available_on'|trans }} <span id=\"restockingDateValue\">{{ order_item.variant.restockingDate|date('app.product.restocking_date_format'|trans) }}</span></span>
{% if is_granted('ROLE_USER') %}
{% set missingFrancoPortHT = app_get_missing_franco_port() %}
{% if missingFrancoPortHT %}
{#{% set missingFrancoPort = missingFrancoPortHT * 1.2 %}#}
<div class=\"font-weight-bold\">{{'app.product.more_than'|trans}} <span class=\"color-primary-s\">{{ money.convertAndFormat(missingFrancoPortHT) }}</span> {{'app.product.to_benefit_the_free_delivery'|trans|raw}}</div>
{% endif %}
{% endif %}
</div>
<div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4\">
{% if not product.simple %}
{% if product.variantSelectionMethodChoice %}
<div class=\"pt-2\">
<h2 class=\"font-16\">{{ 'app.product.product_details'|trans|raw }}</h2>
<div class=\"table-devis\">
{% include '@SyliusShop/Product/Show/_variants.html.twig' %}
</div>
</div>
{% else %}
<div class=\"selectfitre-bit pb-md-3 pb-4\">
{% include '@SyliusShop/Product/Show/_options.html.twig' %}
</div>
{% endif %}
{% endif %}
</div>
</div>
{% if app.user %}
<div class=\" pt-lg-4 pb-3\">
<div class=\"row no-gutters\">
<div class=\"col-md col-12 pl-md-3 order-md-2 mb-md-0 mb-4\">
{% include '@Brille24SyliusTierPricePlugin/Shop/Product/Show/_tier_price_promo.html.twig' %}
</div>
<div class=\"col-md-7 col-12 order-md-1\">
<div class=\"art-qte no-gutters align-items-center\">
<label class=\" mb-2 font-16 font-22-mobile font-weight-bold\">Quantité :</label>
<div class=\"contenu-qte-art qte-article-fiche\">
<div class=\"qte-panier sylius-quantity-bit sylius-p-quantity site-art-quantity position-relative\">
<a role=\"button\" class=\"qte-moins-bit qte-moins-art qte-moins qte-moins-availability transition-bgcolor\" title=\"{{'app.product.decrease_quantity'|trans}}\"><img src=\"{{asset('images/moins_qte.svg')}}\" class=\"d-block\" alt=\"-\"></a>
{{ form_row(form.cartItem.quantity, sylius_test_form_attribute('quantity')) }}
<a role=\"button\" class=\"qte-plus-bit qte-plus-art qte-plus qte-plus-availability transition-bgcolor\" title=\"{{'app.product.increase_quantity'|trans}}\"><img src=\"{{asset('images/plus_qte.svg')}}\" class=\"d-block\" alt=\"+\"></a>
</div>
</div>
</div>
<div class=\"pb-md-2 pt-3 price-art-cart\">
<label class=\"font-16 font-weight-bold font-22-mobile mb-0\">{{'app.product.total_price'|trans}} :</label>
{% include '@SyliusShop/Product/Show/_priceWidget.html.twig' %}
</div>
</div>
</div>
</div>
{#{% include '@BitBagSyliusWishlistPlugin/_addToWishlist.html.twig' %}#}
<div id=\"step-by-step-info-msg\" class=\"font-weight-bold font-12\" style=\"display: none;\">{{ \"app.product.fill_option_before_adding_to_cart\"|trans }}</div>
<div class=\"btn-panier-content py-0 {% if not sylius_inventory_is_available(product.variants.first) %} d-none {% endif %}\" >
<button type=\"submit\" id=\"add-to-cart-btn\" class=\"btn-panier btn-add-panier transition-bgcolor\" {{ sylius_test_html_attribute('add-to-cart-button') }}> <span>{{ 'app.product.addto_mycart' |trans }}</span></button></div>
</div>
{% else %}
<div class=\"font-weight-bold error-app-user d-inline-block\"> {{ messages.error('app.product.not_connected_message') }}</div>
{% endif %}
{# {{ form_row(form._token) }}#}
{{ form_end(form, {'render_rest': false}) }}
<div id=\"availability-notifier\" {% if sylius_inventory_is_available(product.variants.first) %} class=\"d-none\" {% endif %} >
{{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
</div>
", "@SyliusShop/Product/Show/_addToCart.html.twig", "/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig");
}
}