var/cache/dev_h00a6008ac8d83daed65bb1b250bc45b1/twig/23/232b5d068d755656ee5d4ee6dea8b463bbb9ef02e8abf16294c99b09bea4bca5.php line 96

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. /* @FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig */
  16. class __TwigTemplate_3ab808aa1d3b328a7045fc5c10781a3e 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->parent false;
  25.         $this->blocks = [
  26.             'page_checkout_item' => [$this'block_page_checkout_item'],
  27.             'page_checkout_item_container' => [$this'block_page_checkout_item_container'],
  28.             'page_checkout_item_total_price_qm' => [$this'block_page_checkout_item_total_price_qm'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig"));
  38.         // line 2
  39.         $this->displayBlock('page_checkout_item'$context$blocks);
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     public function block_page_checkout_item($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item"));
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item"));
  52.         // line 3
  53.         echo "
  54.     ";
  55.         // line 4
  56.         $context["PRODUCT_LINE_ITEM_TYPE"] = twig_constant("Shopware\\Core\\Checkout\\Cart\\LineItem\\LineItem::PRODUCT_LINE_ITEM_TYPE");
  57.         // line 5
  58.         echo "    ";
  59.         $context["deliveryPosition"] = null;
  60.         // line 6
  61.         echo "    ";
  62.         if ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse6), "deliveries", [], "any"falsefalsefalse6), "count", [], "any"falsefalsefalse6) > 0)) {
  63.             // line 7
  64.             echo "        ";
  65.             $context["delivery"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse7), "deliveries", [], "any"falsefalsefalse7), "first", [], "any"falsefalsefalse7);
  66.             // line 8
  67.             echo "        ";
  68.             $context["deliveryPosition"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["delivery"] ?? null), "positions", [], "any"falsefalsefalse8), "get", [=> sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "id", [], "any"falsefalsefalse8)], "method"falsefalsefalse8);
  69.             // line 9
  70.             echo "    ";
  71.         }
  72.         // line 10
  73.         echo "    ";
  74.         $context["label"] = sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "label", [], "any"falsefalsefalse10);
  75.         // line 11
  76.         echo "    ";
  77.         $context["appliedDiscount"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "extensions", [], "any"falsefalsefalse11), "fourtwosixThemeExtension", [], "any"falsefalsefalse11), "appliedDiscount", [], "any"falsefalsefalse11);
  78.         // line 12
  79.         echo "
  80.     ";
  81.         // line 13
  82.         $this->displayBlock('page_checkout_item_container'$context$blocks);
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.     }
  88.     public function block_page_checkout_item_container($context, array $blocks = [])
  89.     {
  90.         $macros $this->macros;
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_container"));
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_container"));
  95.         // line 14
  96.         echo "        <div class=\"cart-item cart-item-";
  97.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "type", [], "any"falsefalsefalse14), "html"nulltrue);
  98.         echo " fourtwosix-qm-unit\" data-buybyqmunit-plugin=\"true\">
  99.             <div class=\"row cart-item-row\">
  100.                 ";
  101.         // line 17
  102.         $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);
  103.         echo "
  104.                 ";
  105.         // line 19
  106.         if ((($context["controllerAction"] ?? null) != "finishPage")) {
  107.             // line 20
  108.             echo "                    <div class=\"col-12 col-sm-8 col-md-4 cart-item-quantity\">
  109. \t\t\t\t\t\t";
  110.             // line 22
  111.             if (((sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantityInformation", [], "any"falsefalsefalse22) && sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "stackable", [], "any"falsefalsefalse22)) &&  !($context["isChild"] ?? null))) {
  112.                 // line 23
  113.                 echo "                            <form action=\"";
  114.                 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"falsefalsefalse23)]), "html"nulltrue);
  115.                 echo "\"
  116.                                 class=\"cart-item-quantity-container cartForm\"
  117.                                 method=\"post\"
  118.                                 data-form-auto-submit=\"true\">
  119. \t\t\t\t\t\t\t\t";
  120.                 // line 28
  121.                 echo $this->extensions['Shopware\Storefront\Framework\Twig\Extension\CsrfFunctionExtension']->createCsrfPlaceholder("frontend.checkout.line-item.change-quantity");
  122.                 echo "
  123.                                 ";
  124.                 // line 30
  125.                 if ((($context["activeRoute"] ?? null) == "frontend.checkout.cart.page")) {
  126.                     // line 31
  127.                     echo "                                    <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.cart.page\">
  128. \t\t\t\t\t\t\t\t";
  129.                 } elseif ((                // line 32
  130. ($context["activeRoute"] ?? null) == "frontend.checkout.confirm.page")) {
  131.                     // line 33
  132.                     echo "                                    <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.confirm.page\">
  133.                                 ";
  134.                 }
  135.                 // line 35
  136.                 echo "
  137.                                 ";
  138.                 // line 36
  139.                 $context["quantityUnit"] = sw_get_attribute($this->env$this->source, (($__internal_compile_0 sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse36), "data", [], "any"falsefalsefalse36), "elements", [], "any"falsefalsefalse36)) && 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"falsefalsefalse36))] ?? null) : null), "purchaseUnit", [], "any"falsefalsefalse36);
  140.                 // line 37
  141.                 echo "                                ";
  142.                 $context["quantityPack"] = sw_get_attribute($this->env$this->source, (($__internal_compile_1 sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse37), "data", [], "any"falsefalsefalse37), "elements", [], "any"falsefalsefalse37)) && 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"falsefalsefalse37))] ?? null) : null), "referenceUnit", [], "any"falsefalsefalse37);
  143.                 // line 38
  144.                 echo "                                ";
  145.                 $context["minPurchase"] = sw_get_attribute($this->env$this->source, (($__internal_compile_2 sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse38), "data", [], "any"falsefalsefalse38), "elements", [], "any"falsefalsefalse38)) && 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"falsefalsefalse38))] ?? null) : null), "minPurchase", [], "any"falsefalsefalse38);
  146.                 // line 39
  147.                 echo "                                ";
  148.                 $context["purchaseSteps"] = sw_get_attribute($this->env$this->source, (($__internal_compile_3 sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "cart", [], "any"falsefalsefalse39), "data", [], "any"falsefalsefalse39), "elements", [], "any"falsefalsefalse39)) && 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"falsefalsefalse39))] ?? null) : null), "purchaseSteps", [], "any"falsefalsefalse39);
  149.                 // line 40
  150.                 echo "                                ";
  151.                 $context["availableStock"] = ((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "payload", [], "any"falsefalsefalse40), "isCloseout", [], "any"falsefalsefalse40)) ? (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantityInformation", [], "any"falsefalsefalse40), "maxPurchase", [], "any"falsefalsefalse40)) : ($this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context"core.cart.maxQuantity")));
  152.                 // line 41
  153.                 echo "
  154.                                 ";
  155.                 // line 42
  156.                 $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->sourcesw_get_attribute($this->env$this->source,                 // line 43
  157. ($context["lineItem"] ?? null), "payload", [], "any"falsefalsefalse43), "isCloseout", [], "any"falsefalsefalse43), "stock" =>                 // line 44
  158. ($context["availableStock"] ?? null), "priceUnit" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,                 // line 45
  159. ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse45), "unitPrice", [], "any"falsefalsefalse45), "sellingUnit" => (                // line 46
  160. ($context["quantityUnit"] ?? null) * sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantity", [], "any"falsefalsefalse46)), "packUnit" => sw_get_attribute($this->env$this->source,                 // line 47
  161. ($context["lineItem"] ?? null), "quantity", [], "any"falsefalsefalse47), "quantityInputName" => "quantity""quantityInputClasses" => "quantity-select""translatedUnitName" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source,                 // line 50
  162. ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse50), "referencePrice", [], "any"falsefalsefalse50), "unitName", [], "any"falsefalsefalse50), "minPurchase" =>                 // line 51
  163. ($context["minPurchase"] ?? null), "purchaseSteps" =>                 // line 52
  164. ($context["purchaseSteps"] ?? null), "sellingStep" => (                // line 53
  165. ($context["quantityUnit"] ?? null) * sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantity", [], "any"falsefalsefalse53))]));
  166.                 // line 55
  167.                 echo "\t\t\t\t\t\t\t</form>
  168.                         ";
  169.             }
  170.             // line 57
  171.             echo "\t\t\t\t\t</div>
  172.                 ";
  173.         } else {
  174.             // line 59
  175.             echo "                    <div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
  176.                         <div>
  177.                             <div class=\"font-weight-bold\">
  178.                                 ";
  179.             // line 62
  180.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse62), "referencePrice", [], "any"falsefalsefalse62), "unitName", [], "any"falsefalsefalse62), "html"nulltrue);
  181.             echo "
  182.                             </div>
  183.                             ";
  184.             // line 64
  185.             echo sw_escape_filter($this->env, (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse64), "referencePrice", [], "any"falsefalsefalse64), "purchaseUnit", [], "any"falsefalsefalse64) * sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantity", [], "any"falsefalsefalse64)), "html"nulltrue);
  186.             echo "
  187.                         </div>
  188.                     </div>
  189.                     <div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
  190.                         <div>
  191.                             <div class=\"font-weight-bold\">
  192.                                 ";
  193.             // line 70
  194.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderQuantity"));
  195.             echo "
  196.                             </div>
  197.                             ";
  198.             // line 72
  199.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantity", [], "any"falsefalsefalse72), "html"nulltrue);
  200.             echo "
  201.                         </div>
  202.                     </div>
  203.                 ";
  204.         }
  205.         // line 76
  206.         echo "
  207.                 ";
  208.         // line 77
  209.         $this->displayBlock('page_checkout_item_total_price_qm'$context$blocks);
  210.         // line 124
  211.         echo "
  212.                 ";
  213.         // line 125
  214.         if ((($context["controllerAction"] ?? null) != "finishPage")) {
  215.             // line 126
  216.             echo "                    ";
  217.             $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);
  218.             echo "
  219.                 ";
  220.         }
  221.         // line 128
  222.         echo "            </div>
  223.         </div>
  224.     ";
  225.         
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  227.         
  228.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  229.     }
  230.     // line 77
  231.     public function block_page_checkout_item_total_price_qm($context, array $blocks = [])
  232.     {
  233.         $macros $this->macros;
  234.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  235.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_total_price_qm"));
  236.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  237.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_item_total_price_qm"));
  238.         // line 78
  239.         echo "                    <div class=\"col-12 col-sm-4 col-md-2 cart-item-price text-right\">
  240.                         <div class=\"cart-item-unit-price\">
  241.                             <div class=\"cart-item-unit-price-label font-weight-bold\">
  242.                                 ";
  243.         // line 82
  244.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderUnitPrice"));
  245.         echo "
  246.                             </div>
  247.                             <div>
  248.                                 ";
  249.         // line 86
  250.         if (($context["appliedDiscount"] ?? null)) {
  251.             // line 87
  252.             echo "                                    ";
  253.             $context["discountProQuantity"] = (($context["appliedDiscount"] ?? null) / sw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "quantity", [], "any"falsefalsefalse87));
  254.             // line 88
  255.             echo "                                    <div class=\"font-weight-bold\">
  256.                                         <span class=\"text-decoration-line-through\">
  257.                                             ";
  258.             // line 90
  259.             echo sw_escape_filter($this->env$this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($contextsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse90), "unitPrice", [], "any"falsefalsefalse90)), "html"nulltrue);
  260.             echo "
  261.                                         </span>
  262.                                         <span class=\"text-danger\">
  263.                                             ";
  264.             // line 93
  265.             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->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse93), "unitPrice", [], "any"falsefalsefalse93) - ($context["discountProQuantity"] ?? null))), "html"nulltrue);
  266.             echo "
  267.                                         </span>
  268.                                     </div>
  269.                                     <div>
  270.                                         (";
  271.             // line 97
  272.             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->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse97), "referencePrice", [], "any"falsefalsefalse97), "price", [], "any"falsefalsefalse97) - (            // line 98
  273. ($context["discountProQuantity"] ?? null) / sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse98), "referencePrice", [], "any"falsefalsefalse98), "purchaseUnit", [], "any"falsefalsefalse98)))), "html"nulltrue);
  274.             // line 99
  275.             echo "/";
  276.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse99), "referencePrice", [], "any"falsefalsefalse99), "referenceUnit", [], "any"falsefalsefalse99), "html"nulltrue);
  277.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse99), "referencePrice", [], "any"falsefalsefalse99), "unitName", [], "any"falsefalsefalse99), "html"nulltrue);
  278.             echo ")
  279.                                     </div>
  280.                                 ";
  281.         } else {
  282.             // line 102
  283.             echo "                                    <span>
  284.                                         ";
  285.             // line 103
  286.             echo sw_escape_filter($this->env$this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($contextsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse103), "unitPrice", [], "any"falsefalsefalse103)), "html"nulltrue);
  287.             echo "
  288.                                     </span>
  289.                                     <div>
  290.                                         (";
  291.             // line 106
  292.             echo sw_escape_filter($this->env$this->extensions['FourtwosixMaintainNetPrice\Decorator\Core\Content\Framework\Adapter\Twig\Filter\CurrencyFilterDecorator']->formatCurrency($contextsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse106), "referencePrice", [], "any"falsefalsefalse106), "price", [], "any"falsefalsefalse106)), "html"nulltrue);
  293.             echo "/";
  294.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse106), "referencePrice", [], "any"falsefalsefalse106), "referenceUnit", [], "any"falsefalsefalse106), "html"nulltrue);
  295.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse106), "referencePrice", [], "any"falsefalsefalse106), "unitName", [], "any"falsefalsefalse106), "html"nulltrue);
  296.             echo ")
  297.                                     </div>
  298.                                 ";
  299.         }
  300.         // line 109
  301.         echo "                            </div>
  302.                         </div>
  303.                         <div class=\"cart-item-unit-price mt-md-2\">
  304.                             <div class=\"cart-item-total-price-label fts-qm\">
  305.                                 ";
  306.         // line 114
  307.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.cartHeaderTotalPrice"));
  308.         echo "
  309.                             </div>
  310.                             <div class=\"font-weight-bold totalPrice ";
  311.         // line 117
  312.         if (($context["appliedDiscount"] ?? null)) {
  313.             echo "text-danger";
  314.         }
  315.         echo "\">
  316.                                 ";
  317.         // line 118
  318.         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->sourcesw_get_attribute($this->env$this->source, ($context["lineItem"] ?? null), "price", [], "any"falsefalsefalse118), "totalPrice", [], "any"falsefalsefalse118) - ($context["appliedDiscount"] ?? null))), "html"nulltrue);
  319.         echo "
  320.                                 ";
  321.         // line 119
  322.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.star"));
  323.         echo "
  324.                             </div>
  325. \t\t\t\t\t\t</div>
  326. \t\t\t\t\t</div>
  327.                 ";
  328.         
  329.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  330.         
  331.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  332.     }
  333.     public function getTemplateName()
  334.     {
  335.         return "@FourtwosixThemeExtension/storefront/page/checkout/checkout-item-fourtwosixBuyByQmUnit.html.twig";
  336.     }
  337.     public function getDebugInfo()
  338.     {
  339.         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,);
  340.     }
  341.     public function getSourceContext()
  342.     {
  343.         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. #}
  344. {% block page_checkout_item %}
  345.     {% set PRODUCT_LINE_ITEM_TYPE = constant('Shopware\\\\Core\\\\Checkout\\\\Cart\\\\LineItem\\\\LineItem::PRODUCT_LINE_ITEM_TYPE') %}
  346.     {% set deliveryPosition = null %}
  347.     {% if page.cart.deliveries.count > 0 %}
  348.         {% set delivery = page.cart.deliveries.first %}
  349.         {% set deliveryPosition = delivery.positions.get(lineItem.id) %}
  350.     {% endif %}
  351.     {% set label = lineItem.label %}
  352.     {% set appliedDiscount = lineItem.extensions.fourtwosixThemeExtension.appliedDiscount %}
  353.     {% block page_checkout_item_container %}
  354.         <div class=\"cart-item cart-item-{{ lineItem.type }} fourtwosix-qm-unit\" data-buybyqmunit-plugin=\"true\">
  355.             <div class=\"row cart-item-row\">
  356.                 {{ block(\"page_checkout_item_info\", \"@Storefront/storefront/page/checkout/checkout-item.html.twig\") }}
  357.                 {% if controllerAction != \"finishPage\" %}
  358.                     <div class=\"col-12 col-sm-8 col-md-4 cart-item-quantity\">
  359. \t\t\t\t\t\t{% if lineItem.quantityInformation and lineItem.stackable and not isChild %}
  360.                             <form action=\"{{ path('frontend.checkout.line-item.change-quantity', {'id': lineItem.id}) }}\"
  361.                                 class=\"cart-item-quantity-container cartForm\"
  362.                                 method=\"post\"
  363.                                 data-form-auto-submit=\"true\">
  364. \t\t\t\t\t\t\t\t{{ sw_csrf('frontend.checkout.line-item.change-quantity') }}
  365.                                 {% if activeRoute == \"frontend.checkout.cart.page\" %}
  366.                                     <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.cart.page\">
  367. \t\t\t\t\t\t\t\t{% elseif activeRoute == \"frontend.checkout.confirm.page\" %}
  368.                                     <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.confirm.page\">
  369.                                 {% endif %}
  370.                                 {% set quantityUnit = page.cart.data.elements[\"product-\"~ lineItem.id].purchaseUnit %}
  371.                                 {% set quantityPack = page.cart.data.elements[\"product-\"~ lineItem.id].referenceUnit %}
  372.                                 {% set minPurchase = page.cart.data.elements[\"product-\"~ lineItem.id].minPurchase %}
  373.                                 {% set purchaseSteps = page.cart.data.elements[\"product-\"~ lineItem.id].purchaseSteps %}
  374.                                 {% set availableStock = lineItem.payload.isCloseout ? lineItem.quantityInformation.maxPurchase : config('core.cart.maxQuantity') %}
  375.                                 {% sw_include '@Storefront/storefront/component/product/card/price-qm-unit.html.twig' with {
  376.                                     'isCloseout': lineItem.payload.isCloseout,
  377.                                     'stock': availableStock,
  378.                                     'priceUnit': lineItem.price.unitPrice,
  379.                                     'sellingUnit': quantityUnit * lineItem.quantity,
  380.                                     'packUnit': lineItem.quantity,
  381.                                     'quantityInputName': \"quantity\",
  382.                                     'quantityInputClasses': 'quantity-select',
  383.                                     'translatedUnitName' : lineItem.price.referencePrice.unitName,
  384.                                     'minPurchase': minPurchase,
  385.                                     \"purchaseSteps\": purchaseSteps,
  386.                                     \"sellingStep\":  quantityUnit * lineItem.quantity,
  387.                                 } %}
  388. \t\t\t\t\t\t\t</form>
  389.                         {% endif %}
  390. \t\t\t\t\t</div>
  391.                 {% else %}
  392.                     <div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
  393.                         <div>
  394.                             <div class=\"font-weight-bold\">
  395.                                 {{ lineItem.price.referencePrice.unitName }}
  396.                             </div>
  397.                             {{ lineItem.price.referencePrice.purchaseUnit * lineItem.quantity }}
  398.                         </div>
  399.                     </div>
  400.                     <div class=\"col-12 col-sm-2 col-md-2 cart-item-quantity justify-content-end\">
  401.                         <div>
  402.                             <div class=\"font-weight-bold\">
  403.                                 {{ \"checkout.cartHeaderQuantity\"|trans|sw_sanitize }}
  404.                             </div>
  405.                             {{ lineItem.quantity }}
  406.                         </div>
  407.                     </div>
  408.                 {% endif %}
  409.                 {% block page_checkout_item_total_price_qm %}
  410.                     <div class=\"col-12 col-sm-4 col-md-2 cart-item-price text-right\">
  411.                         <div class=\"cart-item-unit-price\">
  412.                             <div class=\"cart-item-unit-price-label font-weight-bold\">
  413.                                 {{ \"checkout.cartHeaderUnitPrice\"|trans|sw_sanitize }}
  414.                             </div>
  415.                             <div>
  416.                                 {% if appliedDiscount %}
  417.                                     {% set discountProQuantity = (appliedDiscount / lineItem.quantity) %}
  418.                                     <div class=\"font-weight-bold\">
  419.                                         <span class=\"text-decoration-line-through\">
  420.                                             {{ lineItem.price.unitPrice|currency }}
  421.                                         </span>
  422.                                         <span class=\"text-danger\">
  423.                                             {{ (lineItem.price.unitPrice - discountProQuantity)|currency }}
  424.                                         </span>
  425.                                     </div>
  426.                                     <div>
  427.                                         ({{ (lineItem.price.referencePrice.price -
  428.                                         (discountProQuantity / lineItem.price.referencePrice.purchaseUnit)
  429.                                         )|currency }}/{{ lineItem.price.referencePrice.referenceUnit }}{{ lineItem.price.referencePrice.unitName }})
  430.                                     </div>
  431.                                 {% else %}
  432.                                     <span>
  433.                                         {{ lineItem.price.unitPrice|currency }}
  434.                                     </span>
  435.                                     <div>
  436.                                         ({{ lineItem.price.referencePrice.price|currency }}/{{ lineItem.price.referencePrice.referenceUnit }}{{ lineItem.price.referencePrice.unitName }})
  437.                                     </div>
  438.                                 {% endif %}
  439.                             </div>
  440.                         </div>
  441.                         <div class=\"cart-item-unit-price mt-md-2\">
  442.                             <div class=\"cart-item-total-price-label fts-qm\">
  443.                                 {{ \"checkout.cartHeaderTotalPrice\"|trans|sw_sanitize }}
  444.                             </div>
  445.                             <div class=\"font-weight-bold totalPrice {% if appliedDiscount %}text-danger{% endif %}\">
  446.                                 {{ (lineItem.price.totalPrice - appliedDiscount)|currency }}
  447.                                 {{ \"general.star\"|trans|sw_sanitize }}
  448.                             </div>
  449. \t\t\t\t\t\t</div>
  450. \t\t\t\t\t</div>
  451.                 {% endblock %}
  452.                 {% if controllerAction != \"finishPage\" %}
  453.                     {{ block(\"page_checkout_item_remove\", \"@Storefront/storefront/page/checkout/checkout-item.html.twig\") }}
  454.                 {% endif %}
  455.             </div>
  456.         </div>
  457.     {% endblock %}
  458. {% 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");
  459.     }
  460. }