<?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;
/* @FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig */
class __TwigTemplate_3ab808aa1d3b328a7045fc5c10781a3e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'page_checkout_item' => [$this, 'block_page_checkout_item'],
'page_checkout_item_container' => [$this, 'block_page_checkout_item_container'],
'page_checkout_item_total_price_qm' => [$this, 'block_page_checkout_item_total_price_qm'],
];
}
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", "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig"));
// line 2
$this->displayBlock('page_checkout_item', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
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 3
echo "
";
// line 4
$context["PRODUCT_LINE_ITEM_TYPE"] = twig_constant("Shopware\\Core\\Checkout\\Cart\\LineItem\\LineItem::PRODUCT_LINE_ITEM_TYPE");
// line 5
echo " ";
$context["deliveryPosition"] = null;
// line 6
echo " ";
if ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 6), "deliveries", [], "any", false, false, false, 6), "count", [], "any", false, false, false, 6) > 0)) {
// line 7
echo " ";
$context["delivery"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 7), "deliveries", [], "any", false, false, false, 7), "first", [], "any", false, false, false, 7);
// line 8
echo " ";
$context["deliveryPosition"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["delivery"] ?? null), "positions", [], "any", false, false, false, 8), "get", [0 => sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "id", [], "any", false, false, false, 8)], "method", false, false, false, 8);
// line 9
echo " ";
}
// line 10
echo " ";
$context["label"] = sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "label", [], "any", false, false, false, 10);
// line 11
echo " ";
$context["appliedDiscount"] = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "extensions", [], "any", false, false, false, 11), "fourtwosixThemeExtension", [], "any", false, false, false, 11), "appliedDiscount", [], "any", false, false, false, 11);
// line 12
echo "
";
// line 13
$this->displayBlock('page_checkout_item_container', $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
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 14
echo " <div class=\"cart-item cart-item-";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "type", [], "any", false, false, false, 14), "html", null, true);
echo " fourtwosix-qm-unit\" data-buybyqmunit-plugin=\"true\">
<div class=\"row cart-item-row\">
";
// line 17
$this->loadTemplate("@Storefront/storefront/page/checkout/checkout-item.html.twig", "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig", 17)->displayBlock("page_checkout_item_info", $context);
echo "
";
// line 19
if ((($context["controllerAction"] ?? null) != "finishPage")) {
// line 20
echo " <div class=\"col-12 col-sm-8 col-md-4 cart-item-quantity\">
\t\t\t\t\t\t";
// line 22
if (((sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantityInformation", [], "any", false, false, false, 22) && sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "stackable", [], "any", false, false, false, 22)) && !($context["isChild"] ?? null))) {
// line 23
echo " <form action=\"";
echo sw_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend.checkout.line-item.change-quantity", ["id" => sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "id", [], "any", false, false, false, 23)]), "html", null, true);
echo "\"
class=\"cart-item-quantity-container cartForm\"
method=\"post\"
data-form-auto-submit=\"true\">
\t\t\t\t\t\t\t\t";
// line 28
echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.checkout.line-item.change-quantity");
echo "
";
// line 30
if ((($context["activeRoute"] ?? null) == "frontend.checkout.cart.page")) {
// line 31
echo " <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.cart.page\">
\t\t\t\t\t\t\t\t";
} elseif (( // line 32
($context["activeRoute"] ?? null) == "frontend.checkout.confirm.page")) {
// line 33
echo " <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.confirm.page\">
";
}
// line 35
echo "
";
// line 36
$context["quantityUnit"] = sw_get_attribute($this->env, $this->source, (($__internal_compile_0 = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 36), "data", [], "any", false, false, false, 36), "elements", [], "any", false, false, false, 36)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[("product-" . sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "id", [], "any", false, false, false, 36))] ?? null) : null), "purchaseUnit", [], "any", false, false, false, 36);
// line 37
echo " ";
$context["quantityPack"] = sw_get_attribute($this->env, $this->source, (($__internal_compile_1 = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 37), "data", [], "any", false, false, false, 37), "elements", [], "any", false, false, false, 37)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[("product-" . sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "id", [], "any", false, false, false, 37))] ?? null) : null), "referenceUnit", [], "any", false, false, false, 37);
// line 38
echo " ";
$context["minPurchase"] = sw_get_attribute($this->env, $this->source, (($__internal_compile_2 = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 38), "data", [], "any", false, false, false, 38), "elements", [], "any", false, false, false, 38)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[("product-" . sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "id", [], "any", false, false, false, 38))] ?? null) : null), "minPurchase", [], "any", false, false, false, 38);
// line 39
echo " ";
$context["purchaseSteps"] = sw_get_attribute($this->env, $this->source, (($__internal_compile_3 = sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["page"] ?? null), "cart", [], "any", false, false, false, 39), "data", [], "any", false, false, false, 39), "elements", [], "any", false, false, false, 39)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[("product-" . sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "id", [], "any", false, false, false, 39))] ?? null) : null), "purchaseSteps", [], "any", false, false, false, 39);
// line 40
echo " ";
$context["availableStock"] = ((sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "payload", [], "any", false, false, false, 40), "isCloseout", [], "any", false, false, false, 40)) ? (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantityInformation", [], "any", false, false, false, 40), "maxPurchase", [], "any", false, false, false, 40)) : ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "core.cart.maxQuantity")));
// line 41
echo "
";
// line 42
$this->loadTemplate("@fourtwosixBuyByQmUnit/storefront/component/product/card/price-qm-unit.html.twig", "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig", 42)->display(twig_array_merge($context, ["isCloseout" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 43
($context["lineItem"] ?? null), "payload", [], "any", false, false, false, 43), "isCloseout", [], "any", false, false, false, 43), "stock" => // line 44
($context["availableStock"] ?? null), "priceUnit" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 45
($context["lineItem"] ?? null), "price", [], "any", false, false, false, 45), "unitPrice", [], "any", false, false, false, 45), "sellingUnit" => ( // line 46
($context["quantityUnit"] ?? null) * sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantity", [], "any", false, false, false, 46)), "packUnit" => sw_get_attribute($this->env, $this->source, // line 47
($context["lineItem"] ?? null), "quantity", [], "any", false, false, false, 47), "quantityInputName" => "quantity", "quantityInputClasses" => "quantity-select", "translatedUnitName" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 50
($context["lineItem"] ?? null), "price", [], "any", false, false, false, 50), "referencePrice", [], "any", false, false, false, 50), "unitName", [], "any", false, false, false, 50), "minPurchase" => // line 51
($context["minPurchase"] ?? null), "purchaseSteps" => // line 52
($context["purchaseSteps"] ?? null), "sellingStep" => ( // line 53
($context["quantityUnit"] ?? null) * sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantity", [], "any", false, false, false, 53))]));
// line 55
echo "\t\t\t\t\t\t\t</form>
";
}
// line 57
echo "\t\t\t\t\t</div>
";
} else {
// line 59
echo " <div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
<div>
<div class=\"font-weight-bold\">
";
// line 62
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 62), "referencePrice", [], "any", false, false, false, 62), "unitName", [], "any", false, false, false, 62), "html", null, true);
echo "
</div>
";
// line 64
echo sw_escape_filter($this->env, (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 64), "referencePrice", [], "any", false, false, false, 64), "purchaseUnit", [], "any", false, false, false, 64) * sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantity", [], "any", false, false, false, 64)), "html", null, true);
echo "
</div>
</div>
<div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
<div>
<div class=\"font-weight-bold\">
";
// line 70
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderQuantity"));
echo "
</div>
";
// line 72
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantity", [], "any", false, false, false, 72), "html", null, true);
echo "
</div>
</div>
";
}
// line 76
echo "
";
// line 77
$this->displayBlock('page_checkout_item_total_price_qm', $context, $blocks);
// line 124
echo "
";
// line 125
if ((($context["controllerAction"] ?? null) != "finishPage")) {
// line 126
echo " ";
$this->loadTemplate("@Storefront/storefront/page/checkout/checkout-item.html.twig", "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig", 126)->displayBlock("page_checkout_item_remove", $context);
echo "
";
}
// line 128
echo " </div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 77
public function block_page_checkout_item_total_price_qm($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_qm"));
$__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_qm"));
// line 78
echo " <div class=\"col-12 col-sm-4 col-md-2 cart-item-price text-right\">
<div class=\"cart-item-unit-price\">
<div class=\"cart-item-unit-price-label font-weight-bold\">
";
// line 82
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderUnitPrice"));
echo "
</div>
<div>
";
// line 86
if (($context["appliedDiscount"] ?? null)) {
// line 87
echo " ";
$context["discountProQuantity"] = (($context["appliedDiscount"] ?? null) / sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantity", [], "any", false, false, false, 87));
// line 88
echo " <div class=\"font-weight-bold\">
<span class=\"text-decoration-line-through\">
";
// line 90
echo sw_escape_filter($this->env, $this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 90), "unitPrice", [], "any", false, false, false, 90)), "html", null, true);
echo "
</span>
<span class=\"text-danger\">
";
// line 93
echo sw_escape_filter($this->env, $this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 93), "unitPrice", [], "any", false, false, false, 93) - ($context["discountProQuantity"] ?? null))), "html", null, true);
echo "
</span>
</div>
<div>
(";
// line 97
echo sw_escape_filter($this->env, $this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 97), "referencePrice", [], "any", false, false, false, 97), "price", [], "any", false, false, false, 97) - ( // line 98
($context["discountProQuantity"] ?? null) / sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 98), "referencePrice", [], "any", false, false, false, 98), "purchaseUnit", [], "any", false, false, false, 98)))), "html", null, true);
// line 99
echo "/";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 99), "referencePrice", [], "any", false, false, false, 99), "referenceUnit", [], "any", false, false, false, 99), "html", null, true);
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 99), "referencePrice", [], "any", false, false, false, 99), "unitName", [], "any", false, false, false, 99), "html", null, true);
echo ")
</div>
";
} else {
// line 102
echo " <span>
";
// line 103
echo sw_escape_filter($this->env, $this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 103), "unitPrice", [], "any", false, false, false, 103)), "html", null, true);
echo "
</span>
<div>
(";
// line 106
echo sw_escape_filter($this->env, $this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 106), "referencePrice", [], "any", false, false, false, 106), "price", [], "any", false, false, false, 106)), "html", null, true);
echo "/";
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 106), "referencePrice", [], "any", false, false, false, 106), "referenceUnit", [], "any", false, false, false, 106), "html", null, true);
echo sw_escape_filter($this->env, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 106), "referencePrice", [], "any", false, false, false, 106), "unitName", [], "any", false, false, false, 106), "html", null, true);
echo ")
</div>
";
}
// line 109
echo " </div>
</div>
<div class=\"cart-item-unit-price mt-md-2\">
<div class=\"cart-item-total-price-label fts-qm\">
";
// line 114
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderTotalPrice"));
echo "
</div>
<div class=\"font-weight-bold totalPrice ";
// line 117
if (($context["appliedDiscount"] ?? null)) {
echo "text-danger";
}
echo "\">
";
// line 118
echo sw_escape_filter($this->env, $this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($context, (sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "price", [], "any", false, false, false, 118), "totalPrice", [], "any", false, false, false, 118) - ($context["appliedDiscount"] ?? null))), "html", null, true);
echo "
";
// line 119
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.star"));
echo "
</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig";
}
public function getDebugInfo()
{
return array ( 353 => 119, 349 => 118, 343 => 117, 337 => 114, 330 => 109, 321 => 106, 315 => 103, 312 => 102, 304 => 99, 302 => 98, 301 => 97, 294 => 93, 288 => 90, 284 => 88, 281 => 87, 279 => 86, 272 => 82, 266 => 78, 256 => 77, 244 => 128, 238 => 126, 236 => 125, 233 => 124, 231 => 77, 228 => 76, 221 => 72, 216 => 70, 207 => 64, 202 => 62, 197 => 59, 193 => 57, 189 => 55, 187 => 53, 186 => 52, 185 => 51, 184 => 50, 183 => 47, 182 => 46, 181 => 45, 180 => 44, 179 => 43, 178 => 42, 175 => 41, 172 => 40, 169 => 39, 166 => 38, 163 => 37, 161 => 36, 158 => 35, 154 => 33, 152 => 32, 149 => 31, 147 => 30, 142 => 28, 133 => 23, 131 => 22, 127 => 20, 125 => 19, 120 => 17, 113 => 14, 94 => 13, 91 => 12, 88 => 11, 85 => 10, 82 => 9, 79 => 8, 76 => 7, 73 => 6, 70 => 5, 68 => 4, 65 => 3, 46 => 2,);
}
public function getSourceContext()
{
return new Source("{# @deprecated tag:v6.5.0 - Template `checkout-item.html.twig` is deprecated. Use `storefront/component/line-item/line-item.html.twig` instead. #}
{% block page_checkout_item %}
{% set PRODUCT_LINE_ITEM_TYPE = constant('Shopware\\\\Core\\\\Checkout\\\\Cart\\\\LineItem\\\\LineItem::PRODUCT_LINE_ITEM_TYPE') %}
{% set deliveryPosition = null %}
{% if page.cart.deliveries.count > 0 %}
{% set delivery = page.cart.deliveries.first %}
{% set deliveryPosition = delivery.positions.get(lineItem.id) %}
{% endif %}
{% set label = lineItem.label %}
{% set appliedDiscount = lineItem.extensions.fourtwosixThemeExtension.appliedDiscount %}
{% block page_checkout_item_container %}
<div class=\"cart-item cart-item-{{ lineItem.type }} fourtwosix-qm-unit\" data-buybyqmunit-plugin=\"true\">
<div class=\"row cart-item-row\">
{{ block(\"page_checkout_item_info\", \"@Storefront/storefront/page/checkout/checkout-item.html.twig\") }}
{% if controllerAction != \"finishPage\" %}
<div class=\"col-12 col-sm-8 col-md-4 cart-item-quantity\">
\t\t\t\t\t\t{% if lineItem.quantityInformation and lineItem.stackable and not isChild %}
<form action=\"{{ path('frontend.checkout.line-item.change-quantity', {'id': lineItem.id}) }}\"
class=\"cart-item-quantity-container cartForm\"
method=\"post\"
data-form-auto-submit=\"true\">
\t\t\t\t\t\t\t\t{{ sw_csrf('frontend.checkout.line-item.change-quantity') }}
{% if activeRoute == \"frontend.checkout.cart.page\" %}
<input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.cart.page\">
\t\t\t\t\t\t\t\t{% elseif activeRoute == \"frontend.checkout.confirm.page\" %}
<input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.confirm.page\">
{% endif %}
{% set quantityUnit = page.cart.data.elements[\"product-\"~ lineItem.id].purchaseUnit %}
{% set quantityPack = page.cart.data.elements[\"product-\"~ lineItem.id].referenceUnit %}
{% set minPurchase = page.cart.data.elements[\"product-\"~ lineItem.id].minPurchase %}
{% set purchaseSteps = page.cart.data.elements[\"product-\"~ lineItem.id].purchaseSteps %}
{% set availableStock = lineItem.payload.isCloseout ? lineItem.quantityInformation.maxPurchase : config('core.cart.maxQuantity') %}
{% sw_include '@Storefront/storefront/component/product/card/price-qm-unit.html.twig' with {
'isCloseout': lineItem.payload.isCloseout,
'stock': availableStock,
'priceUnit': lineItem.price.unitPrice,
'sellingUnit': quantityUnit * lineItem.quantity,
'packUnit': lineItem.quantity,
'quantityInputName': \"quantity\",
'quantityInputClasses': 'quantity-select',
'translatedUnitName' : lineItem.price.referencePrice.unitName,
'minPurchase': minPurchase,
\"purchaseSteps\": purchaseSteps,
\"sellingStep\": quantityUnit * lineItem.quantity,
} %}
\t\t\t\t\t\t\t</form>
{% endif %}
\t\t\t\t\t</div>
{% else %}
<div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
<div>
<div class=\"font-weight-bold\">
{{ lineItem.price.referencePrice.unitName }}
</div>
{{ lineItem.price.referencePrice.purchaseUnit * lineItem.quantity }}
</div>
</div>
<div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
<div>
<div class=\"font-weight-bold\">
{{ \"checkout.cartHeaderQuantity\"|trans|sw_sanitize }}
</div>
{{ lineItem.quantity }}
</div>
</div>
{% endif %}
{% block page_checkout_item_total_price_qm %}
<div class=\"col-12 col-sm-4 col-md-2 cart-item-price text-right\">
<div class=\"cart-item-unit-price\">
<div class=\"cart-item-unit-price-label font-weight-bold\">
{{ \"checkout.cartHeaderUnitPrice\"|trans|sw_sanitize }}
</div>
<div>
{% if appliedDiscount %}
{% set discountProQuantity = (appliedDiscount / lineItem.quantity) %}
<div class=\"font-weight-bold\">
<span class=\"text-decoration-line-through\">
{{ lineItem.price.unitPrice|currency }}
</span>
<span class=\"text-danger\">
{{ (lineItem.price.unitPrice - discountProQuantity)|currency }}
</span>
</div>
<div>
({{ (lineItem.price.referencePrice.price -
(discountProQuantity / lineItem.price.referencePrice.purchaseUnit)
)|currency }}/{{ lineItem.price.referencePrice.referenceUnit }}{{ lineItem.price.referencePrice.unitName }})
</div>
{% else %}
<span>
{{ lineItem.price.unitPrice|currency }}
</span>
<div>
({{ lineItem.price.referencePrice.price|currency }}/{{ lineItem.price.referencePrice.referenceUnit }}{{ lineItem.price.referencePrice.unitName }})
</div>
{% endif %}
</div>
</div>
<div class=\"cart-item-unit-price mt-md-2\">
<div class=\"cart-item-total-price-label fts-qm\">
{{ \"checkout.cartHeaderTotalPrice\"|trans|sw_sanitize }}
</div>
<div class=\"font-weight-bold totalPrice {% if appliedDiscount %}text-danger{% endif %}\">
{{ (lineItem.price.totalPrice - appliedDiscount)|currency }}
{{ \"general.star\"|trans|sw_sanitize }}
</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
{% endblock %}
{% if controllerAction != \"finishPage\" %}
{{ block(\"page_checkout_item_remove\", \"@Storefront/storefront/page/checkout/checkout-item.html.twig\") }}
{% endif %}
</div>
</div>
{% endblock %}
{% endblock %}", "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig", "/var/www/dev.artecon.426.agency/custom/plugins/FourtwosixThemeExtension/src/Resources/views/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig");
}
}