var/cache/dev_h00a6008ac8d83daed65bb1b250bc45b1/twig/a4/a4df2a11cc1aa8bcbc5f0407649f3e336da168e115c89a7dd76b6b247f0ae4b4.php line 53

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. /* @zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig */
  16. class __TwigTemplate_4ccff6294e5e5f5e4c3557056c37ad48 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_quantity_label' => [$this'block_page_checkout_item_quantity_label'],
  26.             'page_checkout_item_quantity_select' => [$this'block_page_checkout_item_quantity_select'],
  27.             'page_product_detail_buy_quantity' => [$this'block_page_product_detail_buy_quantity'],
  28.             'zen_page_product_detail_buy_quantity_zenit_input' => [$this'block_zen_page_product_detail_buy_quantity_zenit_input'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 2
  34.         return "@Storefront/storefront/page/checkout/checkout-item.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig"));
  43.         $this->parent $this->loadTemplate("@Storefront/storefront/page/checkout/checkout-item.html.twig""@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig"2);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     public function block_page_checkout_item_quantity_label($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_quantity_label"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_quantity_label"));
  58.         // line 4
  59.         echo "    <div class=\"col-6 col-sm-12 cart-item-quantity-label\">
  60.         ";
  61.         // line 5
  62.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderQuantity"));
  63.         echo "
  64.     </div>
  65. ";
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.     }
  71.     // line 9
  72.     public function block_page_checkout_item_quantity_select($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_quantity_select"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_quantity_select"));
  79.         // line 10
  80.         echo "    <div class=\"col-6 col-sm-12\">
  81.         ";
  82.         // line 11
  83.         $this->displayBlock("page_checkout_item_quantity_form"$context$blocks);
  84.         echo "
  85.     </div>
  86. ";
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.     }
  92.     // line 15
  93.     public function block_page_product_detail_buy_quantity($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_buy_quantity"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_product_detail_buy_quantity"));
  100.         // line 16
  101.         echo "    ";
  102.         $context["selectQuantityThresholdExceeded"] = ((sw_get_attribute($this->env$this->source, ($context["quantityInformation"] ?? null), "maxPurchase", [], "any"falsefalsefalse16) / sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantityInformation", [], "any"falsefalsefalse16), "purchaseSteps", [], "any"falsefalsefalse16)) > ($context["selectQuantityThreshold"] ?? null));
  103.         // line 17
  104.         echo "
  105.     ";
  106.         // line 18
  107.         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)))) {
  108.             // line 19
  109.             echo "        ";
  110.             $this->displayBlock('zen_page_product_detail_buy_quantity_zenit_input'$context$blocks);
  111.             // line 31
  112.             echo "    ";
  113.         } else {
  114.             // line 32
  115.             echo "        ";
  116.             $this->displayParentBlock("page_product_detail_buy_quantity"$context$blocks);
  117.             echo "
  118.     ";
  119.         }
  120.         
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  122.         
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  124.     }
  125.     // line 19
  126.     public function block_zen_page_product_detail_buy_quantity_zenit_input($context, array $blocks = [])
  127.     {
  128.         $macros $this->macros;
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""zen_page_product_detail_buy_quantity_zenit_input"));
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""zen_page_product_detail_buy_quantity_zenit_input"));
  133.         // line 20
  134.         echo "            ";
  135.         $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
  136. ($context["lineItem"] ?? null), "id", [], "any"falsefalsefalse21), "minPurchase" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 22
  137. ($context["lineItem"] ?? null), "quantityInformation", [], "any"falsefalsefalse22), "minPurchase", [], "any"falsefalsefalse22), "maxPurchase" =>         // line 23
  138. ($context["maxQuantity"] ?? null), "step" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,         // line 24
  139. ($context["lineItem"] ?? null), "quantityInformation", [], "any"falsefalsefalse24), "purchaseSteps", [], "any"falsefalsefalse24), "autoChange" => "submit""value" => sw_get_attribute($this->env$this->source,         // line 26
  140. ($context["lineItem"] ?? null), "quantity", [], "any"falsefalsefalse26), "name" => "quantity""quantityClasses" => "checkout-item-quantity-input js-offcanvas-cart-change-quantity"]));
  141.         // line 30
  142.         echo "        ";
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     public function getTemplateName()
  149.     {
  150.         return "@zenitPlatformStratus/storefront/page/checkout/checkout-item.html.twig";
  151.     }
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     public function getDebugInfo()
  157.     {
  158.         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,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  163. {% block page_checkout_item_quantity_label %}
  164.     <div class=\"col-6 col-sm-12 cart-item-quantity-label\">
  165.         {{ \"checkout.cartHeaderQuantity\"|trans|sw_sanitize }}
  166.     </div>
  167. {% endblock %}
  168. {% block page_checkout_item_quantity_select %}
  169.     <div class=\"col-6 col-sm-12\">
  170.         {{ block('page_checkout_item_quantity_form') }}
  171.     </div>
  172. {% endblock %}
  173. {% block page_product_detail_buy_quantity %}
  174.     {% set selectQuantityThresholdExceeded = quantityInformation.maxPurchase /  lineItem.quantityInformation.purchaseSteps > selectQuantityThreshold %}
  175.     {% if theme_config('zen-buy-quantity-style') is same as ('input') or (theme_config('zen-buy-quantity-style') is same as ('select') and selectQuantityThresholdExceeded) %}
  176.         {% block zen_page_product_detail_buy_quantity_zenit_input %}
  177.             {% sw_include '@zenitPlatformStratus/storefront/component/buy-widget/zen-buy-widget-quantity.html.twig' with {
  178.                 id:  lineItem.id,
  179.                 minPurchase: lineItem.quantityInformation.minPurchase,
  180.                 maxPurchase: maxQuantity,
  181.                 step: lineItem.quantityInformation.purchaseSteps,
  182.                 autoChange: 'submit',
  183.                 value: lineItem.quantity,
  184.                 name: 'quantity',
  185.                 quantityClasses: 'checkout-item-quantity-input js-offcanvas-cart-change-quantity'
  186.             } %}
  187.         {% endblock %}
  188.     {% else %}
  189.         {{ parent() }}
  190.     {% endif %}
  191. {% endblock %}
  192. ""@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");
  193.     }
  194. }