var/cache/dev/twig/d1/d16c139f920c1bc7e9179792701f841832366c0b4a9adfa137daa711fb2fb6f4.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_1da300c787ca79a1fa63ea25f3ea5d54251e458f21409ffdfd8301c5865eb618 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 "
  57. ";
  58.         // line 12
  59.         $context["configurator"] = false;
  60.         // line 13
  61.         $context["configuratorSimple"] = false;
  62.         // line 14
  63.         echo "
  64. ";
  65.         // line 15
  66.         if ((twig_length_filter($this->envtwig_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.'15$this->source); })()), "variants", [], "any"falsefalsefalse15)) > 0)) {
  67.             // line 16
  68.             echo "    ";
  69.             $context['_parent'] = $context;
  70.             $context['_seq'] = twig_ensure_traversable(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); })()), "variants", [], "any"falsefalsefalse16));
  71.             foreach ($context['_seq'] as $context["_key"] => $context["variant"]) {
  72.                 // line 17
  73.                 echo "        ";
  74.                 if (twig_get_attribute($this->env$this->source$context["variant"], "model", [], "any"falsefalsefalse17)) {
  75.                     // line 18
  76.                     echo "            ";
  77.                     $context["configurator"] = true;
  78.                     // line 19
  79.                     echo "            ";
  80.                     if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["variant"], "model", [], "any"falsefalsefalse19), "advanced", [], "any"falsefalsefalse19)) {
  81.                         // line 20
  82.                         echo "                ";
  83.                         $context["configuratorSimple"] = true;
  84.                         // line 21
  85.                         echo "            ";
  86.                     }
  87.                     // line 22
  88.                     echo "        ";
  89.                 }
  90.                 // line 23
  91.                 echo "    ";
  92.             }
  93.             $_parent $context['_parent'];
  94.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variant'], $context['_parent'], $context['loop']);
  95.             $context array_intersect_key($context$_parent) + $_parent;
  96.         }
  97.         // line 25
  98.         echo "
  99. <div id=\"availability-notifier\" ";
  100.         // line 26
  101.         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.'26$this->source); })()), "variant", [], "any"falsefalsefalse26))) {
  102.             echo " class=\"d-none\" ";
  103.         }
  104.         echo " >
  105.     ";
  106.         // line 27
  107.         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.'27$this->source); })()), "variants", [], "any"falsefalsefalse27), "first", [], "any"falsefalsefalse27), "id", [], "any"falsefalsefalse27), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
  108.         echo "
  109. </div>
  110. ";
  111.         // line 30
  112.         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.'30$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.'30$this->source); })()), "id", [], "any"falsefalsefalse30)]), "attr" => ["id" => "sylius-product-adding-to-cart""data-product-id" => 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.'30$this->source); })()), "id", [], "any"falsefalsefalse30), "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.'30$this->source); })()), "getRedirectRoute", [=> "summary"], "method"falsefalsefalse30))]]);
  113.         echo "
  114.         ";
  115.         // line 31
  116.         $this->loadTemplate("@SyliusShop/Product/Show/_seeNumericalOrPhysicalVersion.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"31)->display(twig_array_merge($context, ["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'31$this->source); })())]));
  117.         // line 32
  118.         echo "        ";
  119.         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.'32$this->source); })()), 'errors');
  120.         echo "
  121. <!-- error message -->
  122. <div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\"
  123.      id=\"sylius-cart-validation-error\" ";
  124.         // line 36
  125.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-validation-error");
  126.         echo "></div>
  127. <!-- select variant -->
  128. <div id=\"sylius-product-selecting-variant\" ";
  129.         // line 39
  130.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-selecting-variant");
  131.         echo ">
  132.     <div id=\"first_div\"></div>
  133.     ";
  134.         // line 42
  135.         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.'42$this->source); })()), "simple", [], "any"falsefalsefalse42)) {
  136.             // line 43
  137.             echo "        <div class=\"caractistique-article pt-md-2 pt-3\">
  138.             ";
  139.             // line 44
  140.             $this->loadTemplate("@SyliusShop/Product/Show/_options.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"44)->display($context);
  141.             // line 45
  142.             echo "        </div>
  143.     ";
  144.         }
  145.         // line 47
  146.         echo "    ";
  147.         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.'47$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.'47$this->source); })())]);
  148.         echo "
  149. </div>
  150. <!-- end select variant -->
  151. <div class=\"etat-article d-none\">
  152.     <div id=\"enStock\"
  153.          class=\"etatbit-art color-vert  ";
  154.         // line 54
  155.         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.'54$this->source); })()), "variant", [], "any"falsefalsefalse54))) {
  156.             echo " d-none ";
  157.         }
  158.         echo "\">";
  159.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.en_stock"), "html"nulltrue);
  160.         echo "</div>
  161.     <div id=\"horsStock\"
  162.          class=\"etatbit-art text-danger ";
  163.         // line 56
  164.         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.'56$this->source); })()), "variant", [], "any"falsefalsefalse56))) {
  165.             echo " d-none ";
  166.         }
  167.         echo "\">";
  168.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.en_rupture"), "html"nulltrue);
  169.         echo "</div>
  170. </div>
  171. <!-- configurator -->
  172. ";
  173.         // line 60
  174.         if ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'60$this->source); })())) {
  175.             // line 61
  176.             echo "    ";
  177.             $this->loadTemplate("@SyliusShop/Product/Show/Configurator/_configurator.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"61)->display($context);
  178.         }
  179.         // line 63
  180.         echo "<!-- end configurator -->
  181. <!-- quantity / price -->
  182. <div class=\"py-2 row no-gutters align-items-center mobile-column-reverse-save\">
  183.     <!-- price -->
  184.     <div class=\"pl-3 pt-2 pt-sm-0 art-price\">
  185.         <div class=\"prix-art-panier text-sm-right text-left pt-sm-0 pt-3\">
  186.             ";
  187.         // line 70
  188.         $this->loadTemplate("@SyliusShop/Product/Show/_priceWidget.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"70)->display($context);
  189.         // line 71
  190.         echo "        </div>
  191.     </div>
  192.     <!-- quantity -->
  193.     <div class=\"quantity-container\">
  194.         <div class=\"d-block d-md-none font-seize col-12\">";
  195.         // line 75
  196.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.quantity"), "html"nulltrue);
  197.         echo " :</div>
  198.         <div class=\"col-sm-auto\">
  199.             <div class=\"art-qte px-0 fiche-art-qty\">
  200.                 <div class=\"contenu-qte-art qte-article-fiche\">
  201.                     <div class=\"qte-panier sylius-quantity d-flex no-gutters align-items-center\">
  202.                         <a role=\"button\" class=\"qte-moins-art col-auto\" title=\"";
  203.         // line 80
  204.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.decrease_quantity"), "html"nulltrue);
  205.         echo "\"><img src=\"";
  206.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/moins.svg"), "html"nulltrue);
  207.         echo "\" class=\"d-block\" alt=\"-\"></a>
  208.                         <div class=\"d-flex no-gutters col align-items-center px-2 bg-white\">
  209.                             <div class=\"col-auto mb-0 label-qte\">";
  210.         // line 82
  211.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.quantity"), "html"nulltrue);
  212.         echo " :</div>
  213.                             <div class=\"col form-group-nomarg pl-1\">";
  214.         // line 83
  215.         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.'83$this->source); })()), "cartItem", [], "any"falsefalsefalse83), "quantity", [], "any"falsefalsefalse83), 'row'$this->env->getFunction('sylius_test_form_attribute')->getCallable()("quantity"));
  216.         echo "</div>
  217.                         </div>
  218.                         <a role=\"button\" class=\"qte-plus-art  col-auto\"  title=\"";
  219.         // line 85
  220.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.increase_quantity"), "html"nulltrue);
  221.         echo "\"><img src=\"";
  222.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/plus.svg"), "html"nulltrue);
  223.         echo "\" class=\"d-block\" alt=\"+\"></a>
  224.                         ";
  225.         // line 86
  226.         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.'86$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.'86$this->source); })())]);
  227.         echo "
  228.                     </div>
  229.                 </div>
  230.             </div>
  231.         </div>
  232.     </div>
  233.     <!-- end quantity -->
  234.     <!-- configurator -->
  235.     ";
  236.         // line 96
  237.         if ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'96$this->source); })())) {
  238.             // line 97
  239.             echo "        ";
  240.             $this->loadTemplate("@SyliusShop/Product/Show/Configurator/_wrap_configurator.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"97)->display($context);
  241.             // line 98
  242.             echo "    ";
  243.         }
  244.         // line 99
  245.         echo "    <!-- end configurator -->
  246.     <!-- messages infos -->
  247.     <div class=\"widgets-not-valid\" style=\"visibility: hidden;\">
  248.         ";
  249.         // line 103
  250.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.configurator.error.widgets_not_valid"), "html"nulltrue);
  251.         echo "
  252.     </div>
  253. </div>
  254. <!-- end quantity / price -->
  255. <!-- messages infos -->
  256. <div class=\"widgets-not-valid\" style=\"visibility: hidden;\">
  257.     ";
  258.         // line 110
  259.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.configurator.error.widgets_not_valid"), "html"nulltrue);
  260.         echo "
  261. </div>
  262. <div id=\"choose-your-option-info-msg\" class=\"add-to-cart-error-msg d-none\">
  263.     ";
  264.         // line 113
  265.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.choose_your_option_before_adding_to_cart"), "html"nulltrue);
  266.         echo "
  267. </div>
  268. <div id=\"step-by-step-info-msg\" class=\"color-pink-s font-weight-bold font-12\" style=\"display: none;\">";
  269.         // line 115
  270.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.fill_option_before_adding_to_cart"), "html"nulltrue);
  271.         echo "</div>
  272. <!-- end messages infos -->
  273. ";
  274.         // line 118
  275.         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.'118$this->source); })()), "_token", [], "any"falsefalsefalse118), 'row');
  276.         echo "
  277. <!-- add to cart button -->
  278. ";
  279.         // line 122
  280.         echo "<div ";
  281.         if ((((array_key_exists("configurator"$context) && ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'122$this->source); })()) == true)) &&  !(isset($context["configuratorSimple"]) || array_key_exists("configuratorSimple"$context) ? $context["configuratorSimple"] : (function () { throw new RuntimeError('Variable "configuratorSimple" does not exist.'122$this->source); })())) &&  !(null === 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.'122$this->source); })()), "variant", [], "any"falsefalsefalse122), "model", [], "any"falsefalsefalse122)))) {
  282.             echo "class=\"btn-panier-content pt-2 pb-2 d-none\"";
  283.         } else {
  284.             echo "class=\"btn-panier-content pt-2 pb-2\"";
  285.         }
  286.         echo ">
  287.     <button type=\"submit\" id=\"add-to-cart-btn\" class=\"btn-panier btn-add-panier transition-bgcolor\" ";
  288.         // line 123
  289.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("add-to-cart-button");
  290.         echo "> <span>";
  291.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.add_to_cart"), "html"nulltrue);
  292.         echo "</span></button>
  293. </div>
  294. <!-- end add to cart button -->
  295. ";
  296.         // line 126
  297.         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.'126$this->source); })()), 'form_end', ["render_rest" => false]);
  298.         echo "
  299. ";
  300.         // line 128
  301.         echo "
  302. <!-- shipping info -->
  303. <div class=\"etat-article text-left  pt-2 pb-1\">
  304.     <div class=\"py-1\">
  305.         ";
  306.         // line 133
  307.         $context["missingAmountFranco"] = $this->extensions['App\Twig\Extensions\FrancoPort\CalculateMissingFrancoPortExtension']->getMissingFrancoPortInCart();
  308.         // line 134
  309.         echo "        ";
  310.         if ((isset($context["missingAmountFranco"]) || array_key_exists("missingAmountFranco"$context) ? $context["missingAmountFranco"] : (function () { throw new RuntimeError('Variable "missingAmountFranco" does not exist.'134$this->source); })())) {
  311.             // line 135
  312.             echo "            ";
  313.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.cart.missing_x_for_franco"), "html"nulltrue);
  314.             echo " <span class=\"color-pink-s\">";
  315.             echo twig_call_macro($macros["money"], "macro_convertAndFormat", [(isset($context["missingAmountFranco"]) || array_key_exists("missingAmountFranco"$context) ? $context["missingAmountFranco"] : (function () { throw new RuntimeError('Variable "missingAmountFranco" does not exist.'135$this->source); })())], 135$context$this->getSourceContext());
  316.             echo "</span> ";
  317.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.cart.before_free_shipping"), "html"nulltrue);
  318.             echo "
  319.         ";
  320.         }
  321.         // line 137
  322.         echo "    </div>
  323.     ";
  324.         // line 138
  325.         if (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.'138$this->source); })()), "channel", [], "any"falsefalsefalse138), "displayDeliveryDate", [], "any"falsefalsefalse138)) {
  326.             // line 140
  327.             echo "        ";
  328.             $context["date"] = null;
  329.             // line 141
  330.             echo "        ";
  331.             $context["deliveryDate"] = $this->extensions['App\Twig\Extensions\ShippingDelay\CalculateShippingDelayExtension']->getDeliveryDate(null, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'141$this->source); })()));
  332.             echo "  ";
  333.             // line 142
  334.             echo "
  335.         ";
  336.             // line 143
  337.             $context["dispatchDateEstimated"] = $this->extensions['App\Twig\Extensions\ShippingDelay\CalculateShippingDelayExtension']->getDispatchDate((isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'143$this->source); })()));
  338.             echo "  ";
  339.             // line 144
  340.             echo "        ";
  341.             $context["deliveryDateEstimated"] = $this->extensions['App\Twig\Extensions\ShippingDelay\CalculateShippingDelayExtension']->getDeliveryDateWithMargin(null, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'144$this->source); })()));
  342.             echo "  ";
  343.             // line 145
  344.             echo "
  345.         ";
  346.             // line 146
  347.             if ( !(null === (isset($context["deliveryDate"]) || array_key_exists("deliveryDate"$context) ? $context["deliveryDate"] : (function () { throw new RuntimeError('Variable "deliveryDate" does not exist.'146$this->source); })()))) {
  348.                 // line 147
  349.                 echo "            <div class=\"py-1\">";
  350.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.by_ordering_today"), "html"nulltrue);
  351.                 echo ", ";
  352.                 echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.shipping.date_estimated")), "html"nulltrue);
  353.                 echo "<span class=\"color-pink-s\">";
  354.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["deliveryDate"]) || array_key_exists("deliveryDate"$context) ? $context["deliveryDate"] : (function () { throw new RuntimeError('Variable "deliveryDate" does not exist.'147$this->source); })()), "d/m/Y"), "html"nulltrue);
  355.                 echo " </span></div>
  356.         ";
  357.             }
  358.             // line 149
  359.             echo "    ";
  360.         }
  361.         // line 150
  362.         echo "</div>
  363. <!-- end shipping info -->
  364. <!-- steps of shipping -->
  365. ";
  366.         // line 154
  367.         if (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.'154$this->source); })()), "channel", [], "any"falsefalsefalse154), "displayDeliveryDate", [], "any"falsefalsefalse154)) {
  368.             // line 155
  369.             echo "    <div class=\"step-shipping pt-2 pb-4\">
  370.         <div class=\"row no-gutters\">
  371.             <div class=\"col\">
  372.                 <div class=\"text-center\">
  373.                     <div class=\"position-relative has-after-step\"><img src=\"";
  374.             // line 159
  375.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/step_livr1.svg"), "html"nulltrue);
  376.             echo "\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
  377.                     <div class=\"font-italic px-2 font-step\">
  378.                         ";
  379.             // line 161
  380.             if (array_key_exists("date"$context)) {
  381.                 // line 162
  382.                 echo "                            ";
  383.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_date_format_filter($this->env, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'162$this->source); })()), "m/d/Y"), "medium""medium""dd MMMM"null"gregorian""fr"), "html"nulltrue);
  384.                 echo "
  385.                         ";
  386.             } else {
  387.                 // line 164
  388.                 echo "                            ";
  389.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_date_format_filter($this->env"now""m/d/Y"), "medium""medium""dd MMMM"null"gregorian""fr"), "html"nulltrue);
  390.                 echo "
  391.                         ";
  392.             }
  393.             // line 166
  394.             echo "                        <span class=\"d-block line-height-normal\">";
  395.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.passed_order"), "html"nulltrue);
  396.             echo "</span>
  397.                     </div>
  398.                 </div>
  399.             </div>
  400.             <div class=\"col\">
  401.                 <div class=\"text-center\">
  402.                     <div class=\"position-relative has-after-step\"><img src=\"";
  403.             // line 173
  404.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/step_livr2.svg"), "html"nulltrue);
  405.             echo "\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
  406.                     <div class=\"font-italic px-2 font-step\">
  407.                         ";
  408.             // line 175
  409.             echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_date_format_filter($this->env, (isset($context["dispatchDateEstimated"]) || array_key_exists("dispatchDateEstimated"$context) ? $context["dispatchDateEstimated"] : (function () { throw new RuntimeError('Variable "dispatchDateEstimated" does not exist.'175$this->source); })()), "m/d/Y"), "medium""medium""dd MMMM"null"gregorian""fr"), "html"nulltrue);
  410.             echo "
  411.                         <span class=\"d-block line-height-normal\">";
  412.             // line 176
  413.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.order_sent"), "html"nulltrue);
  414.             echo "</span>
  415.                     </div>
  416.                 </div>
  417.             </div>
  418.             <div class=\"col\">
  419.                 <div class=\"text-center\">
  420.                     <div class=\"position-relative\"><img src=\"";
  421.             // line 182
  422.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/step_livr3.svg"), "html"nulltrue);
  423.             echo "\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
  424.                     <div class=\"font-italic px-2 font-step\">
  425.                         ";
  426.             // line 184
  427.             echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["deliveryDateEstimated"]) || array_key_exists("deliveryDateEstimated"$context) ? $context["deliveryDateEstimated"] : (function () { throw new RuntimeError('Variable "deliveryDateEstimated" does not exist.'184$this->source); })()), "before", [], "array"falsefalsefalse184), "m/d/Y"), "medium""medium""dd MMMM"null"gregorian""fr"), "html"nulltrue);
  428.             echo " -
  429.                         ";
  430.             // line 185
  431.             echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["deliveryDateEstimated"]) || array_key_exists("deliveryDateEstimated"$context) ? $context["deliveryDateEstimated"] : (function () { throw new RuntimeError('Variable "deliveryDateEstimated" does not exist.'185$this->source); })()), "after", [], "array"falsefalsefalse185), "m/d/Y"), "medium""medium""dd MMMM"null"gregorian""fr"), "html"nulltrue);
  432.             echo "
  433.                         <span class=\"d-block line-height-normal\">";
  434.             // line 186
  435.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.delivered"), "html"nulltrue);
  436.             echo " !</span>
  437.                     </div>
  438.                 </div>
  439.             </div>
  440.         </div>
  441.     </div>
  442. ";
  443.         }
  444.         // line 193
  445.         echo "<!-- end steps of shipping -->
  446. <!-- add to cart modal -->
  447. <div class=\"modal fade\" id=\"addToCartModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"addToCartModal\" aria-hidden=\"true\">
  448.     <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  449.         <div class=\"modal-content\">
  450.             <div class=\"modal-header\">
  451.                 <p class=\"modal-title\" id=\"exampleModalLongTitle\">";
  452.         // line 200
  453.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.addCart"), "html"nulltrue);
  454.         echo "</p>
  455.                 <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  456.                     <span aria-hidden=\"true\">&times;</span>
  457.                 </button>
  458.             </div>
  459.             <div class=\"modal-body\">
  460.                 <div class=\"modal-product-name\">";
  461.         // line 206
  462.         echo twig_escape_filter($this->envtwig_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.'206$this->source); })()), "code", [], "any"falsefalsefalse206), "html"nulltrue);
  463.         echo " <br> ";
  464.         echo twig_escape_filter($this->envtwig_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.'206$this->source); })()), "name", [], "any"falsefalsefalse206), "html"nulltrue);
  465.         echo "</div>
  466.             </div>
  467.             <div class=\"modal-footer row mx-n1\">
  468.                 <div class=\"col-sm-6 col-12 mb-2 mx-0 px-1\"><button type=\"button\" class=\"btn-link bg-orange\" data-dismiss=\"modal\">";
  469.         // line 209
  470.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.continue_my_purchases"), "html"nulltrue);
  471.         echo "</button></div>
  472.                 <div class=\"col-sm-6 col-12 mb-2 mx-0 px-1\"><a href=\"";
  473.         // line 210
  474.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_cart_summary");
  475.         echo "\" type=\"button\" class=\"btn-link opacity_hover\" title=\"";
  476.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.proceed_to_payment"), "html"nulltrue);
  477.         echo "\">";
  478.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.proceed_to_payment"), "html"nulltrue);
  479.         echo "</a></div>
  480.             </div>
  481.         </div>
  482.     </div>
  483. </div>
  484. <!-- end add to cart modal -->
  485. <!-- begin error modal -->
  486. ";
  487.         // line 218
  488.         $this->loadTemplate("@SyliusShop/Product/Show/_popupQuantityError.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"218)->display(twig_array_merge($context, ["item" => (isset($context["order_item"]) || array_key_exists("order_item"$context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.'218$this->source); })())]));
  489.         // line 219
  490.         $this->loadTemplate("@SyliusShop/Product/Show/_popupAddToCartErrorModal.html.twig""@SyliusShop/Product/Show/_addToCart.html.twig"219)->display(twig_array_merge($context, ["item" => (isset($context["order_item"]) || array_key_exists("order_item"$context) ? $context["order_item"] : (function () { throw new RuntimeError('Variable "order_item" does not exist.'219$this->source); })())]));
  491.         // line 220
  492.         echo "<!-- end error modal -->";
  493.         
  494.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  495.         
  496.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  497.     }
  498.     public function getTemplateName()
  499.     {
  500.         return "@SyliusShop/Product/Show/_addToCart.html.twig";
  501.     }
  502.     public function isTraitable()
  503.     {
  504.         return false;
  505.     }
  506.     public function getDebugInfo()
  507.     {
  508.         return array (  520 => 220,  518 => 219,  516 => 218,  501 => 210,  497 => 209,  489 => 206,  480 => 200,  471 => 193,  461 => 186,  457 => 185,  453 => 184,  448 => 182,  439 => 176,  435 => 175,  430 => 173,  419 => 166,  413 => 164,  407 => 162,  405 => 161,  400 => 159,  394 => 155,  392 => 154,  386 => 150,  383 => 149,  373 => 147,  371 => 146,  368 => 145,  364 => 144,  361 => 143,  358 => 142,  354 => 141,  351 => 140,  349 => 138,  346 => 137,  336 => 135,  333 => 134,  331 => 133,  324 => 128,  320 => 126,  312 => 123,  303 => 122,  297 => 118,  291 => 115,  286 => 113,  280 => 110,  270 => 103,  264 => 99,  261 => 98,  258 => 97,  256 => 96,  243 => 86,  237 => 85,  232 => 83,  228 => 82,  221 => 80,  213 => 75,  207 => 71,  205 => 70,  196 => 63,  192 => 61,  190 => 60,  179 => 56,  170 => 54,  159 => 47,  155 => 45,  153 => 44,  150 => 43,  148 => 42,  142 => 39,  136 => 36,  128 => 32,  126 => 31,  122 => 30,  116 => 27,  110 => 26,  107 => 25,  100 => 23,  97 => 22,  94 => 21,  91 => 20,  88 => 19,  85 => 18,  82 => 17,  77 => 16,  75 => 15,  72 => 14,  70 => 13,  68 => 12,  65 => 10,  63 => 9,  60 => 8,  58 => 7,  55 => 6,  53 => 5,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  509.     }
  510.     public function getSourceContext()
  511.     {
  512.         return new Source("{% import \"@SyliusShop/Common/Macro/icons.html.twig\" as icons %}
  513. {% set block = app_get_blocks('texteperso_article', sylius.channel.code ) %}
  514. {% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  515. {% set product = order_item.variant.product %}
  516. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  517. {# INIT CONFIGURATOR #}
  518. {% set configurator = false %}
  519. {% set configuratorSimple = false %}
  520. {% if product.variants|length > 0 %}
  521.     {% for variant in product.variants %}
  522.         {% if variant.model %}
  523.             {% set configurator = true %}
  524.             {% if not variant.model.advanced %}
  525.                 {% set configuratorSimple = true %}
  526.             {% endif %}
  527.         {% endif %}
  528.     {% endfor %}
  529. {% endif %}
  530. <div id=\"availability-notifier\" {% if sylius_inventory_is_available(order_item.variant) %} class=\"d-none\" {% endif %} >
  531.     {{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
  532. </div>
  533. {{ form_start(form, {'action': path('sylius_shop_ajax_cart_add_item', {'productId': product.id}), 'attr': {'id': 'sylius-product-adding-to-cart', 'data-product-id': product.id, 'data-js-add-to-cart': 'form', 'class': 'loadable', 'novalidate': 'novalidate', 'data-redirect': path(configuration.getRedirectRoute('summary'))}}) }}
  534.         {% include '@SyliusShop/Product/Show/_seeNumericalOrPhysicalVersion.html.twig' with {product: product} %}
  535.         {{ form_errors(form) }}
  536. <!-- error message -->
  537. <div class=\"alert alert-danger d-none\" data-js-add-to-cart=\"error\"
  538.      id=\"sylius-cart-validation-error\" {{ sylius_test_html_attribute('cart-validation-error') }}></div>
  539. <!-- select variant -->
  540. <div id=\"sylius-product-selecting-variant\" {{ sylius_test_html_attribute('product-selecting-variant') }}>
  541.     <div id=\"first_div\"></div>
  542.     {% if not product.simple %}
  543.         <div class=\"caractistique-article pt-md-2 pt-3\">
  544.             {% include '@SyliusShop/Product/Show/_options.html.twig' %}
  545.         </div>
  546.     {% endif %}
  547.     {{ sylius_template_event('sylius.shop.product.show.before_add_to_cart', {'product': product, 'order_item': order_item}) }}
  548. </div>
  549. <!-- end select variant -->
  550. <div class=\"etat-article d-none\">
  551.     <div id=\"enStock\"
  552.          class=\"etatbit-art color-vert  {% if not sylius_inventory_is_available(order_item.variant) %} d-none {% endif %}\">{{ 'app.product.en_stock' | trans }}</div>
  553.     <div id=\"horsStock\"
  554.          class=\"etatbit-art text-danger {% if sylius_inventory_is_available(order_item.variant) %} d-none {% endif %}\">{{ 'app.product.en_rupture' | trans }}</div>
  555. </div>
  556. <!-- configurator -->
  557. {% if configurator %}
  558.     {% include '@SyliusShop/Product/Show/Configurator/_configurator.html.twig' %}
  559. {% endif %}
  560. <!-- end configurator -->
  561. <!-- quantity / price -->
  562. <div class=\"py-2 row no-gutters align-items-center mobile-column-reverse-save\">
  563.     <!-- price -->
  564.     <div class=\"pl-3 pt-2 pt-sm-0 art-price\">
  565.         <div class=\"prix-art-panier text-sm-right text-left pt-sm-0 pt-3\">
  566.             {% include '@SyliusShop/Product/Show/_priceWidget.html.twig' %}
  567.         </div>
  568.     </div>
  569.     <!-- quantity -->
  570.     <div class=\"quantity-container\">
  571.         <div class=\"d-block d-md-none font-seize col-12\">{{ 'sylius.ui.quantity' |trans }} :</div>
  572.         <div class=\"col-sm-auto\">
  573.             <div class=\"art-qte px-0 fiche-art-qty\">
  574.                 <div class=\"contenu-qte-art qte-article-fiche\">
  575.                     <div class=\"qte-panier sylius-quantity d-flex no-gutters align-items-center\">
  576.                         <a role=\"button\" class=\"qte-moins-art col-auto\" title=\"{{'app.product.decrease_quantity'|trans}}\"><img src=\"{{asset('images/moins.svg')}}\" class=\"d-block\" alt=\"-\"></a>
  577.                         <div class=\"d-flex no-gutters col align-items-center px-2 bg-white\">
  578.                             <div class=\"col-auto mb-0 label-qte\">{{ 'sylius.ui.quantity' |trans }} :</div>
  579.                             <div class=\"col form-group-nomarg pl-1\">{{ form_row(form.cartItem.quantity, sylius_test_form_attribute('quantity')) }}</div>
  580.                         </div>
  581.                         <a role=\"button\" class=\"qte-plus-art  col-auto\"  title=\"{{'app.product.increase_quantity'|trans}}\"><img src=\"{{asset('images/plus.svg')}}\" class=\"d-block\" alt=\"+\"></a>
  582.                         {{ sylius_template_event('sylius.shop.product.show.add_to_cart_form', {'product': product, 'order_item': order_item}) }}
  583.                     </div>
  584.                 </div>
  585.             </div>
  586.         </div>
  587.     </div>
  588.     <!-- end quantity -->
  589.     <!-- configurator -->
  590.     {% if configurator %}
  591.         {% include '@SyliusShop/Product/Show/Configurator/_wrap_configurator.html.twig' %}
  592.     {% endif %}
  593.     <!-- end configurator -->
  594.     <!-- messages infos -->
  595.     <div class=\"widgets-not-valid\" style=\"visibility: hidden;\">
  596.         {{ \"app.configurator.error.widgets_not_valid\"|trans }}
  597.     </div>
  598. </div>
  599. <!-- end quantity / price -->
  600. <!-- messages infos -->
  601. <div class=\"widgets-not-valid\" style=\"visibility: hidden;\">
  602.     {{ \"app.configurator.error.widgets_not_valid\"|trans }}
  603. </div>
  604. <div id=\"choose-your-option-info-msg\" class=\"add-to-cart-error-msg d-none\">
  605.     {{ \"app.ui.choose_your_option_before_adding_to_cart\"|trans }}
  606. </div>
  607. <div id=\"step-by-step-info-msg\" class=\"color-pink-s font-weight-bold font-12\" style=\"display: none;\">{{ \"app.product.fill_option_before_adding_to_cart\"|trans }}</div>
  608. <!-- end messages infos -->
  609. {{ form_row(form._token) }}
  610. <!-- add to cart button -->
  611. {#        <div {% if configurator is defined and configurator == true %}class=\"btn-panier-content pt-2 pb-2 d-none\"{% else %}class=\"btn-panier-content pt-2 pb-2\"{% endif %}>#}
  612. <div {% if configurator is defined and configurator == true and not configuratorSimple and order_item.variant.model is not null %}class=\"btn-panier-content pt-2 pb-2 d-none\"{% else %}class=\"btn-panier-content pt-2 pb-2\"{% endif %}>
  613.     <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>{{ 'sylius.ui.add_to_cart' |trans }}</span></button>
  614. </div>
  615. <!-- end add to cart button -->
  616. {{ form_end(form, {'render_rest': false}) }}
  617. {#{% endif %}#}
  618. <!-- shipping info -->
  619. <div class=\"etat-article text-left  pt-2 pb-1\">
  620.     <div class=\"py-1\">
  621.         {% set missingAmountFranco = app_get_missing_franco_port() %}
  622.         {% if missingAmountFranco %}
  623.             {{'app.cart.missing_x_for_franco'|trans}} <span class=\"color-pink-s\">{{ money.convertAndFormat(missingAmountFranco) }}</span> {{'app.cart.before_free_shipping'|trans}}
  624.         {% endif %}
  625.     </div>
  626.     {% if sylius.channel.displayDeliveryDate %}
  627. {#        {% set date = date('2026-01-21 10:00:00') %}#}
  628.         {% set date = null %}
  629.         {% set deliveryDate = app_get_delivery_date(null, date)  %}  {# estimation date de livraison #}
  630.         {% set dispatchDateEstimated = app_get_dispatch_date(date)  %}  {# date d'envoi #}
  631.         {% set deliveryDateEstimated = app_get_delivery_date_with_margin(null, date)  %}  {# estimation fourchette date de livraison #}
  632.         {% if deliveryDate is not null %}
  633.             <div class=\"py-1\">{{'app.product.by_ordering_today'|trans}}, {{'app.shipping.date_estimated'|trans|lower }}<span class=\"color-pink-s\">{{ deliveryDate|date(\"d/m/Y\") }} </span></div>
  634.         {% endif %}
  635.     {% endif %}
  636. </div>
  637. <!-- end shipping info -->
  638. <!-- steps of shipping -->
  639. {% if sylius.channel.displayDeliveryDate %}
  640.     <div class=\"step-shipping pt-2 pb-4\">
  641.         <div class=\"row no-gutters\">
  642.             <div class=\"col\">
  643.                 <div class=\"text-center\">
  644.                     <div class=\"position-relative has-after-step\"><img src=\"{{asset('images/step_livr1.svg')}}\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
  645.                     <div class=\"font-italic px-2 font-step\">
  646.                         {% if date is defined %}
  647.                             {{ date|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }}
  648.                         {% else %}
  649.                             {{ \"now\"|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }}
  650.                         {% endif %}
  651.                         <span class=\"d-block line-height-normal\">{{'app.product.passed_order'|trans}}</span>
  652.                     </div>
  653.                 </div>
  654.             </div>
  655.             <div class=\"col\">
  656.                 <div class=\"text-center\">
  657.                     <div class=\"position-relative has-after-step\"><img src=\"{{asset('images/step_livr2.svg')}}\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
  658.                     <div class=\"font-italic px-2 font-step\">
  659.                         {{ dispatchDateEstimated|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }}
  660.                         <span class=\"d-block line-height-normal\">{{'app.product.order_sent'|trans}}</span>
  661.                     </div>
  662.                 </div>
  663.             </div>
  664.             <div class=\"col\">
  665.                 <div class=\"text-center\">
  666.                     <div class=\"position-relative\"><img src=\"{{asset('images/step_livr3.svg')}}\" alt=\"\" class=\"position-relative z_index_m2\"/></div>
  667.                     <div class=\"font-italic px-2 font-step\">
  668.                         {{ deliveryDateEstimated['before']|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }} -
  669.                         {{ deliveryDateEstimated['after']|date(\"m/d/Y\")|format_datetime(locale='fr',pattern=\"dd MMMM\") }}
  670.                         <span class=\"d-block line-height-normal\">{{'app.product.delivered'|trans}} !</span>
  671.                     </div>
  672.                 </div>
  673.             </div>
  674.         </div>
  675.     </div>
  676. {% endif %}
  677. <!-- end steps of shipping -->
  678. <!-- add to cart modal -->
  679. <div class=\"modal fade\" id=\"addToCartModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"addToCartModal\" aria-hidden=\"true\">
  680.     <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  681.         <div class=\"modal-content\">
  682.             <div class=\"modal-header\">
  683.                 <p class=\"modal-title\" id=\"exampleModalLongTitle\">{{'app.product.addCart'|trans}}</p>
  684.                 <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  685.                     <span aria-hidden=\"true\">&times;</span>
  686.                 </button>
  687.             </div>
  688.             <div class=\"modal-body\">
  689.                 <div class=\"modal-product-name\">{{ product.code }} <br> {{ product.name }}</div>
  690.             </div>
  691.             <div class=\"modal-footer row mx-n1\">
  692.                 <div class=\"col-sm-6 col-12 mb-2 mx-0 px-1\"><button type=\"button\" class=\"btn-link bg-orange\" data-dismiss=\"modal\">{{'app.product.continue_my_purchases'|trans}}</button></div>
  693.                 <div class=\"col-sm-6 col-12 mb-2 mx-0 px-1\"><a href=\"{{ path('sylius_shop_cart_summary') }}\" type=\"button\" class=\"btn-link opacity_hover\" title=\"{{'app.product.proceed_to_payment'|trans}}\">{{'app.product.proceed_to_payment'|trans}}</a></div>
  694.             </div>
  695.         </div>
  696.     </div>
  697. </div>
  698. <!-- end add to cart modal -->
  699. <!-- begin error modal -->
  700. {% include '@SyliusShop/Product/Show/_popupQuantityError.html.twig' with {'item': order_item} %}
  701. {% include '@SyliusShop/Product/Show/_popupAddToCartErrorModal.html.twig' with {'item': order_item} %}
  702. <!-- end error modal -->""@SyliusShop/Product/Show/_addToCart.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig");
  703.     }
  704. }