<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @SyliusShop/Product/show.html.twig */
class __TwigTemplate_2dcac586e371a720a3a0f083bb5982434dbc0f3b61cb05d82962fbca3920859a extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 7
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/show.html.twig"));
// line 1
$context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("num_telephone", twig_get_attribute($this->env, $this->source, 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.', 1, $this->source); })()), "channel", [], "any", false, false, false, 1), "code", [], "any", false, false, false, 1));
// line 2
$context["block_h"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("horaires_magasin", twig_get_attribute($this->env, $this->source, 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.', 2, $this->source); })()), "channel", [], "any", false, false, false, 2), "code", [], "any", false, false, false, 2));
// line 3
$context["block_livr"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("imageperso_index", twig_get_attribute($this->env, $this->source, 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.', 3, $this->source); })()), "channel", [], "any", false, false, false, 3), "code", [], "any", false, false, false, 3));
// line 4
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@SyliusShop/Product/show.html.twig", 4)->unwrap();
// line 5
$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", false, false, false, 5)];
// line 7
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/Product/show.html.twig", 7);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 9
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 10
echo " ";
$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", false, false, false, 10)))]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 13
echo " ";
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", false, false, false, 13))) {
// line 14
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, 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.', 14, $this->source); })()), "metaKeywords", [], "any", false, false, false, 14), "html", null, true);
echo "\" />
";
}
// line 16
echo " ";
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", false, false, false, 16)))]);
echo "
";
// line 17
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.rich_snippets");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 21
echo " ";
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("fabric", null, "bootstrapTheme");
echo "
";
// line 22
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("configurator", null, "bootstrapTheme");
echo "
";
// line 24
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_geolocalisation"));
echo "
";
// line 26
$context["configurator"] = false;
// line 27
echo " ";
$context["advancedModel"] = false;
// line 28
echo "
";
// line 29
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", false, false, false, 29) && 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", false, false, false, 29))) {
// line 30
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 30, $this->source); })()), "productBundle", [], "any", false, false, false, 30), "productBundleItems", [], "any", false, false, false, 30));
foreach ($context['_seq'] as $context["_key"] => $context["productBundleItem"]) {
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["productBundleItem"], "productVariant", [], "any", false, false, false, 31), "model", [], "any", false, false, false, 31)) {
// line 32
echo " ";
$context["configurator"] = true;
// line 33
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["productBundleItem"], "productVariant", [], "any", false, false, false, 33), "model", [], "any", false, false, false, 33), "advanced", [], "any", false, false, false, 33)) {
// line 34
echo " ";
$context["advancedModel"] = true;
// line 35
echo " ";
}
// line 36
echo " ";
}
// line 37
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productBundleItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo " ";
} elseif ((twig_length_filter($this->env, 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.', 38, $this->source); })()), "variants", [], "any", false, false, false, 38)) > 0)) {
// line 39
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 39));
foreach ($context['_seq'] as $context["_key"] => $context["variant"]) {
// line 40
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["variant"], "model", [], "any", false, false, false, 40)) {
// line 41
echo " ";
$context["configurator"] = true;
// line 42
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["variant"], "model", [], "any", false, false, false, 42), "advanced", [], "any", false, false, false, 42)) {
// line 43
echo " ";
$context["advancedModel"] = true;
// line 44
echo " ";
}
// line 45
echo " ";
}
// line 46
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variant'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo " ";
}
// line 48
echo " <div class=\"hide-cross-page\">
<div id=\"cross-selling-add-to-cart\" class=\"pt-3\">
<div class=\"row pt-2 mx-md-n3 mx-0\">
";
// line 51
$context['_parent'] = $context;
$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", false, false, false, 51));
foreach ($context['_seq'] as $context["_key"] => $context["association"]) {
// line 52
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["association"], "getType", [], "method", false, false, false, 52), "getCode", [], "method", false, false, false, 52) == "cross_selling_add_to_cart") && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["association"], "associatedProducts", [], "any", false, false, false, 52)) > 0))) {
// line 53
echo " <div class=\"modal-title titre-popup color-purple-s title-popup-cross-selling\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.pour_completer"), "html", null, true);
echo "</div>
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["association"], "associatedProducts", [], "any", false, false, false, 54));
foreach ($context['_seq'] as $context["_key"] => $context["associatedProduct"]) {
// line 55
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "enabled", [], "any", false, false, false, 55)) {
// line 56
echo " ";
$context["variant"] = $this->env->getFilter('sylius_resolve_variant')->getCallable()($context["associatedProduct"]);
// line 57
echo " <div class=\"col-md-4 col-12 border-bottom-mob px-md-3 px-0 mx-md-0 mx-2 mb-4\">
<div class=\"row no-gutters h-100\">
<div class=\"col-md-12 col-sm-3 col-5 max-height-1 pr-md-0 pr-1\">
";
// line 60
if (twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "images", [], "any", false, false, false, 60))) {
// line 61
echo " ";
$context["path"] = $this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env, $this->source, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "getImagesByPosition", [], "any", false, false, false, 61)), "path", [], "any", false, false, false, 61), ((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")));
// line 62
echo " ";
} else {
// line 63
echo " ";
$context["path"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/spacer.png");
// line 64
echo " ";
}
// line 65
echo " <a href=\"";
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", false, false, false, 65), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "translation", [], "any", false, false, false, 65), "locale", [], "any", false, false, false, 65)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "name", [], "any", false, false, false, 65), "html", null, true);
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "id", [], "any", false, false, false, 65), "html", null, true);
echo "\"><img src=\"";
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", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "name", [], "any", false, false, false, 65), "html", null, true);
echo " \" class=\"w-100\" /></a>
</div>
<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\">
<div class=\"font-12 pb-2 flex-grow-l-desk\"> <a href=\"";
// line 68
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", false, false, false, 68), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "translation", [], "any", false, false, false, 68), "locale", [], "any", false, false, false, 68)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "name", [], "any", false, false, false, 68), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "name", [], "any", false, false, false, 68), "html", null, true);
echo " </a></div>
";
// line 69
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["associatedProduct"], "variants", [], "any", false, false, false, 69), "empty", [], "method", false, false, false, 69)) {
// line 70
echo " ";
if ($this->env->getFilter('sylius_resolve_variant')->getCallable()($context["associatedProduct"])) {
// line 71
echo " ";
$context["variant"] = $this->env->getFilter('sylius_resolve_variant')->getCallable()($context["associatedProduct"]);
// line 72
echo " <div class=\"d-flex align-items-center pt-1\">
<strong class=\"price-promo\">";
// line 73
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());
echo " </strong>
";
// line 74
$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", [0 => 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", false, false, false, 74)], "method", false, false, false, 74);
// line 75
echo "
";
// line 76
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", false, false, false, 76) > 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", false, false, false, 76))) {
// line 77
echo " <span class=\"price-old ml-md-2 ml-3 pt-1\">";
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());
echo "</span>
";
}
// line 79
echo " </div>
";
}
// line 81
echo " ";
}
// line 82
echo " </div>
</div>
</div>
";
}
// line 87
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['associatedProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " ";
}
// line 89
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['association'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 90
echo " </div>
</div>
</div>
<div class=\"art-bg mt-0 page-article\">
<div class=\"article-top\">
<div class=\"contenuArticle\">
<div class=\"max-container-5 p-0\">
<div class=\"position-relative px-md-0 px-2\">
";
// line 99
$this->loadTemplate("@SyliusShop/Product/Show/_breadcrumb.html.twig", "@SyliusShop/Product/show.html.twig", 99)->display($context);
// line 100
echo " </div>
";
// line 101
if ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 101, $this->source); })())) {
// line 102
echo " <div class=\"btn-back-wrap d-none\">
<span id=\"btn-back\">
<span>Retour</span>
</span>
</div>
<div class=\"products-bundles d-none justify-content-center\"></div>
";
}
// line 109
echo "
<div id=\"art-detail\" class=\"art-detail d-md-flex";
// line 110
if ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 110, $this->source); })())) {
echo " artconfig-bloc ";
if ((isset($context["advancedModel"]) || array_key_exists("advancedModel", $context) ? $context["advancedModel"] : (function () { throw new RuntimeError('Variable "advancedModel" does not exist.', 110, $this->source); })())) {
echo " advanced-bloc";
}
}
echo "\" data-id=\"";
echo twig_escape_filter($this->env, 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.', 110, $this->source); })()), "id", [], "any", false, false, false, 110), "html", null, true);
echo "\" data-add-product-visited-url=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_add_product_visited_ajax");
echo "\">
<div class=\"article-left\">
";
// line 112
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.left_sidebar", $context);
echo "
";
// line 113
if ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 113, $this->source); })())) {
// line 114
echo " <div class=\"sticky-bloc\">
<div class=\"default-config-img hide\" id=\"js-configurator\">
";
// line 116
$this->loadTemplate("@SyliusShop/Product/Show/Configurator/_configuratorWidget.html.twig", "@SyliusShop/Product/show.html.twig", 116)->display($context);
// line 117
echo " </div>
<div class=\"tabpeso-conf p-0 pt-lg-3\">
";
// line 119
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.tab_details", $context);
echo "
</div>
</div>
";
}
// line 123
echo " </div>
<div class=\"article-right\">
<div class=\"max-art-desc\">
";
// line 126
if ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 126, $this->source); })())) {
// line 127
echo "
<div class=\"product-bundle-name title-article-art\"></div>
";
}
// line 130
echo " <div class=\"d-none d-md-block\">
<div class=\"art-top-desc \">
<h1 id=\"sylius-product-name\" ";
// line 132
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", false, false, false, 132));
echo " class=\"title-article-art\">
";
// line 133
echo twig_escape_filter($this->env, 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.', 133, $this->source); })()), "name", [], "any", false, false, false, 133), "html", null, true);
echo "
</h1>
</div>
</div>
";
// line 137
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.right_sidebar", $context);
echo "
";
// line 138
$context["slugPage_payment"] = $this->extensions['App\Twig\Extensions\Cms\PageExtension']->getSlugByCodeAndLocale("secure_payment");
// line 139
echo " ";
$context["slugPage_quick_expedition"] = $this->extensions['App\Twig\Extensions\Cms\PageExtension']->getSlugByCodeAndLocale("quick_expedition");
// line 140
echo " <div class=\"av-article mt-1 pt-3 px-0\">
<div class=\"row mx-xl-n2 mx-n1 justify-content-between\">
<div class=\"col-lg col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
<a href=\"";
// line 143
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_contact_request");
echo "\" class=\"box-av text-center ";
if ( !(isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 143, $this->source); })())) {
echo "d-lg-flex align-items-center text-lg-left";
}
echo "\" title=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance1");
echo "\">
<strong class=\" d-block \"><img src=\"";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/av1.svg"), "html", null, true);
echo "\" alt=\"\"></strong>
<span class=\" d-block ";
// line 145
if ( !(isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 145, $this->source); })())) {
echo "pl-md-2 pt-md-0";
}
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance1_br");
echo "</span>
</a>
</div>
<div class=\"col-lg col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
<a href=\"";
// line 149
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); })()))) {
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", null, true);
}
echo "\" class=\"box-av text-center ";
if ( !(isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 149, $this->source); })())) {
echo "d-lg-flex align-items-center text-lg-left";
}
echo "\" title=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance2");
echo "\">
<strong class=\" d-block\"><img src=\"";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/av2.svg"), "html", null, true);
echo "\" alt=\"\"></strong>
<span class=\" d-block ";
// line 151
if ( !(isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 151, $this->source); })())) {
echo "pl-md-2pt-md-0";
}
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance2_br");
echo "</span>
</a>
</div>
<div class=\"col-lg col-4 mb-md-0 text-center px-xl-2 px-1\">
<a href=\"";
// line 156
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); })()))) {
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", null, true);
}
echo "\" class=\"box-av text-center ";
if ( !(isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 156, $this->source); })())) {
echo "d-lg-flex align-items-center text-lg-left";
}
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance4"), "html", null, true);
echo "\">
<strong class=\" d-block\"><img src=\"";
// line 157
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/av4.svg"), "html", null, true);
echo "\" alt=\"\"></strong>
<span class=\" d-block ";
// line 158
if ( !(isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 158, $this->source); })())) {
echo "pl-md-2 pt-md-0";
}
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.footer.reinsurance4_br");
echo "</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"max-container-3 p-0 mt-xl-3 pt-lg-3 ";
// line 170
if ((isset($context["configurator"]) || array_key_exists("configurator", $context) ? $context["configurator"] : (function () { throw new RuntimeError('Variable "configurator" does not exist.', 170, $this->source); })())) {
echo " d-block d-md-none";
}
echo "\">
";
// line 171
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.tab_details", $context);
echo "
</div>
</div>
<div class=\"article-bottom pt-md-5 pt-4 ";
// line 176
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", false, false, false, 176) != "test-t-shirt")) {
echo "mt-md-3 bg-light-site";
}
echo " pb-md-3 \">
<div class=\"max-container-4 px-0 px-0\">
";
// line 178
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.product.show.content", $context);
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 182
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 183
echo "
";
// line 184
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 185
$this->loadTemplate("@SyliusUi/_javascripts.html.twig", "@SyliusShop/Product/show.html.twig", 185)->display(twig_array_merge($context, ["path" => "js/updateProductVariant.js"]));
// line 186
$this->loadTemplate("@SyliusUi/_javascripts.html.twig", "@SyliusShop/Product/show.html.twig", 186)->display(twig_array_merge($context, ["path" => "js/updateProduct.js"]));
// line 187
echo "<script>
\$(\"body\").on(\"click\", '.qte-moins-art', function (event) {
var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
var currentVal = parseInt(inputQuantity.val());
if(currentVal > 1){
inputQuantity.val(currentVal - 1);
inputQuantity.trigger('change');
}
});
\$(\"body\").on(\"click\", '.qte-plus-art', function (event) {
var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
var currentVal = parseInt(inputQuantity.val());
inputQuantity.val(currentVal + 1);
inputQuantity.trigger('change');
});
";
// line 207
echo " let customerId = ";
((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", false, false, false, 207)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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", false, false, false, 207), "customer", [], "any", false, false, false, 207), "id", [], "any", false, false, false, 207), "html", null, true))) : (print (0)));
echo ";
let divData = document.getElementById('art-detail');
if (divData) {
let data = {productId: divData.dataset.id, customerId: customerId}
\$.ajax({
type: 'POST',
url: divData.dataset.addProductVisitedUrl,
data: data,
success(response) {
},
error() {
}
});
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set block = app_get_blocks('num_telephone', sylius.channel.code ) %}
{% set block_h = app_get_blocks('horaires_magasin', sylius.channel.code ) %}
{% set block_livr = app_get_blocks('imageperso_index', sylius.channel.code ) %}
{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{% set context = {\"channel\": sylius.channel} %}
{% extends '@SyliusShop/layout.html.twig' %}
{% block title %}
{% include '@DediSyliusSEOPlugin/Shop/Header/_title.html.twig' with { 'resource': product ?? sylius.channel } %}
{% endblock %}
{% block metatags %}
{% if product.metaKeywords is not empty %}
<meta name=\"keywords\" content=\"{{ product.metaKeywords }}\" />
{% endif %}
{{ sylius_template_event('dedi_sylius_seo_plugin.metatags', { resource: product ?? sylius.channel }) }}
{{ sylius_template_event('dedi_sylius_seo_plugin.rich_snippets') }}
{% endblock %}
{% block content %}
{{ encore_entry_script_tags('fabric', null, 'bootstrapTheme') }}
{{ encore_entry_script_tags('configurator', null, 'bootstrapTheme') }}
{{ render(url('app_shop_geolocalisation')) }}
{% set configurator = false %}
{% set advancedModel = false %}
{% if product.isBundle and product.productBundle %}
{% for productBundleItem in product.productBundle.productBundleItems %}
{% if productBundleItem.productVariant.model %}
{% set configurator = true %}
{% if productBundleItem.productVariant.model.advanced %}
{% set advancedModel = true %}
{% endif %}
{% endif %}
{% endfor %}
{% elseif product.variants|length > 0 %}
{% for variant in product.variants %}
{% if variant.model %}
{% set configurator = true %}
{% if variant.model.advanced %}
{% set advancedModel = true %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<div class=\"hide-cross-page\">
<div id=\"cross-selling-add-to-cart\" class=\"pt-3\">
<div class=\"row pt-2 mx-md-n3 mx-0\">
{% for association in product.associations %}
{% if association.getType().getCode() == \"cross_selling_add_to_cart\" and association.associatedProducts|length > 0 %}
<div class=\"modal-title titre-popup color-purple-s title-popup-cross-selling\">{{'app.product.pour_completer'|trans}}</div>
{% for associatedProduct in association.associatedProducts %}
{% if associatedProduct.enabled %}
{% set variant = associatedProduct|sylius_resolve_variant %}
<div class=\"col-md-4 col-12 border-bottom-mob px-md-3 px-0 mx-md-0 mx-2 mb-4\">
<div class=\"row no-gutters h-100\">
<div class=\"col-md-12 col-sm-3 col-5 max-height-1 pr-md-0 pr-1\">
{% if associatedProduct.images|first %}
{% set path = associatedProduct.getImagesByPosition|first.path|imagine_filter(filter|default('sylius_shop_product_thumbnail')) %}
{% else %}
{% set path = asset('images/spacer.png') %}
{% endif %}
<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>
</div>
<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\">
<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>
{% if not associatedProduct.variants.empty() %}
{% if associatedProduct|sylius_resolve_variant %}
{% set variant = associatedProduct|sylius_resolve_variant %}
<div class=\"d-flex align-items-center pt-1\">
<strong class=\"price-promo\">{{ money.calculatePriceWithTax(variant, context) }} </strong>
{% set channelpricing = variant.getChannelPricingForChannel(sylius.channel) %}
{% if channelpricing.originalPrice > channelpricing.price %}
<span class=\"price-old ml-md-2 ml-3 pt-1\">{{ money.calculateOriginalPriceWithTax(associatedProduct|sylius_resolve_variant, context) }}</span>
{% endif %}
</div>
{% endif %}
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
<div class=\"art-bg mt-0 page-article\">
<div class=\"article-top\">
<div class=\"contenuArticle\">
<div class=\"max-container-5 p-0\">
<div class=\"position-relative px-md-0 px-2\">
{% include '@SyliusShop/Product/Show/_breadcrumb.html.twig' %}
</div>
{% if configurator %}
<div class=\"btn-back-wrap d-none\">
<span id=\"btn-back\">
<span>Retour</span>
</span>
</div>
<div class=\"products-bundles d-none justify-content-center\"></div>
{% endif %}
<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') }}\">
<div class=\"article-left\">
{{ sylius_template_event('sylius.shop.product.show.left_sidebar', _context) }}
{% if configurator %}
<div class=\"sticky-bloc\">
<div class=\"default-config-img hide\" id=\"js-configurator\">
{% include '@SyliusShop/Product/Show/Configurator/_configuratorWidget.html.twig' %}
</div>
<div class=\"tabpeso-conf p-0 pt-lg-3\">
{{ sylius_template_event('sylius.shop.product.show.tab_details', _context) }}
</div>
</div>
{% endif %}
</div>
<div class=\"article-right\">
<div class=\"max-art-desc\">
{% if configurator %}
<div class=\"product-bundle-name title-article-art\"></div>
{% endif %}
<div class=\"d-none d-md-block\">
<div class=\"art-top-desc \">
<h1 id=\"sylius-product-name\" {{ sylius_test_html_attribute('product-name', product.name) }} class=\"title-article-art\">
{{ product.name }}
</h1>
</div>
</div>
{{ sylius_template_event('sylius.shop.product.show.right_sidebar', _context) }}
{% set slugPage_payment = app_get_slug_by_code_and_locale('secure_payment') %}
{% set slugPage_quick_expedition = app_get_slug_by_code_and_locale('quick_expedition') %}
<div class=\"av-article mt-1 pt-3 px-0\">
<div class=\"row mx-xl-n2 mx-n1 justify-content-between\">
<div class=\"col-lg col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
<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}}\">
<strong class=\" d-block \"><img src=\"{{asset('images/av1.svg')}}\" alt=\"\"></strong>
<span class=\" d-block {% if not configurator %}pl-md-2 pt-md-0{% endif %}\">{{'app.footer.reinsurance1_br'|trans|raw}}</span>
</a>
</div>
<div class=\"col-lg col-4 mb-4 mb-md-0 text-center px-xl-2 px-1\">
<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}}\">
<strong class=\" d-block\"><img src=\"{{asset('images/av2.svg')}}\" alt=\"\"></strong>
<span class=\" d-block {% if not configurator %}pl-md-2pt-md-0{% endif %}\">{{'app.footer.reinsurance2_br'|trans|raw}}</span>
</a>
</div>
<div class=\"col-lg col-4 mb-md-0 text-center px-xl-2 px-1\">
<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}}\">
<strong class=\" d-block\"><img src=\"{{asset('images/av4.svg')}}\" alt=\"\"></strong>
<span class=\" d-block {% if not configurator %}pl-md-2 pt-md-0{% endif %}\">{{'app.footer.reinsurance4_br'|trans|raw}}</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"max-container-3 p-0 mt-xl-3 pt-lg-3 {% if configurator %} d-block d-md-none{% endif %}\">
{{ sylius_template_event('sylius.shop.product.show.tab_details', _context) }}
</div>
</div>
<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 \">
<div class=\"max-container-4 px-0 px-0\">
{{ sylius_template_event('sylius.shop.product.show.content', _context) }}
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% include '@SyliusUi/_javascripts.html.twig' with {path: 'js/updateProductVariant.js'} %}
{% include '@SyliusUi/_javascripts.html.twig' with {path: 'js/updateProduct.js'} %}
<script>
\$(\"body\").on(\"click\", '.qte-moins-art', function (event) {
var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
var currentVal = parseInt(inputQuantity.val());
if(currentVal > 1){
inputQuantity.val(currentVal - 1);
inputQuantity.trigger('change');
}
});
\$(\"body\").on(\"click\", '.qte-plus-art', function (event) {
var inputQuantity = \$(this).closest('.sylius-quantity').find('input[type=\"number\"]');
var currentVal = parseInt(inputQuantity.val());
inputQuantity.val(currentVal + 1);
inputQuantity.trigger('change');
});
{# add this product to customer's products visited (in database) #}
let customerId = {{ app.user ? app.user.customer.id : 0 }};
let divData = document.getElementById('art-detail');
if (divData) {
let data = {productId: divData.dataset.id, customerId: customerId}
\$.ajax({
type: 'POST',
url: divData.dataset.addProductVisitedUrl,
data: data,
success(response) {
},
error() {
}
});
}
</script>
{% endblock %}
", "@SyliusShop/Product/show.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/show.html.twig");
}
}