var/cache/dev_h4ff618508373c27d1785d8a4ae5b58dc/twig/95/954d70ba683e0d90572d78ee0dc09d8664650be248d080adfd4b6667643dba2b.php line 70

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @EmovaTheme/storefront/page/checkout/cart/index.html.twig */
  16. class __TwigTemplate_889d9d7fce3f5eb571b4fc819f90a28d extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'base_head' => [$this'block_base_head'],
  26.             'page_checkout_container' => [$this'block_page_checkout_container'],
  27.             'page_checkout_main_header' => [$this'block_page_checkout_main_header'],
  28.             'page_checkout_cart_header' => [$this'block_page_checkout_cart_header'],
  29.             'page_checkout_main_content' => [$this'block_page_checkout_main_content'],
  30.             'page_checkout_cart' => [$this'block_page_checkout_cart'],
  31.             'page_checkout_cart_product_table' => [$this'block_page_checkout_cart_product_table'],
  32.             'page_checkout_cart_table_items' => [$this'block_page_checkout_cart_table_items'],
  33.             'page_checkout_cart_hidden_line_items_information' => [$this'block_page_checkout_cart_hidden_line_items_information'],
  34.             'page_checkout_cart_add_product_and_shipping' => [$this'block_page_checkout_cart_add_product_and_shipping'],
  35.             'page_checkout_aside_actions' => [$this'block_page_checkout_aside_actions'],
  36.         ];
  37.     }
  38.     protected function doGetParent(array $context)
  39.     {
  40.         // line 2
  41.         return "@EmovaTheme/storefront/page/checkout/_pageforcart.html.twig";
  42.     }
  43.     protected function doDisplay(array $context, array $blocks = [])
  44.     {
  45.         $macros $this->macros;
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"));
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"));
  50.         $this->parent $this->loadTemplate("@EmovaTheme/storefront/page/checkout/_pageforcart.html.twig""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"2);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     // line 4
  58.     public function block_base_head($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_head"));
  65.         // line 5
  66.         echo "    ";
  67.         $this->loadTemplate("@EmovaTheme/storefront/page/checkout/cart/meta.html.twig""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"5)->display($context);
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.     }
  73.     // line 8
  74.     public function block_page_checkout_container($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_container"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_container"));
  81.         // line 9
  82.         echo "    ";
  83.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse9), "lineItems", [], "any"falsefalsefalse9), "count", [], "any"falsefalsefalse9) === 0)) {
  84.             // line 10
  85.             echo "        ";
  86.             $this->loadTemplate("@EmovaPelletsTheme/storefront/utilities/alert-friendly.html.twig""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"10)->display(twig_array_merge($context, ["type" => "info""heading" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emova.priceOfferOutdatedHeading")), "content" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emova.priceOfferOutdatedText")), "target" => ["link" => "/""message" => $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("emova.priceOfferOutdatedButton"))]]));
  87.             // line 16
  88.             echo "
  89.         ";
  90.             // line 17
  91.             $context["messages"] = sw_get_attribute($this->env$this->source, ($context["app"] ?? null), "flashes", [], "any"falsefalsefalse17);
  92.             // line 18
  93.             echo "
  94.         ";
  95.             // line 19
  96.             if ((twig_length_filter($this->envsw_get_attribute($this->env$this->source, ($context["messages"] ?? null), "danger", [], "any"falsefalsefalse19)) > 0)) {
  97.                 // line 20
  98.                 echo "            <div class=\"flashbags\">
  99.                 ";
  100.                 // line 21
  101.                 $this->loadTemplate("@EmovaTheme/storefront/utilities/alert.html.twig""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"21)->display(twig_array_merge($context, ["type" => "danger""list" => sw_get_attribute($this->env$this->source, ($context["messages"] ?? null), "danger", [], "any"falsefalsefalse21)]));
  102.                 // line 22
  103.                 echo "            </div>
  104.         ";
  105.             }
  106.             // line 24
  107.             echo "    ";
  108.         } else {
  109.             // line 25
  110.             echo "        ";
  111.             $this->displayParentBlock("page_checkout_container"$context$blocks);
  112.             echo "
  113.     ";
  114.         }
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.     }
  120.     // line 29
  121.     public function block_page_checkout_main_header($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_main_header"));
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_main_header"));
  128.         // line 30
  129.         echo "    ";
  130.         $this->displayBlock('page_checkout_cart_header'$context$blocks);
  131.         
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133.         
  134.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  135.     }
  136.     public function block_page_checkout_cart_header($context, array $blocks = [])
  137.     {
  138.         $macros $this->macros;
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_header"));
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_header"));
  143.         // line 31
  144.         echo "        ";
  145.         $this->loadTemplate("@EmovaTheme/storefront/component/checkout/step-by-step-bar.html.twig""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"31)->display(twig_array_merge($context, ["step" => 2]));
  146.         // line 32
  147.         echo "    ";
  148.         
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  150.         
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  152.     }
  153.     // line 35
  154.     public function block_page_checkout_main_content($context, array $blocks = [])
  155.     {
  156.         $macros $this->macros;
  157.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_main_content"));
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_main_content"));
  161.         // line 36
  162.         echo "    ";
  163.         $this->displayBlock('page_checkout_cart'$context$blocks);
  164.         // line 71
  165.         echo "
  166.    <style>
  167.         .error-message{
  168.             color: var(--red);
  169.             padding: 0 26px;
  170.             display: flex;
  171.         }
  172.    </style>
  173. ";
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.     }
  179.     // line 36
  180.     public function block_page_checkout_cart($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart"));
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart"));
  187.         // line 37
  188.         echo "       ";
  189.         $context["upsellLineItem"] = null;
  190.         // line 38
  191.         echo "       ";
  192.         $context["mainLineItem"] = null;
  193.         // line 39
  194.         echo "       ";
  195.         $context['_parent'] = $context;
  196.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse39), "lineItems", [], "any"falsefalsefalse39));
  197.         foreach ($context['_seq'] as $context["_key"] => $context["lineItem"]) {
  198.             // line 40
  199.             echo "             ";
  200.             $context["cs"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["lineItem"], "payload", [], "any"falsefalsefalse40), "customFields", [], "any"falsefalsefalse40);
  201.             // line 41
  202.             echo "             ";
  203.             if (($context["cs"] ?? null)) {
  204.                 // line 42
  205.                 echo "                ";
  206.                 $context["upsell"] = (($__internal_compile_0 = ($context["cs"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["ev_produktdaten_upsell"] ?? null) : null);
  207.                 // line 43
  208.                 echo "                ";
  209.                 if ((($context["upsell"] ?? null) == true)) {
  210.                     // line 44
  211.                     echo "                   ";
  212.                     $context["upsellLineItem"] = $context["lineItem"];
  213.                     // line 45
  214.                     echo "                ";
  215.                 } else {
  216.                     // line 46
  217.                     echo "                   ";
  218.                     $context["mainLineItem"] = $context["lineItem"];
  219.                     // line 47
  220.                     echo "                ";
  221.                 }
  222.                 // line 48
  223.                 echo "             ";
  224.             }
  225.             // line 49
  226.             echo "       ";
  227.         }
  228.         $_parent $context['_parent'];
  229.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lineItem'], $context['_parent'], $context['loop']);
  230.         $context array_intersect_key($context$_parent) + $_parent;
  231.         // line 50
  232.         echo "       ";
  233.         $this->displayBlock('page_checkout_cart_product_table'$context$blocks);
  234.         // line 60
  235.         echo "   
  236.        ";
  237.         // line 61
  238.         $this->displayBlock('page_checkout_cart_hidden_line_items_information'$context$blocks);
  239.         // line 67
  240.         echo "
  241.        ";
  242.         // line 68
  243.         $this->displayBlock('page_checkout_cart_add_product_and_shipping'$context$blocks);
  244.         // line 70
  245.         echo "   ";
  246.         
  247.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  248.         
  249.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  250.     }
  251.     // line 50
  252.     public function block_page_checkout_cart_product_table($context, array $blocks = [])
  253.     {
  254.         $macros $this->macros;
  255.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  256.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_product_table"));
  257.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_product_table"));
  259.         // line 51
  260.         echo "
  261.           ";
  262.         // line 52
  263.         $this->displayBlock('page_checkout_cart_table_items'$context$blocks);
  264.         // line 59
  265.         echo "       ";
  266.         
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  268.         
  269.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  270.     }
  271.     // line 52
  272.     public function block_page_checkout_cart_table_items($context, array $blocks = [])
  273.     {
  274.         $macros $this->macros;
  275.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  276.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_table_items"));
  277.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  278.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_table_items"));
  279.         // line 53
  280.         echo "            ";
  281.         $context['_parent'] = $context;
  282.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse53), "lineItems", [], "any"falsefalsefalse53));
  283.         $context['loop'] = [
  284.           'parent' => $context['_parent'],
  285.           'index0' => 0,
  286.           'index'  => 1,
  287.           'first'  => true,
  288.         ];
  289.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  290.             $length count($context['_seq']);
  291.             $context['loop']['revindex0'] = $length 1;
  292.             $context['loop']['revindex'] = $length;
  293.             $context['loop']['length'] = $length;
  294.             $context['loop']['last'] = === $length;
  295.         }
  296.         foreach ($context['_seq'] as $context["_key"] => $context["lineItem"]) {
  297.             // line 54
  298.             echo "               ";
  299.             if (sw_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse54)) {
  300.                 // line 55
  301.                 echo "                  ";
  302.                 $this->loadTemplate("@EmovaTheme/storefront/page/checkout/cart/index-inner.html.twig""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"55)->display($context);
  303.                 echo 
  304.                ";
  305.             }
  306.             // line 57
  307.             echo "            ";
  308.             ++$context['loop']['index0'];
  309.             ++$context['loop']['index'];
  310.             $context['loop']['first'] = false;
  311.             if (isset($context['loop']['length'])) {
  312.                 --$context['loop']['revindex0'];
  313.                 --$context['loop']['revindex'];
  314.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  315.             }
  316.         }
  317.         $_parent $context['_parent'];
  318.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['lineItem'], $context['_parent'], $context['loop']);
  319.         $context array_intersect_key($context$_parent) + $_parent;
  320.         // line 58
  321.         echo "           ";
  322.         
  323.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  324.         
  325.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  326.     }
  327.     // line 61
  328.     public function block_page_checkout_cart_hidden_line_items_information($context, array $blocks = [])
  329.     {
  330.         $macros $this->macros;
  331.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  332.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_hidden_line_items_information"));
  333.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  334.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_hidden_line_items_information"));
  335.         // line 62
  336.         echo "            ";
  337.         $this->loadTemplate("@Storefront/storefront/component/checkout/hidden-line-items-information.html.twig""@EmovaTheme/storefront/page/checkout/cart/index.html.twig"62)->display(twig_array_merge($context, ["cart" => sw_get_attribute($this->env$this->source,         // line 63
  338. ($context["page"] ?? null), "cart", [], "any"falsefalsefalse63), "lineItems" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 64
  339. ($context["page"] ?? null), "cart", [], "any"falsefalsefalse64), "lineItems", [], "any"falsefalsefalse64)]));
  340.         // line 66
  341.         echo "       ";
  342.         
  343.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  344.         
  345.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  346.     }
  347.     // line 68
  348.     public function block_page_checkout_cart_add_product_and_shipping($context, array $blocks = [])
  349.     {
  350.         $macros $this->macros;
  351.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  352.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_add_product_and_shipping"));
  353.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  354.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_add_product_and_shipping"));
  355.         // line 69
  356.         echo "       ";
  357.         
  358.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  359.         
  360.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  361.     }
  362.     // line 82
  363.     public function block_page_checkout_aside_actions($context, array $blocks = [])
  364.     {
  365.         $macros $this->macros;
  366.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  367.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions"));
  368.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  369.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions"));
  370.         
  371.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  372.         
  373.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  374.     }
  375.     public function getTemplateName()
  376.     {
  377.         return "@EmovaTheme/storefront/page/checkout/cart/index.html.twig";
  378.     }
  379.     public function isTraitable()
  380.     {
  381.         return false;
  382.     }
  383.     public function getDebugInfo()
  384.     {
  385.         return array (  424 => 82,  414 => 69,  404 => 68,  394 => 66,  392 => 64,  391 => 63,  389 => 62,  379 => 61,  369 => 58,  355 => 57,  349 => 55,  346 => 54,  328 => 53,  318 => 52,  308 => 59,  306 => 52,  303 => 51,  293 => 50,  283 => 70,  281 => 68,  278 => 67,  276 => 61,  273 => 60,  270 => 50,  264 => 49,  261 => 48,  258 => 47,  255 => 46,  252 => 45,  249 => 44,  246 => 43,  243 => 42,  240 => 41,  237 => 40,  232 => 39,  229 => 38,  226 => 37,  216 => 36,  197 => 71,  194 => 36,  184 => 35,  174 => 32,  171 => 31,  151 => 30,  141 => 29,  127 => 25,  124 => 24,  120 => 22,  118 => 21,  115 => 20,  113 => 19,  110 => 18,  108 => 17,  105 => 16,  102 => 10,  99 => 9,  89 => 8,  78 => 5,  68 => 4,  45 => 2,);
  386.     }
  387.     public function getSourceContext()
  388.     {
  389.         return new Source("{% sw_extends '@Storefront/storefront/page/checkout/_pageforcart.html.twig' %}
  390. {% block base_head %}
  391.     {% sw_include '@Storefront/storefront/page/checkout/cart/meta.html.twig' %}
  392. {% endblock %}
  393. {% block page_checkout_container %}
  394.     {% if page.cart.lineItems.count is same as(0) %}
  395.         {% sw_include '@Storefront/storefront/utilities/alert-friendly.html.twig' with {
  396.             type: \"info\",
  397.             heading: \"emova.priceOfferOutdatedHeading\"|trans|sw_sanitize,
  398.             content: \"emova.priceOfferOutdatedText\"|trans|sw_sanitize,
  399.             target: { link: \"/\", message: \"emova.priceOfferOutdatedButton\"|trans|sw_sanitize }
  400.         } %}
  401.         {% set messages = app.flashes %}
  402.         {% if messages.danger|length > 0 %}
  403.             <div class=\"flashbags\">
  404.                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: 'danger', list: messages.danger } %}
  405.             </div>
  406.         {% endif %}
  407.     {% else %}
  408.         {{ parent() }}
  409.     {% endif %}
  410. {% endblock %}
  411. {% block page_checkout_main_header %}
  412.     {% block page_checkout_cart_header %}
  413.         {% sw_include '@Storefront/storefront/component/checkout/step-by-step-bar.html.twig' with {'step': 2} %}
  414.     {% endblock %}
  415. {% endblock %}
  416. {% block page_checkout_main_content %}
  417.     {% block page_checkout_cart %}
  418.        {% set upsellLineItem = null %}
  419.        {% set mainLineItem = null %}
  420.        {% for lineItem in page.cart.lineItems %}
  421.              {% set cs = lineItem.payload.customFields %}
  422.              {% if cs %}
  423.                 {% set upsell = cs[\"ev_produktdaten_upsell\"] %}
  424.                 {% if upsell == true %}
  425.                    {% set upsellLineItem = lineItem %}
  426.                 {% else %}
  427.                    {% set mainLineItem = lineItem %}
  428.                 {% endif %}
  429.              {% endif %}
  430.        {% endfor %}
  431.        {% block page_checkout_cart_product_table %}
  432.           {% block page_checkout_cart_table_items %}
  433.             {% for lineItem in page.cart.lineItems %}
  434.                {% if loop.first %}
  435.                   {% sw_include '@Storefront/storefront/page/checkout/cart/index-inner.html.twig' %} 
  436.                {% endif %}
  437.             {% endfor %}
  438.            {% endblock %}
  439.        {% endblock %}
  440.    
  441.        {% block page_checkout_cart_hidden_line_items_information %}
  442.             {% sw_include '@Storefront/storefront/component/checkout/hidden-line-items-information.html.twig' with {
  443.                 cart: page.cart,
  444.                 lineItems: page.cart.lineItems
  445.             } %}
  446.        {% endblock %}
  447.        {% block page_checkout_cart_add_product_and_shipping %}
  448.        {% endblock %}
  449.    {% endblock %}
  450.    <style>
  451.         .error-message{
  452.             color: var(--red);
  453.             padding: 0 26px;
  454.             display: flex;
  455.         }
  456.    </style>
  457. {% endblock %}
  458. {% block page_checkout_aside_actions %}
  459. {% endblock %}
  460. ""@EmovaTheme/storefront/page/checkout/cart/index.html.twig""/var/www/shop.emova.de/html/custom/plugins/EmovaTheme/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
  461.     }
  462. }