var/cache/dev/twig/19/19fcd2fdb42a30d6b8efe1992118bf70d80e827dd7f78326218e1e7e0486aca6.php line 129

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.html.twig */
  14. class __TwigTemplate_2dcac586e371a720a3a0f083bb5982434dbc0f3b61cb05d82962fbca3920859a 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'metatags' => [$this'block_metatags'],
  25.             'content' => [$this'block_content'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 7
  32.         return "@SyliusShop/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/show.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/show.html.twig"));
  41.         // line 1
  42.         $context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("num_telephone"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.'1$this->source); })()), "channel", [], "any"falsefalsefalse1), "code", [], "any"falsefalsefalse1));
  43.         // line 2
  44.         $context["block_h"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("horaires_magasin"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.'2$this->source); })()), "channel", [], "any"falsefalsefalse2), "code", [], "any"falsefalsefalse2));
  45.         // line 3
  46.         $context["block_livr"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("imageperso_index"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));
  47.         // line 4
  48.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@SyliusShop/Product/show.html.twig"4)->unwrap();
  49.         // line 5
  50.         $context["context"] = ["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.'5$this->source); })()), "channel", [], "any"falsefalsefalse5)];
  51.         // line 7
  52.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Product/show.html.twig"7);
  53.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  54.         
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.     }
  59.     // line 9
  60.     public function block_title($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  67.         // line 10
  68.         echo "    ";
  69.         $this->loadTemplate("@DediSyliusSEOPlugin/Shop/Header/_title.html.twig""@SyliusShop/Product/show.html.twig"10)->display(twig_array_merge($context, ["resource" => (($context["product"]) ?? (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.'10$this->source); })()), "channel", [], "any"falsefalsefalse10)))]));
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.     }
  75.     // line 12
  76.     public function block_metatags($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  83.         // line 13
  84.         echo "    ";
  85.         if ( !twig_test_empty(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.'13$this->source); })()), "metaKeywords", [], "any"falsefalsefalse13))) {
  86.             // line 14
  87.             echo "        <meta name=\"keywords\" content=\"";
  88.             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.'14$this->source); })()), "metaKeywords", [], "any"falsefalsefalse14), "html"nulltrue);
  89.             echo "\" />
  90.     ";
  91.         }
  92.         // line 16
  93.         echo "    ";
  94.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.metatags", ["resource" => (($context["product"]) ?? (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.'16$this->source); })()), "channel", [], "any"falsefalsefalse16)))]);
  95.         echo "
  96.     ";
  97.         // line 17
  98.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.rich_snippets");
  99.         echo "
  100. ";
  101.         
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  103.         
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  105.     }
  106.     // line 20
  107.     public function block_content($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  114.         // line 21
  115.         echo "    ";
  116.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("fabric"null"bootstrapTheme");
  117.         echo "
  118.     ";
  119.         // line 22
  120.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("configurator"null"bootstrapTheme");
  121.         echo "
  122.     ";
  123.         // line 24
  124.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_geolocalisation"));
  125.         echo "
  126.     ";
  127.         // line 26
  128.         $context["configurator"] = false;
  129.         // line 27
  130.         echo "    ";
  131.         $context["advancedModel"] = false;
  132.         // line 28
  133.         echo "
  134.     ";
  135.         // line 29
  136.         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.'29$this->source); })()), "isBundle", [], "any"falsefalsefalse29) && 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.'29$this->source); })()), "productBundle", [], "any"falsefalsefalse29))) {
  137.             // line 30
  138.             echo "        ";
  139.             $context['_parent'] = $context;
  140.             $context['_seq'] = twig_ensure_traversable(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.'30$this->source); })()), "productBundle", [], "any"falsefalsefalse30), "productBundleItems", [], "any"falsefalsefalse30));
  141.             foreach ($context['_seq'] as $context["_key"] => $context["productBundleItem"]) {
  142.                 // line 31
  143.                 echo "            ";
  144.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["productBundleItem"], "productVariant", [], "any"falsefalsefalse31), "model", [], "any"falsefalsefalse31)) {
  145.                     // line 32
  146.                     echo "                ";
  147.                     $context["configurator"] = true;
  148.                     // line 33
  149.                     echo "                ";
  150.                     if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["productBundleItem"], "productVariant", [], "any"falsefalsefalse33), "model", [], "any"falsefalsefalse33), "advanced", [], "any"falsefalsefalse33)) {
  151.                         // line 34
  152.                         echo "                    ";
  153.                         $context["advancedModel"] = true;
  154.                         // line 35
  155.                         echo "                ";
  156.                     }
  157.                     // line 36
  158.                     echo "            ";
  159.                 }
  160.                 // line 37
  161.                 echo "        ";
  162.             }
  163.             $_parent $context['_parent'];
  164.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productBundleItem'], $context['_parent'], $context['loop']);
  165.             $context array_intersect_key($context$_parent) + $_parent;
  166.             // line 38
  167.             echo "    ";
  168.         } elseif ((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.'38$this->source); })()), "variants", [], "any"falsefalsefalse38)) > 0)) {
  169.             // line 39
  170.             echo "        ";
  171.             $context['_parent'] = $context;
  172.             $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.'39$this->source); })()), "variants", [], "any"falsefalsefalse39));
  173.             foreach ($context['_seq'] as $context["_key"] => $context["variant"]) {
  174.                 // line 40
  175.                 echo "            ";
  176.                 if (twig_get_attribute($this->env$this->source$context["variant"], "model", [], "any"falsefalsefalse40)) {
  177.                     // line 41
  178.                     echo "                ";
  179.                     $context["configurator"] = true;
  180.                     // line 42
  181.                     echo "                ";
  182.                     if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["variant"], "model", [], "any"falsefalsefalse42), "advanced", [], "any"falsefalsefalse42)) {
  183.                         // line 43
  184.                         echo "                    ";
  185.                         $context["advancedModel"] = true;
  186.                         // line 44
  187.                         echo "                ";
  188.                     }
  189.                     // line 45
  190.                     echo "            ";
  191.                 }
  192.                 // line 46
  193.                 echo "        ";
  194.             }
  195.             $_parent $context['_parent'];
  196.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variant'], $context['_parent'], $context['loop']);
  197.             $context array_intersect_key($context$_parent) + $_parent;
  198.             // line 47
  199.             echo "    ";
  200.         }
  201.         // line 48
  202.         echo "    <div class=\"hide-cross-page\">
  203.         <div id=\"cross-selling-add-to-cart\" class=\"pt-3\">
  204.             <div class=\"row pt-2 mx-md-n3 mx-0\">
  205.                 ";
  206.         // line 51
  207.         $context['_parent'] = $context;
  208.         $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.'51$this->source); })()), "associations", [], "any"falsefalsefalse51));
  209.         foreach ($context['_seq'] as $context["_key"] => $context["association"]) {
  210.             // line 52
  211.             echo "                    ";
  212.             if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["association"], "getType", [], "method"falsefalsefalse52), "getCode", [], "method"falsefalsefalse52) == "cross_selling_add_to_cart") && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["association"], "associatedProducts", [], "any"falsefalsefalse52)) > 0))) {
  213.                 // line 53
  214.                 echo "                        <div class=\"modal-title titre-popup color-purple-s title-popup-cross-selling\">";
  215.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.pour_completer"), "html"nulltrue);
  216.                 echo "</div>
  217.                         ";
  218.                 // line 54
  219.                 $context['_parent'] = $context;
  220.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["association"], "associatedProducts", [], "any"falsefalsefalse54));
  221.                 foreach ($context['_seq'] as $context["_key"] => $context["associatedProduct"]) {
  222.                     // line 55
  223.                     echo "                            ";
  224.                     if (twig_get_attribute($this->env$this->source$context["associatedProduct"], "enabled", [], "any"falsefalsefalse55)) {
  225.                         // line 56
  226.                         echo "                            ";
  227.                         $context["variant"] = $this->env->getFilter('sylius_resolve_variant')->getCallable()($context["associatedProduct"]);
  228.                         // line 57
  229.                         echo "                            <div class=\"col-md-4 col-12 border-bottom-mob px-md-3 px-0 mx-md-0 mx-2 mb-4\">
  230.                                 <div class=\"row no-gutters h-100\">
  231.                                     <div class=\"col-md-12 col-sm-3 col-5 max-height-1 pr-md-0 pr-1\">
  232.                                         ";
  233.                         // line 60
  234.                         if (twig_first($this->envtwig_get_attribute($this->env$this->source$context["associatedProduct"], "images", [], "any"falsefalsefalse60))) {
  235.                             // line 61
  236.                             echo "                                            ";
  237.                             $context["path"] = $this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_first($this->envtwig_get_attribute($this->env$this->source$context["associatedProduct"], "getImagesByPosition", [], "any"falsefalsefalse61)), "path", [], "any"falsefalsefalse61), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'61$this->source); })()), "sylius_shop_product_thumbnail")) : ("sylius_shop_product_thumbnail")));
  238.                             // line 62
  239.                             echo "                                        ";
  240.                         } else {
  241.                             // line 63
  242.                             echo "                                            ";
  243.                             $context["path"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/spacer.png");
  244.                             // line 64
  245.                             echo "                                        ";
  246.                         }
  247.                         // line 65
  248.                         echo "                                         <a href=\"";
  249.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => twig_get_attribute($this->env$this->source$context["associatedProduct"], "slug", [], "any"falsefalsefalse65), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["associatedProduct"], "translation", [], "any"falsefalsefalse65), "locale", [], "any"falsefalsefalse65)]), "html"nulltrue);
  250.                         echo "\" title=\"";
  251.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["associatedProduct"], "name", [], "any"falsefalsefalse65), "html"nulltrue);
  252.                         echo "\" data-id=\"";
  253.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["associatedProduct"], "id", [], "any"falsefalsefalse65), "html"nulltrue);
  254.                         echo "\"><img src=\"";
  255.                         echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'65$this->source); })()), "html"nulltrue);
  256.                         echo "\" alt=\"";
  257.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["associatedProduct"], "name", [], "any"falsefalsefalse65), "html"nulltrue);
  258.                         echo " \" class=\"w-100\" /></a>
  259.                                     </div>
  260.                                     <div class=\"col-md-12 col-sm-3 col-7 d-flex flex-column flex-grow-l-desk pl-md-0 pl-2 pt-md-0 pt-2\">
  261.                                         <div class=\"font-12  pb-2 flex-grow-l-desk\"> <a href=\"";
  262.                         // line 68
  263.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => twig_get_attribute($this->env$this->source$context["associatedProduct"], "slug", [], "any"falsefalsefalse68), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["associatedProduct"], "translation", [], "any"falsefalsefalse68), "locale", [], "any"falsefalsefalse68)]), "html"nulltrue);
  264.                         echo "\" title=\"";
  265.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["associatedProduct"], "name", [], "any"falsefalsefalse68), "html"nulltrue);
  266.                         echo "\">";
  267.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["associatedProduct"], "name", [], "any"falsefalsefalse68), "html"nulltrue);
  268.                         echo " </a></div>
  269.                                         ";
  270.                         // line 69
  271.                         if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["associatedProduct"], "variants", [], "any"falsefalsefalse69), "empty", [], "method"falsefalsefalse69)) {
  272.                             // line 70
  273.                             echo "                                            ";
  274.                             if ($this->env->getFilter('sylius_resolve_variant')->getCallable()($context["associatedProduct"])) {
  275.                                 // line 71
  276.                                 echo "                                                ";
  277.                                 $context["variant"] = $this->env->getFilter('sylius_resolve_variant')->getCallable()($context["associatedProduct"]);
  278.                                 // line 72
  279.                                 echo "                                                <div class=\"d-flex align-items-center pt-1\">
  280.                                                     <strong class=\"price-promo\">";
  281.                                 // line 73
  282.                                 echo twig_call_macro($macros["money"], "macro_calculatePriceWithTax", [(isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'73$this->source); })()), (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'73$this->source); })())], 73$context$this->getSourceContext());
  283.                                 echo " </strong>
  284.                                                     ";
  285.                                 // line 74
  286.                                 $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.'74$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.'74$this->source); })()), "channel", [], "any"falsefalsefalse74)], "method"falsefalsefalse74);
  287.                                 // line 75
  288.                                 echo "
  289.                                                     ";
  290.                                 // line 76
  291.                                 if ((twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'76$this->source); })()), "originalPrice", [], "any"falsefalsefalse76) > twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'76$this->source); })()), "price", [], "any"falsefalsefalse76))) {
  292.                                     // line 77
  293.                                     echo "                                                        <span class=\"price-old ml-md-2 ml-3 pt-1\">";
  294.                                     echo twig_call_macro($macros["money"], "macro_calculateOriginalPriceWithTax", [$this->env->getFilter('sylius_resolve_variant')->getCallable()($context["associatedProduct"]), (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'77$this->source); })())], 77$context$this->getSourceContext());
  295.                                     echo "</span>
  296.                                                     ";
  297.                                 }
  298.                                 // line 79
  299.                                 echo "                                                </div>
  300.                                             ";
  301.                             }
  302.                             // line 81
  303.                             echo "                                        ";
  304.                         }
  305.                         // line 82
  306.                         echo "                                    </div>
  307.                                 </div>
  308.                             </div>
  309.                             ";
  310.                     }
  311.                     // line 87
  312.                     echo "                        ";
  313.                 }
  314.                 $_parent $context['_parent'];
  315.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['associatedProduct'], $context['_parent'], $context['loop']);
  316.                 $context array_intersect_key($context$_parent) + $_parent;
  317.                 // line 88
  318.                 echo "                    ";
  319.             }
  320.             // line 89
  321.             echo "                ";
  322.         }
  323.         $_parent $context['_parent'];
  324.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['association'], $context['_parent'], $context['loop']);
  325.         $context array_intersect_key($context$_parent) + $_parent;
  326.         // line 90
  327.         echo "            </div>
  328.         </div>
  329.     </div>
  330.     <div class=\"art-bg mt-0 page-article\">
  331.         <div class=\"article-top\">
  332.             <div class=\"contenuArticle\">
  333.                 <div class=\"max-container-5 p-0\">
  334.                     <div class=\"position-relative px-md-0 px-2\">
  335.                         ";
  336.         // line 99
  337.         $this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig""@SyliusShop/Product/show.html.twig"99)->display($context);
  338.         // line 100
  339.         echo "                    </div>
  340.                     ";
  341.         // line 101
  342.         if ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'101$this->source); })())) {
  343.             // line 102
  344.             echo "                        <div class=\"btn-back-wrap d-none\">
  345.                             <span id=\"btn-back\">
  346.                                 <span>Retour</span>
  347.                             </span>
  348.                         </div>
  349.                         <div class=\"products-bundles d-none justify-content-center\"></div>
  350.                     ";
  351.         }
  352.         // line 109
  353.         echo "
  354.                     <div id=\"art-detail\" class=\"art-detail d-md-flex";
  355.         // line 110
  356.         if ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'110$this->source); })())) {
  357.             echo " artconfig-bloc ";
  358.             if ((isset($context["advancedModel"]) || array_key_exists("advancedModel"$context) ? $context["advancedModel"] : (function () { throw new RuntimeError('Variable "advancedModel" does not exist.'110$this->source); })())) {
  359.                 echo " advanced-bloc";
  360.             }
  361.         }
  362.         echo "\" data-id=\"";
  363.         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.'110$this->source); })()), "id", [], "any"falsefalsefalse110), "html"nulltrue);
  364.         echo "\" data-add-product-visited-url=\"";
  365.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_add_product_visited_ajax");
  366.         echo "\">
  367.                         <div class=\"article-left\">
  368.                            ";
  369.         // line 112
  370.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar"$context);
  371.         echo "
  372.                             ";
  373.         // line 113
  374.         if ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'113$this->source); })())) {
  375.             // line 114
  376.             echo "                                <div class=\"sticky-bloc\">
  377.                                     <div class=\"default-config-img hide\" id=\"js-configurator\">
  378.                                         ";
  379.             // line 116
  380.             $this->loadTemplate("@SyliusShop/Product/Show/Configurator/_configuratorWidget.html.twig""@SyliusShop/Product/show.html.twig"116)->display($context);
  381.             // line 117
  382.             echo "                                    </div>
  383.                                     <div class=\"tabpeso-conf p-0 pt-lg-3\">
  384.                                     ";
  385.             // line 119
  386.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.tab_details"$context);
  387.             echo "
  388.                                     </div>
  389.                                 </div>
  390.                            ";
  391.         }
  392.         // line 123
  393.         echo "                        </div>
  394.                         <div class=\"article-right\">
  395.                             <div class=\"max-art-desc\">
  396.                                 ";
  397.         // line 126
  398.         if ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'126$this->source); })())) {
  399.             // line 127
  400.             echo "
  401.                                     <div class=\"product-bundle-name title-article-art\"></div>
  402.                                 ";
  403.         }
  404.         // line 130
  405.         echo "                                    <div class=\"d-none d-md-block\">
  406.                                         <div class=\"art-top-desc \">
  407.                                             <h1 id=\"sylius-product-name\" ";
  408.         // line 132
  409.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-name"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.'132$this->source); })()), "name", [], "any"falsefalsefalse132));
  410.         echo " class=\"title-article-art\">
  411.                                             ";
  412.         // line 133
  413.         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.'133$this->source); })()), "name", [], "any"falsefalsefalse133), "html"nulltrue);
  414.         echo "
  415.                                             </h1>
  416.                                         </div>
  417.                                     </div>
  418.                                 ";
  419.         // line 137
  420.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.right_sidebar"$context);
  421.         echo "
  422.                                 ";
  423.         // line 138
  424.         $context["slugPage_payment"] = $this->extensions['App\Twig\Extensions\Cms\PageExtension']->getSlugByCodeAndLocale("secure_payment");
  425.         // line 139
  426.         echo "                                ";
  427.         $context["slugPage_quick_expedition"] = $this->extensions['App\Twig\Extensions\Cms\PageExtension']->getSlugByCodeAndLocale("quick_expedition");
  428.         // line 140
  429.         echo "                                <div class=\"av-article mt-1 pt-3 px-0\">
  430.                                     <div class=\"row mx-xl-n2 mx-n1 justify-content-between\">
  431.                                         <div class=\"col-lg  col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
  432.                                             <a href=\"";
  433.         // line 143
  434.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_contact_request");
  435.         echo "\" class=\"box-av  text-center  ";
  436.         if ( !(isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'143$this->source); })())) {
  437.             echo "d-lg-flex align-items-center text-lg-left";
  438.         }
  439.         echo "\" title=\"";
  440.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance1");
  441.         echo "\">
  442.                                                 <strong class=\" d-block \"><img src=\"";
  443.         // line 144
  444.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/av1.svg"), "html"nulltrue);
  445.         echo "\" alt=\"\"></strong>
  446.                                                 <span class=\" d-block ";
  447.         // line 145
  448.         if ( !(isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'145$this->source); })())) {
  449.             echo "pl-md-2 pt-md-0";
  450.         }
  451.         echo "\">";
  452.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance1_br");
  453.         echo "</span>
  454.                                             </a>
  455.                                         </div>
  456.                                         <div class=\"col-lg col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
  457.                                             <a href=\"";
  458.         // line 149
  459.         if ( !(null === (isset($context["slugPage_payment"]) || array_key_exists("slugPage_payment"$context) ? $context["slugPage_payment"] : (function () { throw new RuntimeError('Variable "slugPage_payment" does not exist.'149$this->source); })()))) {
  460.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => (isset($context["slugPage_payment"]) || array_key_exists("slugPage_payment"$context) ? $context["slugPage_payment"] : (function () { throw new RuntimeError('Variable "slugPage_payment" does not exist.'149$this->source); })())]), "html"nulltrue);
  461.         }
  462.         echo "\" class=\"box-av    text-center ";
  463.         if ( !(isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'149$this->source); })())) {
  464.             echo "d-lg-flex align-items-center text-lg-left";
  465.         }
  466.         echo "\" title=\"";
  467.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance2");
  468.         echo "\">
  469.                                                 <strong class=\" d-block\"><img src=\"";
  470.         // line 150
  471.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/av2.svg"), "html"nulltrue);
  472.         echo "\" alt=\"\"></strong>
  473.                                                 <span class=\" d-block ";
  474.         // line 151
  475.         if ( !(isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'151$this->source); })())) {
  476.             echo "pl-md-2pt-md-0";
  477.         }
  478.         echo "\">";
  479.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance2_br");
  480.         echo "</span>
  481.                                             </a>
  482.                                         </div>
  483.                                         <div class=\"col-lg col-4 mb-md-0 text-center px-xl-2 px-1\">
  484.                                             <a href=\"";
  485.         // line 156
  486.         if ( !(null === (isset($context["slugPage_quick_expedition"]) || array_key_exists("slugPage_quick_expedition"$context) ? $context["slugPage_quick_expedition"] : (function () { throw new RuntimeError('Variable "slugPage_quick_expedition" does not exist.'156$this->source); })()))) {
  487.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => (isset($context["slugPage_quick_expedition"]) || array_key_exists("slugPage_quick_expedition"$context) ? $context["slugPage_quick_expedition"] : (function () { throw new RuntimeError('Variable "slugPage_quick_expedition" does not exist.'156$this->source); })())]), "html"nulltrue);
  488.         }
  489.         echo "\" class=\"box-av text-center ";
  490.         if ( !(isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'156$this->source); })())) {
  491.             echo "d-lg-flex align-items-center text-lg-left";
  492.         }
  493.         echo "\" title=\"";
  494.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance4"), "html"nulltrue);
  495.         echo "\">
  496.                                                 <strong class=\" d-block\"><img src=\"";
  497.         // line 157
  498.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/av4.svg"), "html"nulltrue);
  499.         echo "\" alt=\"\"></strong>
  500.                                                 <span class=\" d-block ";
  501.         // line 158
  502.         if ( !(isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'158$this->source); })())) {
  503.             echo "pl-md-2 pt-md-0";
  504.         }
  505.         echo "\">";
  506.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance4_br");
  507.         echo "</span>
  508.                                             </a>
  509.                                         </div>
  510.                                     </div>
  511.                                 </div>
  512.                             </div>
  513.                         </div>
  514.                     </div>
  515.                 </div>
  516.             </div>
  517.         </div>
  518.         <div class=\"max-container-3 p-0 mt-xl-3 pt-lg-3  ";
  519.         // line 170
  520.         if ((isset($context["configurator"]) || array_key_exists("configurator"$context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.'170$this->source); })())) {
  521.             echo " d-block d-md-none";
  522.         }
  523.         echo "\">
  524.             ";
  525.         // line 171
  526.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.tab_details"$context);
  527.         echo "
  528.         </div>
  529.     </div>
  530.     <div class=\"article-bottom pt-md-5 pt-4 ";
  531.         // line 176
  532.         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.'176$this->source); })()), "code", [], "any"falsefalsefalse176) != "test-t-shirt")) {
  533.             echo "mt-md-3 bg-light-site";
  534.         }
  535.         echo "  pb-md-3 \">
  536.         <div class=\"max-container-4 px-0 px-0\">
  537.             ";
  538.         // line 178
  539.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content"$context);
  540.         echo "
  541.         </div>
  542.     </div>
  543. ";
  544.         
  545.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  546.         
  547.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  548.     }
  549.     // line 182
  550.     public function block_javascripts($context, array $blocks = [])
  551.     {
  552.         $macros $this->macros;
  553.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  554.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  555.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  556.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  557.         // line 183
  558.         echo "
  559. ";
  560.         // line 184
  561.         $this->displayParentBlock("javascripts"$context$blocks);
  562.         echo "
  563. ";
  564.         // line 185
  565.         $this->loadTemplate("@SyliusUi/_javascripts.html.twig""@SyliusShop/Product/show.html.twig"185)->display(twig_array_merge($context, ["path" => "js/updateProductVariant.js"]));
  566.         // line 186
  567.         $this->loadTemplate("@SyliusUi/_javascripts.html.twig""@SyliusShop/Product/show.html.twig"186)->display(twig_array_merge($context, ["path" => "js/updateProduct.js"]));
  568.         // line 187
  569.         echo "<script>
  570.     \$(\"body\").on(\"click\", '.qte-moins-art', function (event) {
  571.         var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
  572.         var currentVal = parseInt(inputQuantity.val());
  573.         if(currentVal > 1){
  574.             inputQuantity.val(currentVal - 1);
  575.             inputQuantity.trigger('change');
  576.         }
  577.     });
  578.     \$(\"body\").on(\"click\", '.qte-plus-art', function (event) {
  579.         var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
  580.         var currentVal = parseInt(inputQuantity.val());
  581.         inputQuantity.val(currentVal + 1);
  582.         inputQuantity.trigger('change');
  583.     });
  584.     ";
  585.         // line 207
  586.         echo "    let customerId = ";
  587.         ((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.'207$this->source); })()), "user", [], "any"falsefalsefalse207)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'207$this->source); })()), "user", [], "any"falsefalsefalse207), "customer", [], "any"falsefalsefalse207), "id", [], "any"falsefalsefalse207), "html"nulltrue))) : (print (0)));
  588.         echo ";
  589.     let divData = document.getElementById('art-detail');
  590.     if (divData) {
  591.         let data = {productId: divData.dataset.id, customerId: customerId}
  592.         \$.ajax({
  593.             type: 'POST',
  594.             url: divData.dataset.addProductVisitedUrl,
  595.             data: data,
  596.             success(response) {
  597.             },
  598.             error() {
  599.             }
  600.         });
  601.     }
  602. </script>
  603. ";
  604.         
  605.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  606.         
  607.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  608.     }
  609.     public function getTemplateName()
  610.     {
  611.         return "@SyliusShop/Product/show.html.twig";
  612.     }
  613.     public function isTraitable()
  614.     {
  615.         return false;
  616.     }
  617.     public function getDebugInfo()
  618.     {
  619.         return array (  627 => 207,  606 => 187,  604 => 186,  602 => 185,  598 => 184,  595 => 183,  585 => 182,  571 => 178,  564 => 176,  556 => 171,  550 => 170,  531 => 158,  527 => 157,  515 => 156,  503 => 151,  499 => 150,  487 => 149,  476 => 145,  472 => 144,  462 => 143,  457 => 140,  454 => 139,  452 => 138,  448 => 137,  441 => 133,  437 => 132,  433 => 130,  428 => 127,  426 => 126,  421 => 123,  414 => 119,  410 => 117,  408 => 116,  404 => 114,  402 => 113,  398 => 112,  384 => 110,  381 => 109,  372 => 102,  370 => 101,  367 => 100,  365 => 99,  354 => 90,  348 => 89,  345 => 88,  339 => 87,  332 => 82,  329 => 81,  325 => 79,  319 => 77,  317 => 76,  314 => 75,  312 => 74,  308 => 73,  305 => 72,  302 => 71,  299 => 70,  297 => 69,  289 => 68,  274 => 65,  271 => 64,  268 => 63,  265 => 62,  262 => 61,  260 => 60,  255 => 57,  252 => 56,  249 => 55,  245 => 54,  240 => 53,  237 => 52,  233 => 51,  228 => 48,  225 => 47,  219 => 46,  216 => 45,  213 => 44,  210 => 43,  207 => 42,  204 => 41,  201 => 40,  196 => 39,  193 => 38,  187 => 37,  184 => 36,  181 => 35,  178 => 34,  175 => 33,  172 => 32,  169 => 31,  164 => 30,  162 => 29,  159 => 28,  156 => 27,  154 => 26,  149 => 24,  144 => 22,  139 => 21,  129 => 20,  117 => 17,  112 => 16,  106 => 14,  103 => 13,  93 => 12,  82 => 10,  72 => 9,  61 => 7,  59 => 5,  57 => 4,  55 => 3,  53 => 2,  51 => 1,  38 => 7,);
  620.     }
  621.     public function getSourceContext()
  622.     {
  623.         return new Source("{% set block = app_get_blocks('num_telephone', sylius.channel.code )  %}
  624. {% set block_h = app_get_blocks('horaires_magasin', sylius.channel.code )  %}
  625. {% set block_livr = app_get_blocks('imageperso_index', sylius.channel.code )  %}
  626. {% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  627. {% set context = {\"channel\": sylius.channel} %}
  628. {% extends '@SyliusShop/layout.html.twig' %}
  629. {% block title %}
  630.     {% include '@DediSyliusSEOPlugin/Shop/Header/_title.html.twig' with { 'resource': product ?? sylius.channel } %}
  631. {% endblock %}
  632. {% block metatags %}
  633.     {% if product.metaKeywords is not empty %}
  634.         <meta name=\"keywords\" content=\"{{ product.metaKeywords }}\" />
  635.     {% endif %}
  636.     {{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) }}
  637.     {{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
  638. {% endblock %}
  639. {% block content %}
  640.     {{ encore_entry_script_tags('fabric', null, 'bootstrapTheme') }}
  641.     {{ encore_entry_script_tags('configurator', null, 'bootstrapTheme') }}
  642.     {{ render(url('app_shop_geolocalisation')) }}
  643.     {% set configurator = false %}
  644.     {% set advancedModel = false %}
  645.     {% if product.isBundle and product.productBundle %}
  646.         {% for productBundleItem in product.productBundle.productBundleItems %}
  647.             {% if productBundleItem.productVariant.model %}
  648.                 {% set configurator = true %}
  649.                 {% if productBundleItem.productVariant.model.advanced %}
  650.                     {% set advancedModel = true %}
  651.                 {% endif %}
  652.             {% endif %}
  653.         {% endfor %}
  654.     {% elseif product.variants|length > 0 %}
  655.         {% for variant in product.variants %}
  656.             {% if variant.model %}
  657.                 {% set configurator = true %}
  658.                 {% if variant.model.advanced %}
  659.                     {% set advancedModel = true %}
  660.                 {% endif %}
  661.             {% endif %}
  662.         {% endfor %}
  663.     {% endif %}
  664.     <div class=\"hide-cross-page\">
  665.         <div id=\"cross-selling-add-to-cart\" class=\"pt-3\">
  666.             <div class=\"row pt-2 mx-md-n3 mx-0\">
  667.                 {% for association in product.associations  %}
  668.                     {% if association.getType().getCode() == \"cross_selling_add_to_cart\" and association.associatedProducts|length > 0 %}
  669.                         <div class=\"modal-title titre-popup color-purple-s title-popup-cross-selling\">{{'app.product.pour_completer'|trans}}</div>
  670.                         {% for associatedProduct in association.associatedProducts %}
  671.                             {% if associatedProduct.enabled %}
  672.                             {% set variant = associatedProduct|sylius_resolve_variant %}
  673.                             <div class=\"col-md-4 col-12 border-bottom-mob px-md-3 px-0 mx-md-0 mx-2 mb-4\">
  674.                                 <div class=\"row no-gutters h-100\">
  675.                                     <div class=\"col-md-12 col-sm-3 col-5 max-height-1 pr-md-0 pr-1\">
  676.                                         {% if associatedProduct.images|first %}
  677.                                             {% set path = associatedProduct.getImagesByPosition|first.path|imagine_filter(filter|default('sylius_shop_product_thumbnail')) %}
  678.                                         {% else %}
  679.                                             {% set path = asset('images/spacer.png') %}
  680.                                         {% endif %}
  681.                                          <a href=\"{{ path('sylius_shop_product_show', {'slug': associatedProduct.slug, '_locale': associatedProduct.translation.locale}) }}\" title=\"{{ associatedProduct.name }}\" data-id=\"{{ associatedProduct.id }}\"><img src=\"{{ path }}\" alt=\"{{ associatedProduct.name }} \" class=\"w-100\" /></a>
  682.                                     </div>
  683.                                     <div class=\"col-md-12 col-sm-3 col-7 d-flex flex-column flex-grow-l-desk pl-md-0 pl-2 pt-md-0 pt-2\">
  684.                                         <div class=\"font-12  pb-2 flex-grow-l-desk\"> <a href=\"{{ path('sylius_shop_product_show', {'slug': associatedProduct.slug, '_locale': associatedProduct.translation.locale}) }}\" title=\"{{ associatedProduct.name }}\">{{ associatedProduct.name }} </a></div>
  685.                                         {% if not associatedProduct.variants.empty() %}
  686.                                             {% if associatedProduct|sylius_resolve_variant %}
  687.                                                 {% set variant = associatedProduct|sylius_resolve_variant %}
  688.                                                 <div class=\"d-flex align-items-center pt-1\">
  689.                                                     <strong class=\"price-promo\">{{ money.calculatePriceWithTax(variant, context) }} </strong>
  690.                                                     {% set channelpricing = variant.getChannelPricingForChannel(sylius.channel) %}
  691.                                                     {% if channelpricing.originalPrice > channelpricing.price  %}
  692.                                                         <span class=\"price-old ml-md-2 ml-3 pt-1\">{{ money.calculateOriginalPriceWithTax(associatedProduct|sylius_resolve_variant, context) }}</span>
  693.                                                     {% endif %}
  694.                                                 </div>
  695.                                             {% endif %}
  696.                                         {% endif %}
  697.                                     </div>
  698.                                 </div>
  699.                             </div>
  700.                             {% endif %}
  701.                         {% endfor %}
  702.                     {% endif %}
  703.                 {% endfor %}
  704.             </div>
  705.         </div>
  706.     </div>
  707.     <div class=\"art-bg mt-0 page-article\">
  708.         <div class=\"article-top\">
  709.             <div class=\"contenuArticle\">
  710.                 <div class=\"max-container-5 p-0\">
  711.                     <div class=\"position-relative px-md-0 px-2\">
  712.                         {% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
  713.                     </div>
  714.                     {% if configurator %}
  715.                         <div class=\"btn-back-wrap d-none\">
  716.                             <span id=\"btn-back\">
  717.                                 <span>Retour</span>
  718.                             </span>
  719.                         </div>
  720.                         <div class=\"products-bundles d-none justify-content-center\"></div>
  721.                     {% endif %}
  722.                     <div id=\"art-detail\" class=\"art-detail d-md-flex{% if configurator %} artconfig-bloc {% if advancedModel %} advanced-bloc{% endif %}{% endif %}\" data-id=\"{{ product.id }}\" data-add-product-visited-url=\"{{ path('app_shop_add_product_visited_ajax') }}\">
  723.                         <div class=\"article-left\">
  724.                            {{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
  725.                             {% if configurator %}
  726.                                 <div class=\"sticky-bloc\">
  727.                                     <div class=\"default-config-img hide\" id=\"js-configurator\">
  728.                                         {% include '@SyliusShop/Product/Show/Configurator/_configuratorWidget.html.twig' %}
  729.                                     </div>
  730.                                     <div class=\"tabpeso-conf p-0 pt-lg-3\">
  731.                                     {{ sylius_template_event('sylius.shop.product.show.tab_details', _context) }}
  732.                                     </div>
  733.                                 </div>
  734.                            {% endif %}
  735.                         </div>
  736.                         <div class=\"article-right\">
  737.                             <div class=\"max-art-desc\">
  738.                                 {% if configurator %}
  739.                                     <div class=\"product-bundle-name title-article-art\"></div>
  740.                                 {% endif %}
  741.                                     <div class=\"d-none d-md-block\">
  742.                                         <div class=\"art-top-desc \">
  743.                                             <h1 id=\"sylius-product-name\" {{ sylius_test_html_attribute('product-name', product.name) }} class=\"title-article-art\">
  744.                                             {{ product.name }}
  745.                                             </h1>
  746.                                         </div>
  747.                                     </div>
  748.                                 {{ sylius_template_event('sylius.shop.product.show.right_sidebar', _context) }}
  749.                                 {% set slugPage_payment = app_get_slug_by_code_and_locale('secure_payment') %}
  750.                                 {% set slugPage_quick_expedition = app_get_slug_by_code_and_locale('quick_expedition') %}
  751.                                 <div class=\"av-article mt-1 pt-3 px-0\">
  752.                                     <div class=\"row mx-xl-n2 mx-n1 justify-content-between\">
  753.                                         <div class=\"col-lg  col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
  754.                                             <a href=\"{{ path('sylius_shop_contact_request') }}\" class=\"box-av  text-center  {% if not configurator %}d-lg-flex align-items-center text-lg-left{% endif %}\" title=\"{{'app.footer.reinsurance1'|trans|raw}}\">
  755.                                                 <strong class=\" d-block \"><img src=\"{{asset('images/av1.svg')}}\" alt=\"\"></strong>
  756.                                                 <span class=\" d-block {% if not configurator %}pl-md-2 pt-md-0{% endif %}\">{{'app.footer.reinsurance1_br'|trans|raw}}</span>
  757.                                             </a>
  758.                                         </div>
  759.                                         <div class=\"col-lg col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
  760.                                             <a href=\"{% if slugPage_payment is not null  %}{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug': slugPage_payment }) }}{% endif %}\" class=\"box-av    text-center {% if not configurator %}d-lg-flex align-items-center text-lg-left{% endif %}\" title=\"{{'app.footer.reinsurance2'|trans|raw}}\">
  761.                                                 <strong class=\" d-block\"><img src=\"{{asset('images/av2.svg')}}\" alt=\"\"></strong>
  762.                                                 <span class=\" d-block {% if not configurator %}pl-md-2pt-md-0{% endif %}\">{{'app.footer.reinsurance2_br'|trans|raw}}</span>
  763.                                             </a>
  764.                                         </div>
  765.                                         <div class=\"col-lg col-4 mb-md-0 text-center px-xl-2 px-1\">
  766.                                             <a href=\"{% if slugPage_quick_expedition is not null  %}{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug': slugPage_quick_expedition }) }}{% endif %}\" class=\"box-av text-center {% if not configurator %}d-lg-flex align-items-center text-lg-left{% endif %}\" title=\"{{'app.footer.reinsurance4'|trans}}\">
  767.                                                 <strong class=\" d-block\"><img src=\"{{asset('images/av4.svg')}}\" alt=\"\"></strong>
  768.                                                 <span class=\" d-block {% if not configurator %}pl-md-2 pt-md-0{% endif %}\">{{'app.footer.reinsurance4_br'|trans|raw}}</span>
  769.                                             </a>
  770.                                         </div>
  771.                                     </div>
  772.                                 </div>
  773.                             </div>
  774.                         </div>
  775.                     </div>
  776.                 </div>
  777.             </div>
  778.         </div>
  779.         <div class=\"max-container-3 p-0 mt-xl-3 pt-lg-3  {% if  configurator %} d-block d-md-none{% endif %}\">
  780.             {{ sylius_template_event('sylius.shop.product.show.tab_details', _context) }}
  781.         </div>
  782.     </div>
  783.     <div class=\"article-bottom pt-md-5 pt-4 {% if  product.code !=  \"test-t-shirt\" %}mt-md-3 bg-light-site{% endif %}  pb-md-3 \">
  784.         <div class=\"max-container-4 px-0 px-0\">
  785.             {{ sylius_template_event('sylius.shop.product.show.content', _context) }}
  786.         </div>
  787.     </div>
  788. {% endblock %}
  789. {% block javascripts %}
  790. {{ parent() }}
  791. {% include '@SyliusUi/_javascripts.html.twig' with {path: 'js/updateProductVariant.js'} %}
  792. {% include '@SyliusUi/_javascripts.html.twig' with {path: 'js/updateProduct.js'} %}
  793. <script>
  794.     \$(\"body\").on(\"click\", '.qte-moins-art', function (event) {
  795.         var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
  796.         var currentVal = parseInt(inputQuantity.val());
  797.         if(currentVal > 1){
  798.             inputQuantity.val(currentVal - 1);
  799.             inputQuantity.trigger('change');
  800.         }
  801.     });
  802.     \$(\"body\").on(\"click\", '.qte-plus-art', function (event) {
  803.         var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
  804.         var currentVal = parseInt(inputQuantity.val());
  805.         inputQuantity.val(currentVal + 1);
  806.         inputQuantity.trigger('change');
  807.     });
  808.     {# add this product to customer's products visited (in database) #}
  809.     let customerId = {{ app.user ? app.user.customer.id : 0 }};
  810.     let divData = document.getElementById('art-detail');
  811.     if (divData) {
  812.         let data = {productId: divData.dataset.id, customerId: customerId}
  813.         \$.ajax({
  814.             type: 'POST',
  815.             url: divData.dataset.addProductVisitedUrl,
  816.             data: data,
  817.             success(response) {
  818.             },
  819.             error() {
  820.             }
  821.         });
  822.     }
  823. </script>
  824. {% endblock %}
  825. ""@SyliusShop/Product/show.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/show.html.twig");
  826.     }
  827. }