var/cache/dev/twig/84/84cf2416c88e85030facbd61e608fd86913d4ee251ecb1e9ddeb422734c38ba0.php line 33

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_2832c8c40aee77ff4760486539a065be46a3fca30fbfe270b3da0124ccdc80ef 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_addToCart.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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.         echo "
  37. ";
  38.         // line 3
  39.         $context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_article"twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse3), "code", [], "any"falsefalsefalse3));
  40.         // line 4
  41.         echo "
  42. ";
  43.         // line 5
  44.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"5)->unwrap();
  45.         // line 6
  46.         echo "
  47. ";
  48.         // line 7
  49.         $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.'7$this->source); })()), "variant", [], "any"falsefalsefalse7), "product", [], "any"falsefalsefalse7);
  50.         // line 8
  51.         echo "
  52. ";
  53.         // line 9
  54.         $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); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  55.         // line 10
  56.         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"falsefalsefalse10)]), "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", [=> "summary"], "method"falsefalsefalse10))]]);
  57.         echo "
  58. ";
  59.         // line 12
  60.         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');
  61.         echo "
  62. <div class=\"\" id=\"sylius-product-selecting-variant\" ";
  63.         // line 13
  64.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-selecting-variant");
  65.         echo ">
  66.     ";
  67.         // line 14
  68.         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); })())]);
  69.         echo "
  70.     <div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\" id=\"sylius-cart-validation-error\" ";
  71.         // line 15
  72.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-validation-error");
  73.         echo "></div>
  74.     <div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4 empty-hide\">";
  75.         // line 16
  76.         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"falsefalsefalse16)) {
  77.             // line 17
  78.             echo "            ";
  79.             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"falsefalsefalse17)) {
  80.                 // line 18
  81.                 echo "                <div class=\"devis-perso\">
  82.                     <div class=\"bloc-devis-perso\">
  83.                         <h2 class=\"text-white text-center\">";
  84.                 // line 20
  85.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.composer_devis");
  86.                 echo "</h2>
  87.                         <div class=\"table-devis\">
  88.                             ";
  89.                 // line 22
  90.                 $this->loadTemplate("@SyliusShop/Product/Show/_variants.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"22)->display($context);
  91.                 // line 23
  92.                 echo "                        </div>
  93.                     </div>
  94.                 </div>
  95.             ";
  96.             } else {
  97.                 // line 27
  98.                 echo "                <div class=\"devis-perso\">
  99.                     <div class=\"bloc-devis-perso\">
  100.                         <h2 class=\"text-white text-center\">";
  101.                 // line 29
  102.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.caracteristiques"), "html"nulltrue);
  103.                 echo "</h2>
  104.                         <div class=\"table-devis\">
  105.                             ";
  106.                 // line 31
  107.                 $this->loadTemplate("@SyliusShop/Product/Show/_configurator.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"31)->display($context);
  108.                 // line 32
  109.                 echo "                        </div>
  110.                     </div>
  111.                 </div>
  112.             ";
  113.             }
  114.             // line 36
  115.             echo "        ";
  116.         }
  117.         echo "</div>
  118. </div>
  119. <div class=\"pt-2 etat-article\">
  120.     ";
  121.         // line 40
  122.         $context["missingFrancoPort"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
  123.         // line 41
  124.         echo "    ";
  125.         if ((isset($context["missingFrancoPort"]) || array_key_exists("missingFrancoPort"$context) ? $context["missingFrancoPort"] : (function () { throw new RuntimeError('Variable "missingFrancoPort" does not exist.'41$this->source); })())) {
  126.             // line 42
  127.             echo "        <div class=\"color-blue-s  font-seize pb-2 \">";
  128.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.more_than"), "html"nulltrue);
  129.             echo " <strong>";
  130.             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());
  131.             echo "</strong> ";
  132.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.to_benefit_the_free_delivery"), "html"nulltrue);
  133.             echo "</div>
  134.     ";
  135.         }
  136.         // line 44
  137.         echo "    <div id=\"enStock\" class=\"color-green-s font-seize  ";
  138.         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"falsefalsefalse44))) {
  139.             echo " d-none ";
  140.         }
  141.         echo "\"><span class=\"bull-stock\"></span>";
  142.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.en_stock"), "html"nulltrue);
  143.         echo "</div>
  144.     <div id=\"horsStock\" class=\"color-red font-seiz";
  145.         // line 45
  146.         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"falsefalsefalse45))) {
  147.             echo " d-none ";
  148.         }
  149.         echo "\"><i class=\"icon-cancel\"></i> ";
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.en_rupture"), "html"nulltrue);
  151.         echo "</div>
  152. </div>
  153. <div class=\"py-3 row no-gutters align-items-center\">
  154.     <div class=\"col-auto\">
  155.         <div class=\"art-qte d-flex no-gutters sofiaregular-14 align-items-center\">
  156.             <label class=\"col-auto mb-0 font-seize\">";
  157.         // line 53
  158.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.quantity"), "html"nulltrue);
  159.         echo " :</label>
  160.             <div class=\"contenu-qte-art qte-article-fiche col\">
  161.                 <div class=\"qte-panier sylius-quantity site-p-quantity\">
  162.                     <a role=\"button\" class=\"qte-moins qte-moins-art\" title=\"";
  163.         // line 56
  164.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.qty_minus"), "html"nulltrue);
  165.         echo "\"><img src=\"";
  166.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/f_select.svg"), "html"nulltrue);
  167.         echo "\" class=\"d-block\" alt=\"-\"></a>
  168.                     ";
  169.         // line 57
  170.         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.'57$this->source); })()), "cartItem", [], "any"falsefalsefalse57), "quantity", [], "any"falsefalsefalse57), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("quantity"));
  171.         echo "
  172.                     <a role=\"button\" class=\"qte-plus qte-plus-art\"  title=\"";
  173.         // line 58
  174.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.qty_plus"), "html"nulltrue);
  175.         echo "\"><img src=\"";
  176.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/f_select2.svg"), "html"nulltrue);
  177.         echo "\" class=\"d-block\" alt=\"+\"></a>
  178.                     ";
  179.         // line 59
  180.         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); })())]);
  181.         echo "
  182.                 </div>
  183.             </div>
  184.         </div>
  185.     </div>
  186.     
  187.            
  188.         
  189. </div>
  190. <div class=\"box-shadow-s px-4  pb-4 article-recap mb-md-0 mb-4 mt-3\">
  191.     <ul class=\"list-group list-group-flush px-0  pt-4 font-seize font-weight-medium \">
  192.         ";
  193.         // line 70
  194.         $this->loadTemplate("@SyliusShop/Product/Show/_priceWidget.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"70)->display($context);
  195.         // line 71
  196.         echo "    </ul>
  197.     ";
  198.         // line 72
  199.         $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); })()));
  200.         // line 73
  201.         echo "    ";
  202.         $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", [=> 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"falsefalsefalse73)], "method"falsefalsefalse73);
  203.         // line 74
  204.         echo "    ";
  205.         $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"falsefalsefalse74)]), false) / 4);
  206.         // line 75
  207.         echo "    ";
  208.         if ((isset($context["almaPrice"]) || array_key_exists("almaPrice"$context) ? $context["almaPrice"] : (function () { throw new RuntimeError('Variable "almaPrice" does not exist.'75$this->source); })())) {
  209.             // line 76
  210.             echo "    <div class=\"alma-bloc py-2 alma-configurator alma-black prix-total-project-label alma-fixed\">
  211.         <div class=\"d-flex align-items-center justify-content-between font-seize\">
  212.             <div class=\"d-flex fois-alma-article align-items-center pt-1\">";
  213.             // line 78
  214.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.alma.pay");
  215.             echo " <img src=\"";
  216.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/alma2.svg"), "html"nulltrue);
  217.             echo "\" alt=\"\" class=\"ml-2\"/></div>
  218.             <div id=\"prix-total-project-alma-fixed\">4x <span>";
  219.             // line 79
  220.             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());
  221.             echo "</span></div>
  222.         </div>
  223.     </div>
  224.     ";
  225.         }
  226.         // line 83
  227.         echo "    <div class=\"btn-panier-content  pt-3  mb-md-0 \">
  228.         <button type=\"submit\" class=\"btn-panier btn-add-panier bg-gradient-hover bg-gradient-orange\" ";
  229.         // line 84
  230.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("add-to-cart-button");
  231.         echo "> <span>";
  232.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.add_to_cart"), "html"nulltrue);
  233.         echo "</span></button>
  234.     </div>
  235. </div>
  236. ";
  237.         // line 88
  238.         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"falsefalsefalse88), 'row');
  239.         echo "
  240.  ";
  241.         // line 89
  242.         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]);
  243.         echo "
  244. ";
  245.         // line 91
  246.         if (((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.'91$this->source); })()), "variants", [], "any"falsefalsefalse91), "first", [], "any"falsefalsefalse91), "onHand", [], "any"falsefalsefalse91) < 1) && 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.'91$this->source); })()), "variants", [], "any"falsefalsefalse91), "first", [], "any"falsefalsefalse91), "tracked", [], "any"falsefalsefalse91))) {
  247.             // line 92
  248.             echo "    <div id=\"availability-notifier\">
  249. ";
  250.         } else {
  251.             // line 94
  252.             echo "    <div class=\"d-none\" id=\"availability-notifier\">
  253. ";
  254.         }
  255.         // line 96
  256.         echo "    ";
  257.         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.'96$this->source); })()), "variants", [], "any"falsefalsefalse96), "first", [], "any"falsefalsefalse96), "id", [], "any"falsefalsefalse96), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
  258.         echo "
  259. </div>
  260. </div>
  261. ";
  262.         
  263.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  264.         
  265.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  266.     }
  267.     public function getTemplateName()
  268.     {
  269.         return "@SyliusShop/Product/Show/_addToCart.html.twig";
  270.     }
  271.     public function isTraitable()
  272.     {
  273.         return false;
  274.     }
  275.     public function getDebugInfo()
  276.     {
  277.         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,);
  278.     }
  279.     public function getSourceContext()
  280.     {
  281.         return new Source("{% import \"@SyliusShop/Common/Macro/icons.html.twig\" as icons %}
  282. {% set block = app_get_blocks('texteperso_article', sylius.channel.code ) %}
  283. {% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  284. {% set product = order_item.variant.product %}
  285. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  286. {{ 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'))}}) }}
  287. {{ form_errors(form) }}
  288. <div class=\"\" id=\"sylius-product-selecting-variant\" {{ sylius_test_html_attribute('product-selecting-variant') }}>
  289.     {{ sylius_template_event('sylius.shop.product.show.before_add_to_cart', {'product': product, 'order_item': order_item}) }}
  290.     <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>
  291.     <div class=\"caractistique-article pt-xl-4 pt-md-3 pt-4 empty-hide\">{% if not product.simple %}
  292.             {% if product.variantSelectionMethodChoice %}
  293.                 <div class=\"devis-perso\">
  294.                     <div class=\"bloc-devis-perso\">
  295.                         <h2 class=\"text-white text-center\">{{ 'app.product.composer_devis'|trans|raw }}</h2>
  296.                         <div class=\"table-devis\">
  297.                             {% include '@SyliusShop/Product/Show/_variants.html.twig' %}
  298.                         </div>
  299.                     </div>
  300.                 </div>
  301.             {% else %}
  302.                 <div class=\"devis-perso\">
  303.                     <div class=\"bloc-devis-perso\">
  304.                         <h2 class=\"text-white text-center\">{{ 'app.product.caracteristiques' |trans }}</h2>
  305.                         <div class=\"table-devis\">
  306.                             {% include '@SyliusShop/Product/Show/_configurator.html.twig' %}
  307.                         </div>
  308.                     </div>
  309.                 </div>
  310.             {% endif %}
  311.         {% endif %}</div>
  312. </div>
  313. <div class=\"pt-2 etat-article\">
  314.     {% set missingFrancoPort = app_get_missing_franco_port() %}
  315.     {% if missingFrancoPort %}
  316.         <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>
  317.     {% endif %}
  318.     <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>
  319.     <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>
  320. </div>
  321. <div class=\"py-3 row no-gutters align-items-center\">
  322.     <div class=\"col-auto\">
  323.         <div class=\"art-qte d-flex no-gutters sofiaregular-14 align-items-center\">
  324.             <label class=\"col-auto mb-0 font-seize\">{{ 'sylius.ui.quantity' |trans }} :</label>
  325.             <div class=\"contenu-qte-art qte-article-fiche col\">
  326.                 <div class=\"qte-panier sylius-quantity site-p-quantity\">
  327.                     <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>
  328.                     {{ form_row(form.cartItem.quantity, sylius_test_form_attribute('quantity')) }}
  329.                     <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>
  330.                     {{ sylius_template_event('sylius.shop.product.show.add_to_cart_form', {'product': product, 'order_item': order_item}) }}
  331.                 </div>
  332.             </div>
  333.         </div>
  334.     </div>
  335.     
  336.            
  337.         
  338. </div>
  339. <div class=\"box-shadow-s px-4  pb-4 article-recap mb-md-0 mb-4 mt-3\">
  340.     <ul class=\"list-group list-group-flush px-0  pt-4 font-seize font-weight-medium \">
  341.         {% include '@SyliusShop/Product/Show/_priceWidget.html.twig' %}
  342.     </ul>
  343.     {% set variant = product|sylius_resolve_variant %}
  344.     {% set channelpricing = variant.getChannelPricingForChannel(sylius.channel) %}
  345.     {% set almaPrice = (app_get_price_ttc_from_variant(product|sylius_resolve_variant, product|sylius_resolve_variant|sylius_calculate_price({'channel': sylius.channel}), false)) / 4 %}
  346.     {% if almaPrice %}
  347.     <div class=\"alma-bloc py-2 alma-configurator alma-black prix-total-project-label alma-fixed\">
  348.         <div class=\"d-flex align-items-center justify-content-between font-seize\">
  349.             <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>
  350.             <div id=\"prix-total-project-alma-fixed\">4x <span>{{ money.convertAndFormat(almaPrice) }}</span></div>
  351.         </div>
  352.     </div>
  353.     {% endif %}
  354.     <div class=\"btn-panier-content  pt-3  mb-md-0 \">
  355.         <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>
  356.     </div>
  357. </div>
  358. {{ form_row(form._token) }}
  359.  {{ form_end(form, {'render_rest': false}) }}
  360. {% if product.variants.first.onHand < 1 and product.variants.first.tracked %}
  361.     <div id=\"availability-notifier\">
  362. {% else %}
  363.     <div class=\"d-none\" id=\"availability-notifier\">
  364. {% endif %}
  365.     {{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
  366. </div>
  367. </div>
  368. ""@SyliusShop/Product/Show/_addToCart.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig");
  369.     }
  370. }