var/cache/dev_h00a6008ac8d83daed65bb1b250bc45b1/twig/b3/b3c5f924f64d1ed57ee34eb6e9c0743c63df2be263cc060e59dd9f0b11f2a6a6.php line 47

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. /* @AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig */
  16. class __TwigTemplate_2c06d20dd746077f1d4b2306d75c8a56 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.             'page_checkout_item' => [$this'block_page_checkout_item'],
  26.             'page_checkout_item_container' => [$this'block_page_checkout_item_container'],
  27.             'page_checkout_item_discounts' => [$this'block_page_checkout_item_discounts'],
  28.             'page_checkout_item_discount' => [$this'block_page_checkout_item_discount'],
  29.             'page_checkout_item_discount_include' => [$this'block_page_checkout_item_discount_include'],
  30.             'page_checkout_item_quantity_label' => [$this'block_page_checkout_item_quantity_label'],
  31.             'page_checkout_item_total_price_inner' => [$this'block_page_checkout_item_total_price_inner'],
  32.             'page_checkout_item_total_price_tax_symbol' => [$this'block_page_checkout_item_total_price_tax_symbol'],
  33.         ];
  34.     }
  35.     protected function doGetParent(array $context)
  36.     {
  37.         // line 2
  38.         return "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = [])
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig"));
  47.         $this->parent $this->loadTemplate("@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig""@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig"2);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 3
  55.     public function block_page_checkout_item($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item"));
  62.         // line 4
  63.         echo "    ";
  64.         $context["allDiscounts"] = [];
  65.         // line 5
  66.         echo "
  67.     ";
  68.         // line 6
  69.         $context["lineItems"] = [];
  70.         // line 7
  71.         echo "    ";
  72.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsetruefalse7), "lineItems", [], "any"truetruefalse7)) {
  73.             // line 8
  74.             echo "        ";
  75.             $context["lineItems"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse8), "lineItems", [], "any"falsefalsefalse8);
  76.             // line 9
  77.             echo "    ";
  78.         } elseif (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "order", [], "any"falsetruefalse9), "lineItems", [], "any"truetruefalse9)) {
  79.             // line 10
  80.             echo "        ";
  81.             $context["lineItems"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "order", [], "any"falsefalsefalse10), "lineItems", [], "any"falsefalsefalse10);
  82.             // line 11
  83.             echo "    ";
  84.         }
  85.         // line 12
  86.         echo "
  87.     ";
  88.         // line 13
  89.         if (($context["lineItems"] ?? null)) {
  90.             // line 14
  91.             echo "        ";
  92.             $context['_parent'] = $context;
  93.             $context['_seq'] = twig_ensure_traversable(($context["lineItems"] ?? null));
  94.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  95.                 // line 15
  96.                 echo "            ";
  97.                 if (((sw_get_attribute($this->env$this->source$context["item"], "type", [], "any"falsefalsefalse15) === "promotion") && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["item"], "payload", [], "any"falsefalsefalse15), "discountDisplay", [], "any"falsefalsefalse15) === "positionBased"))) {
  98.                     // line 16
  99.                     echo "                ";
  100.                     if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["item"], "payload", [], "any"falsetruefalse16), "composition", [], "any"truetruefalse16)) {
  101.                         // line 17
  102.                         echo "                    ";
  103.                         $context['_parent'] = $context;
  104.                         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["item"], "payload", [], "any"falsefalsefalse17), "composition", [], "any"falsefalsefalse17));
  105.                         foreach ($context['_seq'] as $context["_key"] => $context["discount"]) {
  106.                             // line 18
  107.                             echo "                        ";
  108.                             if (((sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "identifier", [], "any"falsefalsefalse18) && (sw_get_attribute($this->env$this->source$context["discount"], "id", [], "any"falsefalsefalse18) == sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "identifier", [], "any"falsefalsefalse18))) || (sw_get_attribute($this->env$this->source$context["discount"], "id", [], "any"falsefalsefalse18) == sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "id", [], "any"falsefalsefalse18)))) {
  109.                                 // line 19
  110.                                 echo "                            ";
  111.                                 $context["allDiscounts"] = twig_array_merge(($context["allDiscounts"] ?? null), [=> twig_array_merge($context["discount"], [=> $context["item"]])]);
  112.                                 // line 20
  113.                                 echo "                        ";
  114.                             }
  115.                             // line 21
  116.                             echo "                    ";
  117.                         }
  118.                         $_parent $context['_parent'];
  119.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['discount'], $context['_parent'], $context['loop']);
  120.                         $context array_intersect_key($context$_parent) + $_parent;
  121.                         // line 22
  122.                         echo "                ";
  123.                     }
  124.                     // line 23
  125.                     echo "            ";
  126.                 }
  127.                 // line 24
  128.                 echo "        ";
  129.             }
  130.             $_parent $context['_parent'];
  131.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  132.             $context array_intersect_key($context$_parent) + $_parent;
  133.             // line 25
  134.             echo "    ";
  135.         }
  136.         // line 26
  137.         echo "
  138.     ";
  139.         // line 27
  140.         $this->displayParentBlock("page_checkout_item"$context$blocks);
  141.         echo "
  142. ";
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     // line 30
  149.     public function block_page_checkout_item_container($context, array $blocks = [])
  150.     {
  151.         $macros $this->macros;
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  153.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_container"));
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  155.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_container"));
  156.         // line 31
  157.         echo "    ";
  158.         if ((((($context["isDiscount"] ?? null) === true) && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "payload", [], "any"falsefalsefalse31), "discountDisplay", [], "any"falsefalsefalse31) === "positionBased")) &&  !array_key_exists("isAcrisDiscountPositionBased"$context))) {
  159.             // line 32
  160.             echo "        ";
  161.             // line 33
  162.             echo "    ";
  163.         } else {
  164.             // line 34
  165.             echo "        ";
  166.             if (($context["allDiscounts"] ?? null)) {
  167.                 // line 35
  168.                 echo "            <div class=\"cart-item-has-discount-position-based\">
  169.                 ";
  170.                 // line 36
  171.                 $this->displayParentBlock("page_checkout_item_container"$context$blocks);
  172.                 echo "
  173.             </div>
  174.             ";
  175.                 // line 39
  176.                 $this->displayBlock('page_checkout_item_discounts'$context$blocks);
  177.                 // line 56
  178.                 echo "        ";
  179.             } else {
  180.                 // line 57
  181.                 echo "            ";
  182.                 $this->displayParentBlock("page_checkout_item_container"$context$blocks);
  183.                 echo "
  184.         ";
  185.             }
  186.             // line 59
  187.             echo "    ";
  188.         }
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     // line 39
  195.     public function block_page_checkout_item_discounts($context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_discounts"));
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_discounts"));
  202.         // line 40
  203.         echo "                ";
  204.         $context['_parent'] = $context;
  205.         $context['_seq'] = twig_ensure_traversable(($context["allDiscounts"] ?? null));
  206.         $context['loop'] = [
  207.           'parent' => $context['_parent'],
  208.           'index0' => 0,
  209.           'index'  => 1,
  210.           'first'  => true,
  211.         ];
  212.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  213.             $length count($context['_seq']);
  214.             $context['loop']['revindex0'] = $length 1;
  215.             $context['loop']['revindex'] = $length;
  216.             $context['loop']['length'] = $length;
  217.             $context['loop']['last'] = === $length;
  218.         }
  219.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  220.             // line 41
  221.             echo "                    ";
  222.             $context["lineItem"] = (($__internal_compile_0 $context["item"]) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null);
  223.             // line 42
  224.             echo "                    ";
  225.             $this->displayBlock('page_checkout_item_discount'$context$blocks);
  226.             // line 54
  227.             echo "                ";
  228.             ++$context['loop']['index0'];
  229.             ++$context['loop']['index'];
  230.             $context['loop']['first'] = false;
  231.             if (isset($context['loop']['length'])) {
  232.                 --$context['loop']['revindex0'];
  233.                 --$context['loop']['revindex'];
  234.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  235.             }
  236.         }
  237.         $_parent $context['_parent'];
  238.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  239.         $context array_intersect_key($context$_parent) + $_parent;
  240.         // line 55
  241.         echo "            ";
  242.         
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  244.         
  245.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  246.     }
  247.     // line 42
  248.     public function block_page_checkout_item_discount($context, array $blocks = [])
  249.     {
  250.         $macros $this->macros;
  251.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  252.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_discount"));
  253.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  254.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_discount"));
  255.         // line 43
  256.         echo "                        ";
  257.         if ((($context["lineItem"] ?? null) && (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "payload", [], "any"falsefalsefalse43), "discountDisplay", [], "any"falsefalsefalse43) === "positionBased"))) {
  258.             // line 44
  259.             echo "                            ";
  260.             $context["discountIncludeFile"] = "@Storefront/storefront/page/checkout/checkout-item.html.twig";
  261.             // line 45
  262.             echo "                            ";
  263.             $this->displayBlock('page_checkout_item_discount_include'$context$blocks);
  264.             // line 52
  265.             echo "                        ";
  266.         }
  267.         // line 53
  268.         echo "                    ";
  269.         
  270.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  271.         
  272.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  273.     }
  274.     // line 45
  275.     public function block_page_checkout_item_discount_include($context, array $blocks = [])
  276.     {
  277.         $macros $this->macros;
  278.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  279.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_discount_include"));
  280.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  281.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_discount_include"));
  282.         // line 46
  283.         echo "                                ";
  284.         ((function () use ($context$blocks) {
  285.             $finder $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
  286.             $includeTemplate $finder->find(($context["discountIncludeFile"] ?? null));
  287.             return $this->loadTemplate($includeTemplate ?? null"@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig"46);
  288.         })())->display(twig_array_merge($context, ["lineItem" =>         // line 47
  289. ($context["lineItem"] ?? null), "isAcrisDiscountPositionBased" => true"priceDiscount" => sw_get_attribute($this->env$this->source,         // line 49
  290. ($context["item"] ?? null), "discount", [], "any"falsefalsefalse49)]));
  291.         // line 51
  292.         echo "                            ";
  293.         
  294.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  295.         
  296.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  297.     }
  298.     // line 62
  299.     public function block_page_checkout_item_quantity_label($context, array $blocks = [])
  300.     {
  301.         $macros $this->macros;
  302.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  303.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_quantity_label"));
  304.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  305.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_quantity_label"));
  306.         // line 63
  307.         echo "    ";
  308.         if (($context["isAcrisDiscountPositionBased"] ?? null)) {
  309.         } else {
  310.             $this->displayParentBlock("page_checkout_item_quantity_label"$context$blocks);
  311.         }
  312.         
  313.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  314.         
  315.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  316.     }
  317.     // line 66
  318.     public function block_page_checkout_item_total_price_inner($context, array $blocks = [])
  319.     {
  320.         $macros $this->macros;
  321.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  322.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_total_price_inner"));
  323.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  324.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_total_price_inner"));
  325.         // line 67
  326.         echo "    ";
  327.         if (((($context["isAcrisDiscountPositionBased"] ?? null) === true) && ($context["priceDiscount"] ?? null))) {
  328.             echo "- ";
  329.             echo sw_escape_filter($this->env$this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, ($context["priceDiscount"] ?? null)), "html"nulltrue);
  330.             $this->displayBlock('page_checkout_item_total_price_tax_symbol'$context$blocks);
  331.         } else {
  332.             $this->displayParentBlock("page_checkout_item_total_price_inner"$context$blocks);
  333.         }
  334.         
  335.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  336.         
  337.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  338.     }
  339.     public function block_page_checkout_item_total_price_tax_symbol($context, array $blocks = [])
  340.     {
  341.         $macros $this->macros;
  342.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  343.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_total_price_tax_symbol"));
  344.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  345.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_total_price_tax_symbol"));
  346.         $this->displayParentBlock("page_checkout_item_total_price_tax_symbol"$context$blocks);
  347.         
  348.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  349.         
  350.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  351.     }
  352.     public function getTemplateName()
  353.     {
  354.         return "@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig";
  355.     }
  356.     public function isTraitable()
  357.     {
  358.         return false;
  359.     }
  360.     public function getDebugInfo()
  361.     {
  362.         return array (  371 => 67,  361 => 66,  347 => 63,  337 => 62,  327 => 51,  325 => 49,  324 => 47,  316 => 46,  306 => 45,  296 => 53,  293 => 52,  290 => 45,  287 => 44,  284 => 43,  274 => 42,  264 => 55,  250 => 54,  247 => 42,  244 => 41,  226 => 40,  216 => 39,  205 => 59,  199 => 57,  196 => 56,  194 => 39,  188 => 36,  185 => 35,  182 => 34,  179 => 33,  177 => 32,  174 => 31,  164 => 30,  152 => 27,  149 => 26,  146 => 25,  140 => 24,  137 => 23,  134 => 22,  128 => 21,  125 => 20,  122 => 19,  119 => 18,  114 => 17,  111 => 16,  108 => 15,  103 => 14,  101 => 13,  98 => 12,  95 => 11,  92 => 10,  89 => 9,  86 => 8,  83 => 7,  81 => 6,  78 => 5,  75 => 4,  65 => 3,  42 => 2,);
  363.     }
  364.     public function getSourceContext()
  365.     {
  366.         return new Source("{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  367. {% block page_checkout_item %}
  368.     {% set allDiscounts = [] %}
  369.     {% set lineItems = [] %}
  370.     {% if page.cart.lineItems is defined %}
  371.         {% set lineItems = page.cart.lineItems %}
  372.     {% elseif page.order.lineItems is defined %}
  373.         {% set lineItems = page.order.lineItems %}
  374.     {% endif %}
  375.     {% if lineItems %}
  376.         {% for item in lineItems %}
  377.             {% if item.type is same as (\"promotion\") and item.payload.discountDisplay is same as (\"positionBased\") %}
  378.                 {% if item.payload.composition is defined %}
  379.                     {% for discount in item.payload.composition %}
  380.                         {% if (lineItem.identifier and discount.id == lineItem.identifier) or discount.id == lineItem.id %}
  381.                             {% set allDiscounts = allDiscounts|merge([discount|merge([item])]) %}
  382.                         {% endif %}
  383.                     {% endfor %}
  384.                 {% endif %}
  385.             {% endif %}
  386.         {% endfor %}
  387.     {% endif %}
  388.     {{ parent() }}
  389. {% endblock %}
  390. {% block page_checkout_item_container %}
  391.     {% if isDiscount is same as (true) and lineItem.payload.discountDisplay is same as (\"positionBased\") and isAcrisDiscountPositionBased is not defined %}
  392.         {# hide general discount #}
  393.     {% else %}
  394.         {% if allDiscounts %}
  395.             <div class=\"cart-item-has-discount-position-based\">
  396.                 {{ parent() }}
  397.             </div>
  398.             {% block page_checkout_item_discounts %}
  399.                 {% for item in allDiscounts %}
  400.                     {% set lineItem = item[0] %}
  401.                     {% block page_checkout_item_discount %}
  402.                         {% if lineItem and lineItem.payload.discountDisplay is same as (\"positionBased\") %}
  403.                             {% set discountIncludeFile = '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  404.                             {% block page_checkout_item_discount_include %}
  405.                                 {% sw_include discountIncludeFile with {
  406.                                     'lineItem': lineItem,
  407.                                     'isAcrisDiscountPositionBased': true,
  408.                                     'priceDiscount': item.discount
  409.                                 } %}
  410.                             {% endblock %}
  411.                         {% endif %}
  412.                     {% endblock %}
  413.                 {% endfor %}
  414.             {% endblock %}
  415.         {% else %}
  416.             {{ parent() }}
  417.         {% endif %}
  418.     {% endif %}
  419. {% endblock %}
  420. {% block page_checkout_item_quantity_label %}
  421.     {% if isAcrisDiscountPositionBased %}{% else %}{{ parent() }}{% endif %}
  422. {% endblock %}
  423. {% block page_checkout_item_total_price_inner %}
  424.     {% if isAcrisDiscountPositionBased is same as (true) and priceDiscount %}- {{ priceDiscount|currency }}{% block page_checkout_item_total_price_tax_symbol %}{{ parent() }}{% endblock %}{% else %}{{ parent() }}{% endif %}
  425. {% endblock %}
  426. ""@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig""/var/www/dev.artecon.426.agency/custom/plugins/AcrisPromotionCS/src/Resources/views/storefront/page/checkout/checkout-item.html.twig");
  427.     }
  428. }