var/cache/dev/twig/bc/bc7aec5be2e88f5610cd16a84f4cf195d157b0656a0f4869631192948909a6a5.php line 48

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. /* BornBundle:Product:listByProductCategoryId.html.twig */
  14. class __TwigTemplate_0a6836aff01c9c8ce732819a96f092ac936598ff3bfd441a4e88918652ac7132 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "pageTemplateDefault.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""BornBundle:Product:listByProductCategoryId.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""BornBundle:Product:listByProductCategoryId.html.twig"));
  38.         $this->parent $this->loadTemplate("pageTemplateDefault.html.twig""BornBundle:Product:listByProductCategoryId.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 4
  54.         echo "    ";
  55.         echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"areablock""content", ["allowed" => [=> "Breadcrumb"=> "MainStage"=> "MainStageCarousel"=> "StageSpecific"=> "StageFlat"], "group" => ["Stage Variationen" => [=> "Breadcrumb"=> "MainStage"=> "MainStageCarousel"=> "StageSpecific"=> "StageFlat"]]]);
  56.         // line 9
  57.         echo "
  58.     <div class=\"section\">
  59.         <div class=\"main-content flex-col product-list-view\">
  60.             ";
  61.         // line 12
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'12$this->source); })()));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["productkey"] => $context["product"]) {
  78.             // line 13
  79.             echo "                ";
  80.             $context["detailViewUri"] = $this->env->getFunction('pimcore_url')->getCallable()(["name" => twig_get_attribute($this->env$this->source,             // line 15
  81. $context["product"], "urlTitle", [], "any"falsefalsefalse15), "articlenumber" => twig_get_attribute($this->env$this->source,             // line 16
  82. $context["product"], "articleNumber", [], "any"falsefalsefalse16)], "shopHandlerProductDetailBorn");
  83.             // line 20
  84.             echo "
  85.                 ";
  86.             // line 21
  87.             $context["price"] = twig_get_attribute($this->env$this->source$context["product"], "osPrice", [], "array"falsefalsefalse21);
  88.             // line 22
  89.             echo "                ";
  90.             $context["currency"] = twig_get_attribute($this->env$this->source, (isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'22$this->source); })()), "getCurrency", [], "method"falsefalsefalse22);
  91.             // line 23
  92.             echo "
  93.                 <div class=\"col xs-12 m-6 l-4\">
  94.                     <div class=\"teaser image-text product\">
  95.                         <div class=\"teaser-content bb-flex-col\">
  96.                             <div class=\"image\">
  97.                                 <a href=\"";
  98.             // line 28
  99.             echo twig_escape_filter($this->env, (isset($context["detailViewUri"]) || array_key_exists("detailViewUri"$context) ? $context["detailViewUri"] : (function () { throw new RuntimeError('Variable "detailViewUri" does not exist.'28$this->source); })()), "html"nulltrue);
  100.             echo "\">
  101.                                     <img src=\"";
  102.             // line 29
  103.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "thumbnailUrl", [], "any"falsefalsefalse29), "html"nulltrue);
  104.             echo "\"
  105.                                          alt=\"";
  106.             // line 30
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "thumbnailAlt", [], "any"falsefalsefalse30), "html"nulltrue);
  108.             echo "\"/>
  109.                                 </a>
  110.                             </div>
  111.                             <div class=\"teaser-text-box bb-flex-1 bb-flex-col\">
  112.                                 <div class=\"title-box\">
  113.                                     <h4>
  114.                                         <a href=\"";
  115.             // line 36
  116.             echo twig_escape_filter($this->env, (isset($context["detailViewUri"]) || array_key_exists("detailViewUri"$context) ? $context["detailViewUri"] : (function () { throw new RuntimeError('Variable "detailViewUri" does not exist.'36$this->source); })()), "html"nulltrue);
  117.             echo "\">";
  118.             echo twig_escape_filter($this->env$this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon(twig_get_attribute($this->env$this->source$context["product"], "name", [], "any"falsefalsefalse36)), "html"nulltrue);
  119.             echo "</a>
  120.                                     </h4>
  121.                                 </div>
  122.                                 <div class=\"content-box product-price-container bb-flex-col bb-space-between-grow-1-i\">
  123.                                     <div>
  124.                                         <div class=\"product-price\">
  125.                                             ";
  126.             // line 42
  127.             if (twig_get_attribute($this->env$this->source$context["product"], "cachedPrice", [], "any"truetruefalse42)) {
  128.                 // line 43
  129.                 echo "                                                ";
  130.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "cachedPrice", [], "any"falsefalsefalse43), "html"nulltrue);
  131.                 echo "
  132.                                             ";
  133.             } else {
  134.                 // line 45
  135.                 echo "                                                ";
  136.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "price", [], "any"falsefalsefalse45), "html"nulltrue);
  137.                 echo "
  138.                                             ";
  139.             }
  140.             // line 47
  141.             echo "                                            ";
  142.             if (((twig_get_attribute($this->env$this->source$context["product"], "priceOld", [], "array"falsefalsefalse47) != 0) && (twig_get_attribute($this->env$this->source$context["product"], "priceReference", [], "array"falsefalsefalse47) != twig_get_attribute($this->env$this->source$context["product"], "priceOld", [], "array"falsefalsefalse47)))) {
  143.                 // line 48
  144.                 echo "                                                <span class=\"product-price old\">
  145.                                                 &nbsp;";
  146.                 // line 49
  147.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "priceOld", [], "array"falsefalsefalse49), 2",""."), "html"nulltrue);
  148.                 echo " ";
  149.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("€"), "html"nulltrue);
  150.                 echo "
  151.                                             </span>
  152.                                             ";
  153.             }
  154.             // line 52
  155.             echo "                                        </div>
  156.                                         ";
  157.             // line 53
  158.             if (twig_get_attribute($this->env$this->source$context["product"], "isProductFood", [], "array"falsefalsefalse53)) {
  159.                 // line 54
  160.                 echo "                                            <div class=\"product-price-additional\">
  161.                                                 ";
  162.                 // line 55
  163.                 if (twig_get_attribute($this->env$this->source$context["product"], "hasVariants", [], "array"falsefalsefalse55)) {
  164.                     // line 56
  165.                     echo "                                                    <div class=\"product-variation-container\">
  166.                                                         ";
  167.                     // line 57
  168.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Varianten vorhanden"), "html"nulltrue);
  169.                     echo "
  170.                                                     </div>
  171.                                                 ";
  172.                 } else {
  173.                     // line 60
  174.                     echo "                                                    <div>(";
  175.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "priceReference", [], "array"falsefalsefalse60), 2",""."), "html"nulltrue);
  176.                     echo " ";
  177.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("€"), "html"nulltrue);
  178.                     echo " / ";
  179.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "unit", [], "array"falsefalsefalse60), "html"nulltrue);
  180.                     echo ")</div>
  181.                                                 ";
  182.                 }
  183.                 // line 62
  184.                 echo "                                                <div class=\"delivery-cost-hint\">";
  185.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "deliveryCostHint", [], "array"falsefalsefalse62), "html"nulltrue);
  186.                 echo "</div>
  187.                                             </div>
  188.                                         ";
  189.             } elseif ((twig_get_attribute($this->env$this->source,             // line 64
  190. $context["product"], "deliveryCostHint", [], "array"truetruefalse64) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["product"], "deliveryCostHint", [], "array"falsefalsefalse64)))) {
  191.                 // line 65
  192.                 echo "                                            <div class=\"product-price-additional\">
  193.                                                 <div>";
  194.                 // line 66
  195.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "deliveryCostHint", [], "array"falsefalsefalse66), "html"nulltrue);
  196.                 echo "</div>
  197.                                             </div>
  198.                                         ";
  199.             }
  200.             // line 69
  201.             echo "                                    </div>
  202.                                     ";
  203.             // line 71
  204.             if (twig_get_attribute($this->env$this->source$context["product"], "hasVariants", [], "array"falsefalsefalse71)) {
  205.                 // line 72
  206.                 echo "                                        <div>
  207.                                             <a class=\"button btn-default bb-line-height-normal\" href=\"";
  208.                 // line 73
  209.                 echo twig_escape_filter($this->env, (isset($context["detailViewUri"]) || array_key_exists("detailViewUri"$context) ? $context["detailViewUri"] : (function () { throw new RuntimeError('Variable "detailViewUri" does not exist.'73$this->source); })()), "html"nulltrue);
  210.                 echo "\">";
  211.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Variante wählen"), "html"nulltrue);
  212.                 echo "</a>
  213.                                         </div>
  214.                                     ";
  215.             } elseif ((twig_get_attribute($this->env$this->source,             // line 75
  216. $context["product"], "deliverability", [], "array"falsefalsefalse75) == "instant")) {
  217.                 // line 76
  218.                 echo "                                        ";
  219.                 if (twig_get_attribute($this->env$this->source$context["product"], "hasVariants", [], "array"falsefalsefalse76)) {
  220.                     // line 77
  221.                     echo "                                            <div style=\"font-size: 1.2rem; font-weight: normal; margin-top: 6px;\">
  222.                                                 ";
  223.                     // line 78
  224.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "priceOriginal", [], "array"falsefalsefalse78), "html"nulltrue);
  225.                     echo " &minus; ";
  226.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "amountValue", [], "array"falsefalsefalse78), 0",""."), "html"nulltrue);
  227.                     echo "&nbsp;";
  228.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "amountAbbreviation", [], "array"falsefalsefalse78), "html"nulltrue);
  229.                     echo "
  230.                                                 ";
  231.                     // line 79
  232.                     if (twig_get_attribute($this->env$this->source$context["product"], "priceReference", [], "array"truetruefalse79)) {
  233.                         // line 80
  234.                         echo "                                                    <br/>
  235.                                                     ";
  236.                         // line 81
  237.                         $context["currency"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "osPrice", [], "array"falsefalsefalse81), "getCurrency", [], "method"falsefalsefalse81);
  238.                         // line 82
  239.                         echo "                                                    (";
  240.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["currency"]) || array_key_exists("currency"$context) ? $context["currency"] : (function () { throw new RuntimeError('Variable "currency" does not exist.'82$this->source); })()), "toCurrency", [=> twig_get_attribute($this->env$this->source$context["product"], "priceReference", [], "array"falsefalsefalse82)], "method"falsefalsefalse82), "html"nulltrue);
  241.                         echo " / ";
  242.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "amountAbbreviation", [], "array"falsefalsefalse82), "html"nulltrue);
  243.                         echo ")
  244.                                                 ";
  245.                     }
  246.                     // line 84
  247.                     echo "                                            </div>
  248.                                         ";
  249.                 }
  250.                 // line 86
  251.                 echo "                                        <div class=\"product-action-wrapper text-center\">
  252.                                             <div style=\"display:inline-block\">
  253.                                                 ";
  254.                 // line 88
  255.                 $context["jsSubmitClass"] = "";
  256.                 // line 89
  257.                 echo "                                                ";
  258.                 if ((((isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures"$context)) && twig_get_attribute($this->env$this->source, ($context["enabledWebsiteFeatures"] ?? null), "sidebarCart", [], "array"truetruefalse89)) && (twig_get_attribute($this->env$this->source, (isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures"$context) ? $context["enabledWebsiteFeatures"] : (function () { throw new RuntimeError('Variable "enabledWebsiteFeatures" does not exist.'89$this->source); })()), "sidebarCart", [], "array"falsefalsefalse89) == true))) {
  259.                     // line 90
  260.                     echo "                                                    ";
  261.                     $context["jsSubmitClass"] = "js-submit-ajax";
  262.                     // line 91
  263.                     echo "                                                ";
  264.                 }
  265.                 // line 92
  266.                 echo "                                                <form method=\"post\" class=\"";
  267.                 echo twig_escape_filter($this->env, (isset($context["jsSubmitClass"]) || array_key_exists("jsSubmitClass"$context) ? $context["jsSubmitClass"] : (function () { throw new RuntimeError('Variable "jsSubmitClass" does not exist.'92$this->source); })()), "html"nulltrue);
  268.                 echo "\" action=\"";
  269.                 echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["action" => "add"], "shopHandlerCart"), "html"nulltrue);
  270.                 echo "\">
  271.                                                     <div class=\"product-action-container\" style=\"margin-top: 20px;\">
  272.                                                         <div class=\"product-quantity\">
  273.                                                             <input class=\"product-quantity-w-min\" type=\"number\" name=\"quantity\" min=\"1\" value=\"1\" style=\"padding-top:13px\"/>
  274.                                                             <input type=\"hidden\" name=\"article\" value=\"";
  275.                 // line 96
  276.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "articleNumber", [], "array"falsefalsefalse96), "html"nulltrue);
  277.                 echo "\">
  278.                                                         </div>
  279.                                                         <div class=\"product-action-button\">
  280.                                                             <button class=\"button btn-default bb-line-height-normal\" style=\"margin:0\">
  281.                                                                 ";
  282.                 // line 100
  283.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Cart"), "html"nulltrue);
  284.                 echo "
  285.                                                             </button>
  286.                                                         </div>
  287.                                                     </div>
  288.                                                     ";
  289.                 // line 105
  290.                 $context['_parent'] = $context;
  291.                 $context['_seq'] = twig_ensure_traversable(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.'105$this->source); })()), "flashes", [=> "error"], "method"falsefalsefalse105));
  292.                 foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  293.                     // line 106
  294.                     echo "                                                        ";
  295.                     if (twig_get_attribute($this->env$this->source$context["message"], "message", [], "any"falsefalsefalse106)) {
  296.                         // line 107
  297.                         echo "                                                            ";
  298.                         if ((twig_get_attribute($this->env$this->source$context["message"], "id", [], "any"falsefalsefalse107) == twig_get_attribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse107))) {
  299.                             // line 108
  300.                             echo "                                                                <div class=\"error-message inline\">
  301.                                                                     ";
  302.                             // line 109
  303.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["message"], "message", [], "any"falsefalsefalse109), "html"nulltrue);
  304.                             echo "
  305.                                                                 </div>
  306.                                                             ";
  307.                         }
  308.                         // line 112
  309.                         echo "                                                        ";
  310.                     } else {
  311.                         // line 113
  312.                         echo "                                                            <div class=\"error-message inline\">
  313.                                                                 ";
  314.                         // line 114
  315.                         echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  316.                         echo "
  317.                                                             </div>
  318.                                                         ";
  319.                     }
  320.                     // line 117
  321.                     echo "                                                    ";
  322.                 }
  323.                 $_parent $context['_parent'];
  324.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  325.                 $context array_intersect_key($context$_parent) + $_parent;
  326.                 // line 118
  327.                 echo "                                                    ";
  328.                 if ((((isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures"$context)) && twig_get_attribute($this->env$this->source, ($context["enabledWebsiteFeatures"] ?? null), "sidebarCart", [], "array"truetruefalse118)) && (twig_get_attribute($this->env$this->source, (isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures"$context) ? $context["enabledWebsiteFeatures"] : (function () { throw new RuntimeError('Variable "enabledWebsiteFeatures" does not exist.'118$this->source); })()), "sidebarCart", [], "array"falsefalsefalse118) == true))) {
  329.                     // line 119
  330.                     echo "                                                        <div class=\"error-messages-container error-message\" data-product-id=\"";
  331.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["product"], "id", [], "array"falsefalsefalse119), "html"nulltrue);
  332.                     echo "\" style=\"display: none;\"></div>
  333.                                                     ";
  334.                 }
  335.                 // line 121
  336.                 echo "                                                </form>
  337.                                                 ";
  338.                 // line 122
  339.                 if (((twig_get_attribute($this->env$this->source$context["product"], "priceOld", [], "array"falsefalsefalse122) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "minimumPrice30DaysAllCountries", [], "array"falsetruefalse122), (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'122$this->source); })()), [], "array"truetruefalse122)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "minimumPrice30DaysAllCountries", [], "array"falsefalsefalse122), (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'122$this->source); })()), [], "array"falsefalsefalse122))) {
  340.                     // line 123
  341.                     echo "                                                    <div style=\"font-size: 12px; margin: 8px 4px;\">
  342.                                                         ";
  343.                     // line 124
  344.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("minPriceLast30Days"), "html"nulltrue);
  345.                     echo " ";
  346.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["currency"]) || array_key_exists("currency"$context) ? $context["currency"] : (function () { throw new RuntimeError('Variable "currency" does not exist.'124$this->source); })()), "toCurrency", [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["product"], "minimumPrice30DaysAllCountries", [], "array"falsefalsefalse124), (isset($context["country"]) || array_key_exists("country"$context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.'124$this->source); })()), [], "array"falsefalsefalse124)], "method"falsefalsefalse124), "html"nulltrue);
  347.                     echo "
  348.                                                     </div>
  349.                                                 ";
  350.                 }
  351.                 // line 127
  352.                 echo "                                            </div>
  353.                                         </div>
  354.                                     ";
  355.             } else {
  356.                 // line 130
  357.                 echo "
  358.                                         ";
  359.                 // line 131
  360.                 if ((twig_get_attribute($this->env$this->source$context["product"], "deliverability", [], "array"falsefalsefalse131) == "unavailable")) {
  361.                     // line 132
  362.                     echo "                                            <div class=\"product-ability\" style=\"margin:-5px 0 -9px\">
  363.                                                 <small>";
  364.                     // line 133
  365.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["product"], "deliverability", [], "array"falsefalsefalse133)), "html"nulltrue);
  366.                     echo "</small>
  367.                                             </div>
  368.                                         ";
  369.                 }
  370.                 // line 136
  371.                 echo "
  372.                                         <div class=\"product-action-wrapper\">
  373.                                             ";
  374.                 // line 138
  375.                 $this->loadTemplate("Partials/productStockInformCustomer.html.twig""BornBundle:Product:listByProductCategoryId.html.twig"138)->display(twig_array_merge($context, ["backUrl" => (isset($context["uri"]) || array_key_exists("uri"$context) ? $context["uri"] : (function () { throw new RuntimeError('Variable "uri" does not exist.'138$this->source); })()), "user" => (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'138$this->source); })()), "product" => $context["product"], "productStockInformCustomerData" => twig_get_attribute($this->env$this->source, (isset($context["productStockInformCustomerData"]) || array_key_exists("productStockInformCustomerData"$context) ? $context["productStockInformCustomerData"] : (function () { throw new RuntimeError('Variable "productStockInformCustomerData" does not exist.'138$this->source); })()), twig_get_attribute($this->env$this->source$context["product"], "pimId", [], "array"falsefalsefalse138), [], "array"falsefalsefalse138)]));
  376.                 // line 139
  377.                 echo "                                        </div>
  378.                                     ";
  379.             }
  380.             // line 141
  381.             echo "                                </div>
  382.                             </div>
  383.                         </div>
  384.                     </div>
  385.                 </div>
  386.             ";
  387.             ++$context['loop']['index0'];
  388.             ++$context['loop']['index'];
  389.             $context['loop']['first'] = false;
  390.             if (isset($context['loop']['length'])) {
  391.                 --$context['loop']['revindex0'];
  392.                 --$context['loop']['revindex'];
  393.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  394.             }
  395.         }
  396.         $_parent $context['_parent'];
  397.         unset($context['_seq'], $context['_iterated'], $context['productkey'], $context['product'], $context['_parent'], $context['loop']);
  398.         $context array_intersect_key($context$_parent) + $_parent;
  399.         // line 148
  400.         echo "        </div>
  401.     </div>
  402. ";
  403.         
  404.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  405.         
  406.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  407.     }
  408.     public function getTemplateName()
  409.     {
  410.         return "BornBundle:Product:listByProductCategoryId.html.twig";
  411.     }
  412.     public function isTraitable()
  413.     {
  414.         return false;
  415.     }
  416.     public function getDebugInfo()
  417.     {
  418.         return array (  417 => 148,  397 => 141,  393 => 139,  391 => 138,  387 => 136,  381 => 133,  378 => 132,  376 => 131,  373 => 130,  368 => 127,  360 => 124,  357 => 123,  355 => 122,  352 => 121,  346 => 119,  343 => 118,  337 => 117,  331 => 114,  328 => 113,  325 => 112,  319 => 109,  316 => 108,  313 => 107,  310 => 106,  306 => 105,  298 => 100,  291 => 96,  281 => 92,  278 => 91,  275 => 90,  272 => 89,  270 => 88,  266 => 86,  262 => 84,  254 => 82,  252 => 81,  249 => 80,  247 => 79,  239 => 78,  236 => 77,  233 => 76,  231 => 75,  224 => 73,  221 => 72,  219 => 71,  215 => 69,  209 => 66,  206 => 65,  204 => 64,  198 => 62,  188 => 60,  182 => 57,  179 => 56,  177 => 55,  174 => 54,  172 => 53,  169 => 52,  161 => 49,  158 => 48,  155 => 47,  149 => 45,  143 => 43,  141 => 42,  130 => 36,  121 => 30,  117 => 29,  113 => 28,  106 => 23,  103 => 22,  101 => 21,  98 => 20,  96 => 16,  95 => 15,  93 => 13,  76 => 12,  71 => 9,  68 => 4,  58 => 3,  35 => 1,);
  419.     }
  420.     public function getSourceContext()
  421.     {
  422.         return new Source("{% extends 'pageTemplateDefault.html.twig' %}
  423. {% block content %}
  424.     {{ pimcore_areablock(\"content\", {
  425.         \"allowed\": [\"Breadcrumb\", \"MainStage\", \"MainStageCarousel\", \"StageSpecific\", \"StageFlat\"],
  426.         \"group\": {
  427.             \"Stage Variationen\": [\"Breadcrumb\", \"MainStage\", \"MainStageCarousel\", \"StageSpecific\", \"StageFlat\"]
  428.         }
  429.     }) }}
  430.     <div class=\"section\">
  431.         <div class=\"main-content flex-col product-list-view\">
  432.             {% for productkey, product in products %}
  433.                 {% set detailViewUri    = pimcore_url(
  434.                     {
  435.                         \"name\": product.urlTitle,
  436.                         \"articlenumber\": product.articleNumber
  437.                     },
  438.                     \"shopHandlerProductDetailBorn\"
  439.                     ) %}
  440.                 {% set price = product['osPrice'] %}
  441.                 {% set currency = price.getCurrency() %}
  442.                 <div class=\"col xs-12 m-6 l-4\">
  443.                     <div class=\"teaser image-text product\">
  444.                         <div class=\"teaser-content bb-flex-col\">
  445.                             <div class=\"image\">
  446.                                 <a href=\"{{ detailViewUri }}\">
  447.                                     <img src=\"{{ product.thumbnailUrl }}\"
  448.                                          alt=\"{{ product.thumbnailAlt }}\"/>
  449.                                 </a>
  450.                             </div>
  451.                             <div class=\"teaser-text-box bb-flex-1 bb-flex-col\">
  452.                                 <div class=\"title-box\">
  453.                                     <h4>
  454.                                         <a href=\"{{ detailViewUri }}\">{{ product.name |trademark }}</a>
  455.                                     </h4>
  456.                                 </div>
  457.                                 <div class=\"content-box product-price-container bb-flex-col bb-space-between-grow-1-i\">
  458.                                     <div>
  459.                                         <div class=\"product-price\">
  460.                                             {% if product.cachedPrice is defined %}
  461.                                                 {{ product.cachedPrice }}
  462.                                             {% else %}
  463.                                                 {{ product.price }}
  464.                                             {% endif %}
  465.                                             {% if (product['priceOld'] != 0 and product['priceReference'] != product['priceOld']) %}
  466.                                                 <span class=\"product-price old\">
  467.                                                 &nbsp;{{ product['priceOld'] |number_format(2, ',', '.') }} {{ '€' |trans }}
  468.                                             </span>
  469.                                             {% endif %}
  470.                                         </div>
  471.                                         {% if product['isProductFood'] %}
  472.                                             <div class=\"product-price-additional\">
  473.                                                 {% if(product['hasVariants']) %}
  474.                                                     <div class=\"product-variation-container\">
  475.                                                         {{ 'Varianten vorhanden' |trans }}
  476.                                                     </div>
  477.                                                 {% else %}
  478.                                                     <div>({{ product['priceReference'] |number_format(2, ',', '.') }} {{ '€' |trans }} / {{ product['unit'] }})</div>
  479.                                                 {% endif %}
  480.                                                 <div class=\"delivery-cost-hint\">{{ product['deliveryCostHint'] }}</div>
  481.                                             </div>
  482.                                         {% elseif product['deliveryCostHint'] is defined and product['deliveryCostHint'] is not empty %}
  483.                                             <div class=\"product-price-additional\">
  484.                                                 <div>{{ product['deliveryCostHint'] }}</div>
  485.                                             </div>
  486.                                         {% endif %}
  487.                                     </div>
  488.                                     {% if product['hasVariants'] %}
  489.                                         <div>
  490.                                             <a class=\"button btn-default bb-line-height-normal\" href=\"{{ detailViewUri }}\">{{ 'Variante wählen'|trans }}</a>
  491.                                         </div>
  492.                                     {% elseif product['deliverability'] == 'instant' %}
  493.                                         {% if product['hasVariants'] %}
  494.                                             <div style=\"font-size: 1.2rem; font-weight: normal; margin-top: 6px;\">
  495.                                                 {{ product['priceOriginal'] }} &minus; {{ product['amountValue'] | number_format(0, ',', '.') }}&nbsp;{{ product['amountAbbreviation'] }}
  496.                                                 {% if product['priceReference'] is defined %}
  497.                                                     <br/>
  498.                                                     {% set currency = product['osPrice'].getCurrency() %}
  499.                                                     ({{ currency.toCurrency(product['priceReference']) }} / {{ product['amountAbbreviation'] }})
  500.                                                 {% endif %}
  501.                                             </div>
  502.                                         {% endif %}
  503.                                         <div class=\"product-action-wrapper text-center\">
  504.                                             <div style=\"display:inline-block\">
  505.                                                 {% set jsSubmitClass = '' %}
  506.                                                 {% if enabledWebsiteFeatures is defined and enabledWebsiteFeatures['sidebarCart'] is defined and enabledWebsiteFeatures['sidebarCart'] == true %}
  507.                                                     {% set jsSubmitClass = 'js-submit-ajax' %}
  508.                                                 {% endif %}
  509.                                                 <form method=\"post\" class=\"{{ jsSubmitClass }}\" action=\"{{ pimcore_url({\"action\": \"add\"}, \"shopHandlerCart\") }}\">
  510.                                                     <div class=\"product-action-container\" style=\"margin-top: 20px;\">
  511.                                                         <div class=\"product-quantity\">
  512.                                                             <input class=\"product-quantity-w-min\" type=\"number\" name=\"quantity\" min=\"1\" value=\"1\" style=\"padding-top:13px\"/>
  513.                                                             <input type=\"hidden\" name=\"article\" value=\"{{ product['articleNumber'] }}\">
  514.                                                         </div>
  515.                                                         <div class=\"product-action-button\">
  516.                                                             <button class=\"button btn-default bb-line-height-normal\" style=\"margin:0\">
  517.                                                                 {{ 'Add to Cart'|trans }}
  518.                                                             </button>
  519.                                                         </div>
  520.                                                     </div>
  521.                                                     {% for message in app.flashes('error') %}
  522.                                                         {% if message.message %}
  523.                                                             {% if message.id == product.id %}
  524.                                                                 <div class=\"error-message inline\">
  525.                                                                     {{ message.message }}
  526.                                                                 </div>
  527.                                                             {% endif %}
  528.                                                         {% else %}
  529.                                                             <div class=\"error-message inline\">
  530.                                                                 {{ message }}
  531.                                                             </div>
  532.                                                         {% endif %}
  533.                                                     {% endfor %}
  534.                                                     {% if enabledWebsiteFeatures is defined and enabledWebsiteFeatures['sidebarCart'] is defined and enabledWebsiteFeatures['sidebarCart'] == true %}
  535.                                                         <div class=\"error-messages-container error-message\" data-product-id=\"{{ product['id'] }}\" style=\"display: none;\"></div>
  536.                                                     {% endif %}
  537.                                                 </form>
  538.                                                 {% if product['priceOld'] and product['minimumPrice30DaysAllCountries'][country] is defined and product['minimumPrice30DaysAllCountries'][country] %}
  539.                                                     <div style=\"font-size: 12px; margin: 8px 4px;\">
  540.                                                         {{ 'minPriceLast30Days' | trans }} {{ currency.toCurrency(product['minimumPrice30DaysAllCountries'][country]) }}
  541.                                                     </div>
  542.                                                 {% endif %}
  543.                                             </div>
  544.                                         </div>
  545.                                     {% else %}
  546.                                         {% if (product['deliverability'] == 'unavailable') %}
  547.                                             <div class=\"product-ability\" style=\"margin:-5px 0 -9px\">
  548.                                                 <small>{{ product['deliverability'] |trans }}</small>
  549.                                             </div>
  550.                                         {% endif %}
  551.                                         <div class=\"product-action-wrapper\">
  552.                                             {% include 'Partials/productStockInformCustomer.html.twig' with {'backUrl': uri, 'user': user, 'product': product, 'productStockInformCustomerData': productStockInformCustomerData[product['pimId']]} %}
  553.                                         </div>
  554.                                     {% endif %}
  555.                                 </div>
  556.                             </div>
  557.                         </div>
  558.                     </div>
  559.                 </div>
  560.             {% endfor %}
  561.         </div>
  562.     </div>
  563. {% endblock %}
  564. ""BornBundle:Product:listByProductCategoryId.html.twig""/var/www/share/test.develey/src/Develey/BornBundle/Resources/views/Product/listByProductCategoryId.html.twig");
  565.     }
  566. }