<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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;
/* @AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig */
class __TwigTemplate_2c06d20dd746077f1d4b2306d75c8a56 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_checkout_item' => [$this, 'block_page_checkout_item'],
'page_checkout_item_container' => [$this, 'block_page_checkout_item_container'],
'page_checkout_item_discounts' => [$this, 'block_page_checkout_item_discounts'],
'page_checkout_item_discount' => [$this, 'block_page_checkout_item_discount'],
'page_checkout_item_discount_include' => [$this, 'block_page_checkout_item_discount_include'],
'page_checkout_item_quantity_label' => [$this, 'block_page_checkout_item_quantity_label'],
'page_checkout_item_total_price_inner' => [$this, 'block_page_checkout_item_total_price_inner'],
'page_checkout_item_total_price_tax_symbol' => [$this, 'block_page_checkout_item_total_price_tax_symbol'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig"));
$this->parent = $this->loadTemplate("@FourtwosixPaymentSurcharge/storefront/page/checkout/checkout-item.html.twig", "@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_page_checkout_item($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item"));
// line 4
echo " ";
$context["allDiscounts"] = [];
// line 5
echo "
";
// line 6
$context["lineItems"] = [];
// line 7
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, true, false, 7), "lineItems", [], "any", true, true, false, 7)) {
// line 8
echo " ";
$context["lineItems"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 8), "lineItems", [], "any", false, false, false, 8);
// line 9
echo " ";
} elseif (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "order", [], "any", false, true, false, 9), "lineItems", [], "any", true, true, false, 9)) {
// line 10
echo " ";
$context["lineItems"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "order", [], "any", false, false, false, 10), "lineItems", [], "any", false, false, false, 10);
// line 11
echo " ";
}
// line 12
echo "
";
// line 13
if (($context["lineItems"] ?? null)) {
// line 14
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["lineItems"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 15
echo " ";
if (((sw_get_attribute($this->env, $this->source, $context["item"], "type", [], "any", false, false, false, 15) === "promotion") && (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "payload", [], "any", false, false, false, 15), "discountDisplay", [], "any", false, false, false, 15) === "positionBased"))) {
// line 16
echo " ";
if (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "payload", [], "any", false, true, false, 16), "composition", [], "any", true, true, false, 16)) {
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, $context["item"], "payload", [], "any", false, false, false, 17), "composition", [], "any", false, false, false, 17));
foreach ($context['_seq'] as $context["_key"] => $context["discount"]) {
// line 18
echo " ";
if (((sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "identifier", [], "any", false, false, false, 18) && (sw_get_attribute($this->env, $this->source, $context["discount"], "id", [], "any", false, false, false, 18) == sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "identifier", [], "any", false, false, false, 18))) || (sw_get_attribute($this->env, $this->source, $context["discount"], "id", [], "any", false, false, false, 18) == sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "id", [], "any", false, false, false, 18)))) {
// line 19
echo " ";
$context["allDiscounts"] = twig_array_merge(($context["allDiscounts"] ?? null), [0 => twig_array_merge($context["discount"], [0 => $context["item"]])]);
// line 20
echo " ";
}
// line 21
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['discount'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo " ";
}
// line 23
echo " ";
}
// line 24
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " ";
}
// line 26
echo "
";
// line 27
$this->displayParentBlock("page_checkout_item", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 30
public function block_page_checkout_item_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_container"));
// line 31
echo " ";
if ((((($context["isDiscount"] ?? null) === true) && (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "payload", [], "any", false, false, false, 31), "discountDisplay", [], "any", false, false, false, 31) === "positionBased")) && !array_key_exists("isAcrisDiscountPositionBased", $context))) {
// line 32
echo " ";
// line 33
echo " ";
} else {
// line 34
echo " ";
if (($context["allDiscounts"] ?? null)) {
// line 35
echo " <div class=\"cart-item-has-discount-position-based\">
";
// line 36
$this->displayParentBlock("page_checkout_item_container", $context, $blocks);
echo "
</div>
";
// line 39
$this->displayBlock('page_checkout_item_discounts', $context, $blocks);
// line 56
echo " ";
} else {
// line 57
echo " ";
$this->displayParentBlock("page_checkout_item_container", $context, $blocks);
echo "
";
}
// line 59
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 39
public function block_page_checkout_item_discounts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_discounts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_discounts"));
// line 40
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["allDiscounts"] ?? null));
$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["_key"] => $context["item"]) {
// line 41
echo " ";
$context["lineItem"] = (($__internal_compile_0 = $context["item"]) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null);
// line 42
echo " ";
$this->displayBlock('page_checkout_item_discount', $context, $blocks);
// line 54
echo " ";
++$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['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 42
public function block_page_checkout_item_discount($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_discount"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_discount"));
// line 43
echo " ";
if ((($context["lineItem"] ?? null) && (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "payload", [], "any", false, false, false, 43), "discountDisplay", [], "any", false, false, false, 43) === "positionBased"))) {
// line 44
echo " ";
$context["discountIncludeFile"] = "@Storefront/storefront/page/checkout/checkout-item.html.twig";
// line 45
echo " ";
$this->displayBlock('page_checkout_item_discount_include', $context, $blocks);
// line 52
echo " ";
}
// line 53
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 45
public function block_page_checkout_item_discount_include($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_discount_include"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_discount_include"));
// line 46
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find(($context["discountIncludeFile"] ?? null));
return $this->loadTemplate($includeTemplate ?? null, "@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig", 46);
})())->display(twig_array_merge($context, ["lineItem" => // line 47
($context["lineItem"] ?? null), "isAcrisDiscountPositionBased" => true, "priceDiscount" => sw_get_attribute($this->env, $this->source, // line 49
($context["item"] ?? null), "discount", [], "any", false, false, false, 49)]));
// line 51
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 62
public function block_page_checkout_item_quantity_label($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_quantity_label"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_quantity_label"));
// line 63
echo " ";
if (($context["isAcrisDiscountPositionBased"] ?? null)) {
} else {
$this->displayParentBlock("page_checkout_item_quantity_label", $context, $blocks);
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 66
public function block_page_checkout_item_total_price_inner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_total_price_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_total_price_inner"));
// line 67
echo " ";
if (((($context["isAcrisDiscountPositionBased"] ?? null) === true) && ($context["priceDiscount"] ?? null))) {
echo "- ";
echo sw_escape_filter($this->env, $this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, ($context["priceDiscount"] ?? null)), "html", null, true);
$this->displayBlock('page_checkout_item_total_price_tax_symbol', $context, $blocks);
} else {
$this->displayParentBlock("page_checkout_item_total_price_inner", $context, $blocks);
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function block_page_checkout_item_total_price_tax_symbol($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_total_price_tax_symbol"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_checkout_item_total_price_tax_symbol"));
$this->displayParentBlock("page_checkout_item_total_price_tax_symbol", $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@AcrisPromotionCS/storefront/page/checkout/checkout-item.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
{% block page_checkout_item %}
{% set allDiscounts = [] %}
{% set lineItems = [] %}
{% if page.cart.lineItems is defined %}
{% set lineItems = page.cart.lineItems %}
{% elseif page.order.lineItems is defined %}
{% set lineItems = page.order.lineItems %}
{% endif %}
{% if lineItems %}
{% for item in lineItems %}
{% if item.type is same as (\"promotion\") and item.payload.discountDisplay is same as (\"positionBased\") %}
{% if item.payload.composition is defined %}
{% for discount in item.payload.composition %}
{% if (lineItem.identifier and discount.id == lineItem.identifier) or discount.id == lineItem.id %}
{% set allDiscounts = allDiscounts|merge([discount|merge([item])]) %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block page_checkout_item_container %}
{% if isDiscount is same as (true) and lineItem.payload.discountDisplay is same as (\"positionBased\") and isAcrisDiscountPositionBased is not defined %}
{# hide general discount #}
{% else %}
{% if allDiscounts %}
<div class=\"cart-item-has-discount-position-based\">
{{ parent() }}
</div>
{% block page_checkout_item_discounts %}
{% for item in allDiscounts %}
{% set lineItem = item[0] %}
{% block page_checkout_item_discount %}
{% if lineItem and lineItem.payload.discountDisplay is same as (\"positionBased\") %}
{% set discountIncludeFile = '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
{% block page_checkout_item_discount_include %}
{% sw_include discountIncludeFile with {
'lineItem': lineItem,
'isAcrisDiscountPositionBased': true,
'priceDiscount': item.discount
} %}
{% endblock %}
{% endif %}
{% endblock %}
{% endfor %}
{% endblock %}
{% else %}
{{ parent() }}
{% endif %}
{% endif %}
{% endblock %}
{% block page_checkout_item_quantity_label %}
{% if isAcrisDiscountPositionBased %}{% else %}{{ parent() }}{% endif %}
{% endblock %}
{% block page_checkout_item_total_price_inner %}
{% if isAcrisDiscountPositionBased is same as (true) and priceDiscount %}- {{ priceDiscount|currency }}{% block page_checkout_item_total_price_tax_symbol %}{{ parent() }}{% endblock %}{% else %}{{ parent() }}{% endif %}
{% endblock %}
", "@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");
}
}