var/cache/dev/twig/82/82c10b20ce48eeedcfd63b8cee0e3c16.php line 266

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/Product/Show/_addToCart.html.twig */
  14. class __TwigTemplate_5ceaed6c4a33d9d4a7f4191eb655cb16 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_addToCart.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_addToCart.html.twig"));
  33.         // line 1
  34.         $macros["icons"] = $this->macros["icons"] = $this->loadTemplate("@SyliusShop/Common/Macro/icons.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"1)->unwrap();
  35.         // line 2
  36.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusShop/Common/Macro/messages.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"2)->unwrap();
  37.         // line 3
  38.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"3)->unwrap();
  39.         // line 4
  40.         echo "
  41. ";
  42.         // line 5
  43.         $context["product"] = twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse5), "product", [], "any"falsefalsefalse5);
  44.         // line 6
  45.         $context["stock_product"] = (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "OnHand", [], "any"falsefalsefalse6) - twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "OnHold", [], "any"falsefalsefalse6));
  46.         // line 7
  47.         $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); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  48.         // line 8
  49.         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"falsefalsefalse8)]), "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", [=> "summary"], "method"falsefalsefalse8))]]);
  50.         echo "
  51.     ";
  52.         // line 9
  53.         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');
  54.         echo "
  55.     <div class=\"\" id=\"sylius-product-selecting-variant\" ";
  56.         // line 10
  57.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-selecting-variant");
  58.         echo ">
  59.         ";
  60.         // line 11
  61.         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); })())]);
  62.         echo "
  63.         <div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\"  id=\"sylius-cart-validation-error\" ";
  64.         // line 12
  65.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-validation-error");
  66.         echo "></div>
  67.         <div class=\"pt-md-4 pt-3 pb-2 font-16 \">
  68.             
  69.             <div id=\"enStock\" class=\"color-primary-s font-weight-bold  ";
  70.         // line 15
  71.         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"falsefalsefalse15))) {
  72.             echo " d-none ";
  73.         }
  74.         echo "\">";
  75.         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"nulltrue);
  76.         echo " ";
  77.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.in_stock"), "html"nulltrue);
  78.         echo "</div>
  79.             <div id=\"horsStock\" class=\"font-weight-bold text-danger ";
  80.         // line 16
  81.         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"falsefalsefalse16))) {
  82.             echo " d-none ";
  83.         }
  84.         echo "\"><i class=\"icon-cancel\"></i> ";
  85.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.out_of_stock"), "html"nulltrue);
  86.         echo "</div>
  87.             <span id=\"restockingDate\" class=\"text-danger font-weight-bold ";
  88.         // line 17
  89.         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"falsefalsefalse17))) {
  90.             echo " d-none ";
  91.         }
  92.         echo "\">";
  93.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.the_product_will_be_available_on"), "html"nulltrue);
  94.         echo " <span  id=\"restockingDateValue\">";
  95.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse17), "restockingDate", [], "any"falsefalsefalse17), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.restocking_date_format")), "html"nulltrue);
  96.         echo "</span></span>
  97.             ";
  98.         // line 18
  99.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  100.             // line 19
  101.             echo "                ";
  102.             $context["missingFrancoPortHT"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
  103.             // line 20
  104.             echo "                ";
  105.             if ((isset($context["missingFrancoPortHT"]) || array_key_exists("missingFrancoPortHT"$context) ? $context["missingFrancoPortHT"] : (function () { throw new RuntimeError('Variable "missingFrancoPortHT" does not exist.'20$this->source); })())) {
  106.                 // line 21
  107.                 echo "                    ";
  108.                 // line 22
  109.                 echo "                    <div class=\"font-weight-bold\">";
  110.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.more_than"), "html"nulltrue);
  111.                 echo " <span class=\"color-primary-s\">";
  112.                 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());
  113.                 echo "</span> ";
  114.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.to_benefit_the_free_delivery");
  115.                 echo "</div>
  116.                 ";
  117.             }
  118.             // line 24
  119.             echo "            ";
  120.         }
  121.         // line 25
  122.         echo "        </div>  
  123.         <div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4\">
  124.             ";
  125.         // line 27
  126.         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"falsefalsefalse27)) {
  127.             // line 28
  128.             echo "                ";
  129.             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"falsefalsefalse28)) {
  130.                 // line 29
  131.                 echo "                    <div class=\"pt-2\">
  132.                         <h2 class=\"font-16\">";
  133.                 // line 30
  134.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.product_details");
  135.                 echo "</h2>
  136.                         <div class=\"table-devis\">
  137.                             ";
  138.                 // line 32
  139.                 $this->loadTemplate("@SyliusShop/Product/Show/_variants.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"32)->display($context);
  140.                 // line 33
  141.                 echo "                        </div> 
  142.                         
  143.                     </div>
  144.                 ";
  145.             } else {
  146.                 // line 37
  147.                 echo "                    <div class=\"selectfitre-bit pb-md-3 pb-4\">
  148.                         ";
  149.                 // line 38
  150.                 $this->loadTemplate("@SyliusShop/Product/Show/_options.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"38)->display($context);
  151.                 // line 39
  152.                 echo "                    </div>
  153.                 ";
  154.             }
  155.             // line 41
  156.             echo "            ";
  157.         }
  158.         // line 42
  159.         echo "        </div>
  160.     </div>
  161.     ";
  162.         // line 44
  163.         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"falsefalsefalse44)) {
  164.             // line 45
  165.             echo "    <div class=\" pt-lg-4 pb-3\">
  166.         <div class=\"row no-gutters\">
  167.             <div class=\"col-md col-12 pl-md-3 order-md-2 mb-md-0 mb-4\">
  168.                 ";
  169.             // line 48
  170.             $this->loadTemplate("@Brille24SyliusTierPricePlugin/Shop/Product/Show/_tier_price_promo.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"48)->display($context);
  171.             // line 49
  172.             echo "            </div>
  173.             <div class=\"col-md-7 col-12 order-md-1\">
  174.                 <div class=\"art-qte  no-gutters align-items-center\">
  175.                     <label class=\"   mb-2 font-16 font-22-mobile  font-weight-bold\">Quantité :</label>
  176.                     <div class=\"contenu-qte-art qte-article-fiche\">
  177.                         <div class=\"qte-panier sylius-quantity-bit sylius-p-quantity site-art-quantity position-relative\">
  178.                             <a role=\"button\" class=\"qte-moins-bit qte-moins-art qte-moins qte-moins-availability transition-bgcolor\" title=\"";
  179.             // line 55
  180.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.decrease_quantity"), "html"nulltrue);
  181.             echo "\"><img src=\"";
  182.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/moins_qte.svg"), "html"nulltrue);
  183.             echo "\" class=\"d-block\" alt=\"-\"></a>
  184.                             ";
  185.             // line 56
  186.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse56), "quantity", [], "any"falsefalsefalse56), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("quantity"));
  187.             echo "
  188.                             <a role=\"button\" class=\"qte-plus-bit qte-plus-art qte-plus qte-plus-availability transition-bgcolor\" title=\"";
  189.             // line 57
  190.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.increase_quantity"), "html"nulltrue);
  191.             echo "\"><img src=\"";
  192.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/plus_qte.svg"), "html"nulltrue);
  193.             echo "\" class=\"d-block\" alt=\"+\"></a>
  194.                            
  195.                         </div>
  196.                     </div>
  197.                 </div>
  198.                 <div class=\"pb-md-2 pt-3 price-art-cart\"> 
  199.                     <label class=\"font-16 font-weight-bold font-22-mobile mb-0\">";
  200.             // line 65
  201.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.total_price"), "html"nulltrue);
  202.             echo " :</label> 
  203.                     ";
  204.             // line 66
  205.             $this->loadTemplate("@SyliusShop/Product/Show/_priceWidget.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"66)->display($context);
  206.             // line 67
  207.             echo "                </div>
  208.             </div>
  209.             
  210.         </div> 
  211.         
  212.     </div> 
  213.    ";
  214.             // line 74
  215.             echo "    <div id=\"step-by-step-info-msg\" class=\"font-weight-bold font-12\" style=\"display: none;\">";
  216.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.fill_option_before_adding_to_cart"), "html"nulltrue);
  217.             echo "</div>
  218.     <div class=\"btn-panier-content py-0 ";
  219.             // line 76
  220.             if ( !$this->env->getFunction('sylius_inventory_is_available')->getCallable()(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse76), "first", [], "any"falsefalsefalse76))) {
  221.                 echo " d-none ";
  222.             }
  223.             echo "\" >
  224.         <button type=\"submit\" id=\"add-to-cart-btn\" class=\"btn-panier btn-add-panier  transition-bgcolor\" ";
  225.             // line 77
  226.             echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("add-to-cart-button");
  227.             echo "> <span>";
  228.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.addto_mycart"), "html"nulltrue);
  229.             echo "</span></button></div>
  230.     </div>
  231.     ";
  232.         } else {
  233.             // line 80
  234.             echo "        <div  class=\"font-weight-bold error-app-user d-inline-block\"> ";
  235.             echo twig_call_macro($macros["messages"], "macro_error", ["app.product.not_connected_message"], 80$context$this->getSourceContext());
  236.             echo "</div>
  237.    ";
  238.         }
  239.         // line 82
  240.         echo "     
  241. ";
  242.         // line 84
  243.         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]);
  244.         echo "
  245. <div id=\"availability-notifier\" ";
  246.         // line 86
  247.         if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse86), "first", [], "any"falsefalsefalse86))) {
  248.             echo " class=\"d-none\" ";
  249.         }
  250.         echo " >
  251.     ";
  252.         // line 87
  253.         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->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse87), "first", [], "any"falsefalsefalse87), "id", [], "any"falsefalsefalse87), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
  254.         echo "
  255. </div>
  256. ";
  257.         
  258.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  259.         
  260.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  261.     }
  262.     public function getTemplateName()
  263.     {
  264.         return "@SyliusShop/Product/Show/_addToCart.html.twig";
  265.     }
  266.     public function isTraitable()
  267.     {
  268.         return false;
  269.     }
  270.     public function getDebugInfo()
  271.     {
  272.         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,);
  273.     }
  274.     public function getSourceContext()
  275.     {
  276.         return new Source("{% import \"@SyliusShop/Common/Macro/icons.html.twig\" as icons %}
  277. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  278. {% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  279. {% set product = order_item.variant.product %}
  280. {% set stock_product = order_item.variant.OnHand - order_item.variant.OnHold %}
  281. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  282. {{ 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'))}}) }}
  283.     {{ form_errors(form) }}
  284.     <div class=\"\" id=\"sylius-product-selecting-variant\" {{ sylius_test_html_attribute('product-selecting-variant') }}>
  285.         {{ sylius_template_event('sylius.shop.product.show.before_add_to_cart', {'product': product, 'order_item': order_item}) }}
  286.         <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>
  287.         <div class=\"pt-md-4 pt-3 pb-2 font-16 \">
  288.             
  289.             <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>
  290.             <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>
  291.             <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>
  292.             {% if is_granted('ROLE_USER') %}
  293.                 {% set missingFrancoPortHT = app_get_missing_franco_port() %}
  294.                 {% if missingFrancoPortHT %}
  295.                     {#{% set missingFrancoPort = missingFrancoPortHT * 1.2 %}#}
  296.                     <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>
  297.                 {% endif %}
  298.             {% endif %}
  299.         </div>  
  300.         <div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4\">
  301.             {% if not product.simple %}
  302.                 {% if product.variantSelectionMethodChoice %}
  303.                     <div class=\"pt-2\">
  304.                         <h2 class=\"font-16\">{{ 'app.product.product_details'|trans|raw }}</h2>
  305.                         <div class=\"table-devis\">
  306.                             {% include '@SyliusShop/Product/Show/_variants.html.twig' %}
  307.                         </div> 
  308.                         
  309.                     </div>
  310.                 {% else %}
  311.                     <div class=\"selectfitre-bit pb-md-3 pb-4\">
  312.                         {% include '@SyliusShop/Product/Show/_options.html.twig' %}
  313.                     </div>
  314.                 {% endif %}
  315.             {% endif %}
  316.         </div>
  317.     </div>
  318.     {% if app.user %}
  319.     <div class=\" pt-lg-4 pb-3\">
  320.         <div class=\"row no-gutters\">
  321.             <div class=\"col-md col-12 pl-md-3 order-md-2 mb-md-0 mb-4\">
  322.                 {% include '@Brille24SyliusTierPricePlugin/Shop/Product/Show/_tier_price_promo.html.twig' %}
  323.             </div>
  324.             <div class=\"col-md-7 col-12 order-md-1\">
  325.                 <div class=\"art-qte  no-gutters align-items-center\">
  326.                     <label class=\"   mb-2 font-16 font-22-mobile  font-weight-bold\">Quantité :</label>
  327.                     <div class=\"contenu-qte-art qte-article-fiche\">
  328.                         <div class=\"qte-panier sylius-quantity-bit sylius-p-quantity site-art-quantity position-relative\">
  329.                             <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>
  330.                             {{ form_row(form.cartItem.quantity, sylius_test_form_attribute('quantity')) }}
  331.                             <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>
  332.                            
  333.                         </div>
  334.                     </div>
  335.                 </div>
  336.                 <div class=\"pb-md-2 pt-3 price-art-cart\"> 
  337.                     <label class=\"font-16 font-weight-bold font-22-mobile mb-0\">{{'app.product.total_price'|trans}} :</label> 
  338.                     {% include '@SyliusShop/Product/Show/_priceWidget.html.twig' %}
  339.                 </div>
  340.             </div>
  341.             
  342.         </div> 
  343.         
  344.     </div> 
  345.    {#{% include '@BitBagSyliusWishlistPlugin/_addToWishlist.html.twig' %}#}
  346.     <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>
  347.     <div class=\"btn-panier-content py-0 {% if not sylius_inventory_is_available(product.variants.first) %} d-none {% endif %}\" >
  348.         <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>
  349.     </div>
  350.     {% else %}
  351.         <div  class=\"font-weight-bold error-app-user d-inline-block\"> {{ messages.error('app.product.not_connected_message') }}</div>
  352.    {% endif %}
  353.      
  354. {#    {{ form_row(form._token) }}#}
  355. {{ form_end(form, {'render_rest': false}) }}
  356. <div id=\"availability-notifier\" {% if sylius_inventory_is_available(product.variants.first) %} class=\"d-none\" {% endif %} >
  357.     {{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
  358. </div>
  359. ""@SyliusShop/Product/Show/_addToCart.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig");
  360.     }
  361. }