<?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;
/* BornBundle:Product:listByProductCategoryId.html.twig */
class __TwigTemplate_0a6836aff01c9c8ce732819a96f092ac936598ff3bfd441a4e88918652ac7132 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "pageTemplateDefault.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", "BornBundle:Product:listByProductCategoryId.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "BornBundle:Product:listByProductCategoryId.html.twig"));
$this->parent = $this->loadTemplate("pageTemplateDefault.html.twig", "BornBundle:Product:listByProductCategoryId.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
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 4
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context, "areablock", "content", ["allowed" => [0 => "Breadcrumb", 1 => "MainStage", 2 => "MainStageCarousel", 3 => "StageSpecific", 4 => "StageFlat"], "group" => ["Stage Variationen" => [0 => "Breadcrumb", 1 => "MainStage", 2 => "MainStageCarousel", 3 => "StageSpecific", 4 => "StageFlat"]]]);
// line 9
echo "
<div class=\"section\">
<div class=\"main-content flex-col product-list-view\">
";
// line 12
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["productkey"] => $context["product"]) {
// line 13
echo " ";
$context["detailViewUri"] = $this->env->getFunction('pimcore_url')->getCallable()(["name" => twig_get_attribute($this->env, $this->source, // line 15
$context["product"], "urlTitle", [], "any", false, false, false, 15), "articlenumber" => twig_get_attribute($this->env, $this->source, // line 16
$context["product"], "articleNumber", [], "any", false, false, false, 16)], "shopHandlerProductDetailBorn");
// line 20
echo "
";
// line 21
$context["price"] = twig_get_attribute($this->env, $this->source, $context["product"], "osPrice", [], "array", false, false, false, 21);
// line 22
echo " ";
$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", false, false, false, 22);
// line 23
echo "
<div class=\"col xs-12 m-6 l-4\">
<div class=\"teaser image-text product\">
<div class=\"teaser-content bb-flex-col\">
<div class=\"image\">
<a href=\"";
// line 28
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", null, true);
echo "\">
<img src=\"";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "thumbnailUrl", [], "any", false, false, false, 29), "html", null, true);
echo "\"
alt=\"";
// line 30
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "thumbnailAlt", [], "any", false, false, false, 30), "html", null, true);
echo "\"/>
</a>
</div>
<div class=\"teaser-text-box bb-flex-1 bb-flex-col\">
<div class=\"title-box\">
<h4>
<a href=\"";
// line 36
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", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon(twig_get_attribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 36)), "html", null, true);
echo "</a>
</h4>
</div>
<div class=\"content-box product-price-container bb-flex-col bb-space-between-grow-1-i\">
<div>
<div class=\"product-price\">
";
// line 42
if (twig_get_attribute($this->env, $this->source, $context["product"], "cachedPrice", [], "any", true, true, false, 42)) {
// line 43
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "cachedPrice", [], "any", false, false, false, 43), "html", null, true);
echo "
";
} else {
// line 45
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 45), "html", null, true);
echo "
";
}
// line 47
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["product"], "priceOld", [], "array", false, false, false, 47) != 0) && (twig_get_attribute($this->env, $this->source, $context["product"], "priceReference", [], "array", false, false, false, 47) != twig_get_attribute($this->env, $this->source, $context["product"], "priceOld", [], "array", false, false, false, 47)))) {
// line 48
echo " <span class=\"product-price old\">
";
// line 49
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "priceOld", [], "array", false, false, false, 49), 2, ",", "."), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("€"), "html", null, true);
echo "
</span>
";
}
// line 52
echo " </div>
";
// line 53
if (twig_get_attribute($this->env, $this->source, $context["product"], "isProductFood", [], "array", false, false, false, 53)) {
// line 54
echo " <div class=\"product-price-additional\">
";
// line 55
if (twig_get_attribute($this->env, $this->source, $context["product"], "hasVariants", [], "array", false, false, false, 55)) {
// line 56
echo " <div class=\"product-variation-container\">
";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Varianten vorhanden"), "html", null, true);
echo "
</div>
";
} else {
// line 60
echo " <div>(";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "priceReference", [], "array", false, false, false, 60), 2, ",", "."), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("€"), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "unit", [], "array", false, false, false, 60), "html", null, true);
echo ")</div>
";
}
// line 62
echo " <div class=\"delivery-cost-hint\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "deliveryCostHint", [], "array", false, false, false, 62), "html", null, true);
echo "</div>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 64
$context["product"], "deliveryCostHint", [], "array", true, true, false, 64) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["product"], "deliveryCostHint", [], "array", false, false, false, 64)))) {
// line 65
echo " <div class=\"product-price-additional\">
<div>";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "deliveryCostHint", [], "array", false, false, false, 66), "html", null, true);
echo "</div>
</div>
";
}
// line 69
echo " </div>
";
// line 71
if (twig_get_attribute($this->env, $this->source, $context["product"], "hasVariants", [], "array", false, false, false, 71)) {
// line 72
echo " <div>
<a class=\"button btn-default bb-line-height-normal\" href=\"";
// line 73
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", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Variante wählen"), "html", null, true);
echo "</a>
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 75
$context["product"], "deliverability", [], "array", false, false, false, 75) == "instant")) {
// line 76
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["product"], "hasVariants", [], "array", false, false, false, 76)) {
// line 77
echo " <div style=\"font-size: 1.2rem; font-weight: normal; margin-top: 6px;\">
";
// line 78
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "priceOriginal", [], "array", false, false, false, 78), "html", null, true);
echo " − ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "amountValue", [], "array", false, false, false, 78), 0, ",", "."), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "amountAbbreviation", [], "array", false, false, false, 78), "html", null, true);
echo "
";
// line 79
if (twig_get_attribute($this->env, $this->source, $context["product"], "priceReference", [], "array", true, true, false, 79)) {
// line 80
echo " <br/>
";
// line 81
$context["currency"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "osPrice", [], "array", false, false, false, 81), "getCurrency", [], "method", false, false, false, 81);
// line 82
echo " (";
echo twig_escape_filter($this->env, twig_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", [0 => twig_get_attribute($this->env, $this->source, $context["product"], "priceReference", [], "array", false, false, false, 82)], "method", false, false, false, 82), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "amountAbbreviation", [], "array", false, false, false, 82), "html", null, true);
echo ")
";
}
// line 84
echo " </div>
";
}
// line 86
echo " <div class=\"product-action-wrapper text-center\">
<div style=\"display:inline-block\">
";
// line 88
$context["jsSubmitClass"] = "";
// line 89
echo " ";
if ((((isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures", $context)) && twig_get_attribute($this->env, $this->source, ($context["enabledWebsiteFeatures"] ?? null), "sidebarCart", [], "array", true, true, false, 89)) && (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", false, false, false, 89) == true))) {
// line 90
echo " ";
$context["jsSubmitClass"] = "js-submit-ajax";
// line 91
echo " ";
}
// line 92
echo " <form method=\"post\" class=\"";
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", null, true);
echo "\" action=\"";
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["action" => "add"], "shopHandlerCart"), "html", null, true);
echo "\">
<div class=\"product-action-container\" style=\"margin-top: 20px;\">
<div class=\"product-quantity\">
<input class=\"product-quantity-w-min\" type=\"number\" name=\"quantity\" min=\"1\" value=\"1\" style=\"padding-top:13px\"/>
<input type=\"hidden\" name=\"article\" value=\"";
// line 96
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "articleNumber", [], "array", false, false, false, 96), "html", null, true);
echo "\">
</div>
<div class=\"product-action-button\">
<button class=\"button btn-default bb-line-height-normal\" style=\"margin:0\">
";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add to Cart"), "html", null, true);
echo "
</button>
</div>
</div>
";
// line 105
$context['_parent'] = $context;
$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", [0 => "error"], "method", false, false, false, 105));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 106
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["message"], "message", [], "any", false, false, false, 106)) {
// line 107
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["message"], "id", [], "any", false, false, false, 107) == twig_get_attribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 107))) {
// line 108
echo " <div class=\"error-message inline\">
";
// line 109
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["message"], "message", [], "any", false, false, false, 109), "html", null, true);
echo "
</div>
";
}
// line 112
echo " ";
} else {
// line 113
echo " <div class=\"error-message inline\">
";
// line 114
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "
</div>
";
}
// line 117
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo " ";
if ((((isset($context["enabledWebsiteFeatures"]) || array_key_exists("enabledWebsiteFeatures", $context)) && twig_get_attribute($this->env, $this->source, ($context["enabledWebsiteFeatures"] ?? null), "sidebarCart", [], "array", true, true, false, 118)) && (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", false, false, false, 118) == true))) {
// line 119
echo " <div class=\"error-messages-container error-message\" data-product-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["product"], "id", [], "array", false, false, false, 119), "html", null, true);
echo "\" style=\"display: none;\"></div>
";
}
// line 121
echo " </form>
";
// line 122
if (((twig_get_attribute($this->env, $this->source, $context["product"], "priceOld", [], "array", false, false, false, 122) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "minimumPrice30DaysAllCountries", [], "array", false, true, false, 122), (isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 122, $this->source); })()), [], "array", true, true, false, 122)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "minimumPrice30DaysAllCountries", [], "array", false, false, false, 122), (isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 122, $this->source); })()), [], "array", false, false, false, 122))) {
// line 123
echo " <div style=\"font-size: 12px; margin: 8px 4px;\">
";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("minPriceLast30Days"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_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", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["product"], "minimumPrice30DaysAllCountries", [], "array", false, false, false, 124), (isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 124, $this->source); })()), [], "array", false, false, false, 124)], "method", false, false, false, 124), "html", null, true);
echo "
</div>
";
}
// line 127
echo " </div>
</div>
";
} else {
// line 130
echo "
";
// line 131
if ((twig_get_attribute($this->env, $this->source, $context["product"], "deliverability", [], "array", false, false, false, 131) == "unavailable")) {
// line 132
echo " <div class=\"product-ability\" style=\"margin:-5px 0 -9px\">
<small>";
// line 133
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", false, false, false, 133)), "html", null, true);
echo "</small>
</div>
";
}
// line 136
echo "
<div class=\"product-action-wrapper\">
";
// line 138
$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", false, false, false, 138), [], "array", false, false, false, 138)]));
// line 139
echo " </div>
";
}
// line 141
echo " </div>
</div>
</div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['productkey'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 148
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "BornBundle:Product:listByProductCategoryId.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'pageTemplateDefault.html.twig' %}
{% block content %}
{{ pimcore_areablock(\"content\", {
\"allowed\": [\"Breadcrumb\", \"MainStage\", \"MainStageCarousel\", \"StageSpecific\", \"StageFlat\"],
\"group\": {
\"Stage Variationen\": [\"Breadcrumb\", \"MainStage\", \"MainStageCarousel\", \"StageSpecific\", \"StageFlat\"]
}
}) }}
<div class=\"section\">
<div class=\"main-content flex-col product-list-view\">
{% for productkey, product in products %}
{% set detailViewUri = pimcore_url(
{
\"name\": product.urlTitle,
\"articlenumber\": product.articleNumber
},
\"shopHandlerProductDetailBorn\"
) %}
{% set price = product['osPrice'] %}
{% set currency = price.getCurrency() %}
<div class=\"col xs-12 m-6 l-4\">
<div class=\"teaser image-text product\">
<div class=\"teaser-content bb-flex-col\">
<div class=\"image\">
<a href=\"{{ detailViewUri }}\">
<img src=\"{{ product.thumbnailUrl }}\"
alt=\"{{ product.thumbnailAlt }}\"/>
</a>
</div>
<div class=\"teaser-text-box bb-flex-1 bb-flex-col\">
<div class=\"title-box\">
<h4>
<a href=\"{{ detailViewUri }}\">{{ product.name |trademark }}</a>
</h4>
</div>
<div class=\"content-box product-price-container bb-flex-col bb-space-between-grow-1-i\">
<div>
<div class=\"product-price\">
{% if product.cachedPrice is defined %}
{{ product.cachedPrice }}
{% else %}
{{ product.price }}
{% endif %}
{% if (product['priceOld'] != 0 and product['priceReference'] != product['priceOld']) %}
<span class=\"product-price old\">
{{ product['priceOld'] |number_format(2, ',', '.') }} {{ '€' |trans }}
</span>
{% endif %}
</div>
{% if product['isProductFood'] %}
<div class=\"product-price-additional\">
{% if(product['hasVariants']) %}
<div class=\"product-variation-container\">
{{ 'Varianten vorhanden' |trans }}
</div>
{% else %}
<div>({{ product['priceReference'] |number_format(2, ',', '.') }} {{ '€' |trans }} / {{ product['unit'] }})</div>
{% endif %}
<div class=\"delivery-cost-hint\">{{ product['deliveryCostHint'] }}</div>
</div>
{% elseif product['deliveryCostHint'] is defined and product['deliveryCostHint'] is not empty %}
<div class=\"product-price-additional\">
<div>{{ product['deliveryCostHint'] }}</div>
</div>
{% endif %}
</div>
{% if product['hasVariants'] %}
<div>
<a class=\"button btn-default bb-line-height-normal\" href=\"{{ detailViewUri }}\">{{ 'Variante wählen'|trans }}</a>
</div>
{% elseif product['deliverability'] == 'instant' %}
{% if product['hasVariants'] %}
<div style=\"font-size: 1.2rem; font-weight: normal; margin-top: 6px;\">
{{ product['priceOriginal'] }} − {{ product['amountValue'] | number_format(0, ',', '.') }} {{ product['amountAbbreviation'] }}
{% if product['priceReference'] is defined %}
<br/>
{% set currency = product['osPrice'].getCurrency() %}
({{ currency.toCurrency(product['priceReference']) }} / {{ product['amountAbbreviation'] }})
{% endif %}
</div>
{% endif %}
<div class=\"product-action-wrapper text-center\">
<div style=\"display:inline-block\">
{% set jsSubmitClass = '' %}
{% if enabledWebsiteFeatures is defined and enabledWebsiteFeatures['sidebarCart'] is defined and enabledWebsiteFeatures['sidebarCart'] == true %}
{% set jsSubmitClass = 'js-submit-ajax' %}
{% endif %}
<form method=\"post\" class=\"{{ jsSubmitClass }}\" action=\"{{ pimcore_url({\"action\": \"add\"}, \"shopHandlerCart\") }}\">
<div class=\"product-action-container\" style=\"margin-top: 20px;\">
<div class=\"product-quantity\">
<input class=\"product-quantity-w-min\" type=\"number\" name=\"quantity\" min=\"1\" value=\"1\" style=\"padding-top:13px\"/>
<input type=\"hidden\" name=\"article\" value=\"{{ product['articleNumber'] }}\">
</div>
<div class=\"product-action-button\">
<button class=\"button btn-default bb-line-height-normal\" style=\"margin:0\">
{{ 'Add to Cart'|trans }}
</button>
</div>
</div>
{% for message in app.flashes('error') %}
{% if message.message %}
{% if message.id == product.id %}
<div class=\"error-message inline\">
{{ message.message }}
</div>
{% endif %}
{% else %}
<div class=\"error-message inline\">
{{ message }}
</div>
{% endif %}
{% endfor %}
{% if enabledWebsiteFeatures is defined and enabledWebsiteFeatures['sidebarCart'] is defined and enabledWebsiteFeatures['sidebarCart'] == true %}
<div class=\"error-messages-container error-message\" data-product-id=\"{{ product['id'] }}\" style=\"display: none;\"></div>
{% endif %}
</form>
{% if product['priceOld'] and product['minimumPrice30DaysAllCountries'][country] is defined and product['minimumPrice30DaysAllCountries'][country] %}
<div style=\"font-size: 12px; margin: 8px 4px;\">
{{ 'minPriceLast30Days' | trans }} {{ currency.toCurrency(product['minimumPrice30DaysAllCountries'][country]) }}
</div>
{% endif %}
</div>
</div>
{% else %}
{% if (product['deliverability'] == 'unavailable') %}
<div class=\"product-ability\" style=\"margin:-5px 0 -9px\">
<small>{{ product['deliverability'] |trans }}</small>
</div>
{% endif %}
<div class=\"product-action-wrapper\">
{% include 'Partials/productStockInformCustomer.html.twig' with {'backUrl': uri, 'user': user, 'product': product, 'productStockInformCustomerData': productStockInformCustomerData[product['pimId']]} %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
", "BornBundle:Product:listByProductCategoryId.html.twig", "/var/www/share/test.develey/src/Develey/BornBundle/Resources/views/Product/listByProductCategoryId.html.twig");
}
}