<?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;
/* @zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig */
class __TwigTemplate_4ccff6294e5e5f5e4c3557056c37ad48 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_checkout_item_quantity_label' => [$this, 'block_page_checkout_item_quantity_label'],
'page_checkout_item_quantity_select' => [$this, 'block_page_checkout_item_quantity_select'],
'page_product_detail_buy_quantity' => [$this, 'block_page_product_detail_buy_quantity'],
'zen_page_product_detail_buy_quantity_zenit_input' => [$this, 'block_zen_page_product_detail_buy_quantity_zenit_input'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@Storefront/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", "@zenitPlatformStratus/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", "@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig"));
$this->parent = $this->loadTemplate("@Storefront/storefront/page/checkout/checkout-item.html.twig", "@zenitPlatformStratus/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_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 4
echo " <div class=\"col-6 col-sm-12 cart-item-quantity-label\">
";
// line 5
echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderQuantity"));
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 9
public function block_page_checkout_item_quantity_select($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_select"));
$__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_select"));
// line 10
echo " <div class=\"col-6 col-sm-12\">
";
// line 11
$this->displayBlock("page_checkout_item_quantity_form", $context, $blocks);
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_page_product_detail_buy_quantity($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_product_detail_buy_quantity"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_product_detail_buy_quantity"));
// line 16
echo " ";
$context["selectQuantityThresholdExceeded"] = ((sw_get_attribute($this->env, $this->source, ($context["quantityInformation"] ?? null), "maxPurchase", [], "any", false, false, false, 16) / sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, ($context["lineItem"] ?? null), "quantityInformation", [], "any", false, false, false, 16), "purchaseSteps", [], "any", false, false, false, 16)) > ($context["selectQuantityThreshold"] ?? null));
// line 17
echo "
";
// line 18
if ((($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "zen-buy-quantity-style") === "input") || (($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->theme($context, "zen-buy-quantity-style") === "select") && ($context["selectQuantityThresholdExceeded"] ?? null)))) {
// line 19
echo " ";
$this->displayBlock('zen_page_product_detail_buy_quantity_zenit_input', $context, $blocks);
// line 31
echo " ";
} else {
// line 32
echo " ";
$this->displayParentBlock("page_product_detail_buy_quantity", $context, $blocks);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 19
public function block_zen_page_product_detail_buy_quantity_zenit_input($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", "zen_page_product_detail_buy_quantity_zenit_input"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "zen_page_product_detail_buy_quantity_zenit_input"));
// line 20
echo " ";
$this->loadTemplate("@zenitPlatformStratus/storefront/component/buy-widget/zen-buy-widget-quantity.html.twig", "@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig", 20)->display(twig_array_merge($context, ["id" => sw_get_attribute($this->env, $this->source, // line 21
($context["lineItem"] ?? null), "id", [], "any", false, false, false, 21), "minPurchase" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 22
($context["lineItem"] ?? null), "quantityInformation", [], "any", false, false, false, 22), "minPurchase", [], "any", false, false, false, 22), "maxPurchase" => // line 23
($context["maxQuantity"] ?? null), "step" => sw_get_attribute($this->env, $this->source, sw_get_attribute($this->env, $this->source, // line 24
($context["lineItem"] ?? null), "quantityInformation", [], "any", false, false, false, 24), "purchaseSteps", [], "any", false, false, false, 24), "autoChange" => "submit", "value" => sw_get_attribute($this->env, $this->source, // line 26
($context["lineItem"] ?? null), "quantity", [], "any", false, false, false, 26), "name" => "quantity", "quantityClasses" => "checkout-item-quantity-input js-offcanvas-cart-change-quantity"]));
// line 30
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 169 => 30, 167 => 26, 166 => 24, 165 => 23, 164 => 22, 163 => 21, 161 => 20, 151 => 19, 137 => 32, 134 => 31, 131 => 19, 129 => 18, 126 => 17, 123 => 16, 113 => 15, 100 => 11, 97 => 10, 87 => 9, 74 => 5, 71 => 4, 61 => 3, 38 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
{% block page_checkout_item_quantity_label %}
<div class=\"col-6 col-sm-12 cart-item-quantity-label\">
{{ \"checkout.cartHeaderQuantity\"|trans|sw_sanitize }}
</div>
{% endblock %}
{% block page_checkout_item_quantity_select %}
<div class=\"col-6 col-sm-12\">
{{ block('page_checkout_item_quantity_form') }}
</div>
{% endblock %}
{% block page_product_detail_buy_quantity %}
{% set selectQuantityThresholdExceeded = quantityInformation.maxPurchase / lineItem.quantityInformation.purchaseSteps > selectQuantityThreshold %}
{% if theme_config('zen-buy-quantity-style') is same as ('input') or (theme_config('zen-buy-quantity-style') is same as ('select') and selectQuantityThresholdExceeded) %}
{% block zen_page_product_detail_buy_quantity_zenit_input %}
{% sw_include '@zenitPlatformStratus/storefront/component/buy-widget/zen-buy-widget-quantity.html.twig' with {
id: lineItem.id,
minPurchase: lineItem.quantityInformation.minPurchase,
maxPurchase: maxQuantity,
step: lineItem.quantityInformation.purchaseSteps,
autoChange: 'submit',
value: lineItem.quantity,
name: 'quantity',
quantityClasses: 'checkout-item-quantity-input js-offcanvas-cart-change-quantity'
} %}
{% endblock %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
", "@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig", "/var/www/dev.artecon.426.agency/custom/plugins/zenitPlatformStratus/src/Resources/views/storefront/page/checkout/checkout-item.html.twig");
}
}