var/cache/dev_h00a6008ac8d83daed65bb1b250bc45b1/twig/05/05905c693ff6479000c4a3e512111855801e3f87c194cbaf9d6c3f51b77e7ba4.php line 57

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. /* @FourtwosixShippingCostsCalculator/storefront/page/checkout/cart/index.html.twig */
  16. class __TwigTemplate_54233cbb380adbbd958c589e63c3e1d6 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_cart_add_product_and_shipping' => [$this'block_page_checkout_cart_add_product_and_shipping'],
  26.             'page_checkout_cart_add_product' => [$this'block_page_checkout_cart_add_product'],
  27.             'page_checkout_cart_shipping_costs' => [$this'block_page_checkout_cart_shipping_costs'],
  28.             'page_checkout_cart_shipping_costs_trigger' => [$this'block_page_checkout_cart_shipping_costs_trigger'],
  29.             'page_checkout_cart_shipping_costs_form_group' => [$this'block_page_checkout_cart_shipping_costs_form_group'],
  30.             'page_checkout_cart_shipping_costs_form_group_country' => [$this'block_page_checkout_cart_shipping_costs_form_group_country'],
  31.             'page_checkout_cart_shipping_costs_form_group_payment_method' => [$this'block_page_checkout_cart_shipping_costs_form_group_payment_method'],
  32.             'page_checkout_cart_shipping_costs_form_group_shipping_method' => [$this'block_page_checkout_cart_shipping_costs_form_group_shipping_method'],
  33.         ];
  34.     }
  35.     protected function doGetParent(array $context)
  36.     {
  37.         // line 2
  38.         return "@Storefront/storefront/page/checkout/cart/index.html.twig";
  39.     }
  40.     protected function doDisplay(array $context, array $blocks = [])
  41.     {
  42.         $macros $this->macros;
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixShippingCostsCalculator/storefront/page/checkout/cart/index.html.twig"));
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FourtwosixShippingCostsCalculator/storefront/page/checkout/cart/index.html.twig"));
  47.         $this->parent $this->loadTemplate("@Storefront/storefront/page/checkout/cart/index.html.twig""@FourtwosixShippingCostsCalculator/storefront/page/checkout/cart/index.html.twig"2);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 3
  55.     public function block_page_checkout_cart_add_product_and_shipping($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_add_product_and_shipping"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_add_product_and_shipping"));
  62.         // line 4
  63.         echo "    <div class=\"col\">
  64.         ";
  65.         // line 5
  66.         $this->displayBlock('page_checkout_cart_add_product'$context$blocks);
  67.         // line 8
  68.         echo "        ";
  69.         $this->displayBlock('page_checkout_cart_shipping_costs'$context$blocks);
  70.         // line 11
  71.         echo "    </div>
  72. ";
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.         
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  77.     }
  78.     // line 5
  79.     public function block_page_checkout_cart_add_product($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_add_product"));
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_add_product"));
  86.         // line 6
  87.         echo "            ";
  88.         $this->displayParentBlock("page_checkout_cart_add_product"$context$blocks);
  89.         echo "
  90.         ";
  91.         
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93.         
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  95.     }
  96.     // line 8
  97.     public function block_page_checkout_cart_shipping_costs($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs"));
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs"));
  104.         // line 9
  105.         echo "            ";
  106.         $this->displayParentBlock("page_checkout_cart_shipping_costs"$context$blocks);
  107.         echo "
  108.         ";
  109.         
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  111.         
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113.     }
  114.     // line 15
  115.     public function block_page_checkout_cart_shipping_costs_trigger($context, array $blocks = [])
  116.     {
  117.         $macros $this->macros;
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_trigger"));
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_trigger"));
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.         
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  126.     }
  127.     // line 16
  128.     public function block_page_checkout_cart_shipping_costs_form_group($context, array $blocks = [])
  129.     {
  130.         $macros $this->macros;
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group"));
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group"));
  135.         // line 17
  136.         echo "    <div class=\"mt-3\">
  137.         <div class=\"mb-3 font-weight-bold\">
  138.             ";
  139.         // line 19
  140.         echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fourtwosixShippingCostCalculator.cart.title"), "html"nulltrue);
  141.         echo "
  142.         </div>
  143.         ";
  144.         // line 21
  145.         $this->displayBlock('page_checkout_cart_shipping_costs_form_group_country'$context$blocks);
  146.         // line 22
  147.         echo "        ";
  148.         $this->displayBlock('page_checkout_cart_shipping_costs_form_group_payment_method'$context$blocks);
  149.         // line 31
  150.         echo "        ";
  151.         $this->displayBlock('page_checkout_cart_shipping_costs_form_group_shipping_method'$context$blocks);
  152.         // line 36
  153.         echo "        <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.cart.page\">
  154.     </div>
  155. ";
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.         
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  160.     }
  161.     // line 21
  162.     public function block_page_checkout_cart_shipping_costs_form_group_country($context, array $blocks = [])
  163.     {
  164.         $macros $this->macros;
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_country"));
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_country"));
  169.         $this->displayParentBlock("page_checkout_cart_shipping_costs_form_group_country"$context$blocks);
  170.         
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  172.         
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  174.     }
  175.     // line 22
  176.     public function block_page_checkout_cart_shipping_costs_form_group_payment_method($context, array $blocks = [])
  177.     {
  178.         $macros $this->macros;
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_payment_method"));
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_payment_method"));
  183.         // line 23
  184.         echo "            ";
  185.         if ( !sw_get_attribute($this->env$this->source, ($context["context"] ?? null), "customer", [], "any"falsefalsefalse23)) {
  186.             // line 24
  187.             echo "                <div class=\"form-group\">
  188.                     <label for=\"zipcode\">";
  189.             // line 25
  190.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("address.zipcodeLabel"));
  191.             echo "</label>
  192.                     <input class=\"form-control\" data-input-name=\"zipcode\" value=\"";
  193.             // line 26
  194.             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["context"] ?? null), "shippingLocation", [], "any"falsefalsefalse26), "address", [], "any"falsefalsefalse26), "zipcode", [], "any"falsefalsefalse26), "html"nulltrue);
  195.             echo "\"
  196.                         type=\"text\" id=\"zipcode\" name=\"zipcode\" placeholder=\"";
  197.             // line 27
  198.             echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("address.zipcodePlaceholder"));
  199.             echo "\">
  200.                 </div>
  201.             ";
  202.         }
  203.         // line 30
  204.         echo "        ";
  205.         
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  207.         
  208.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  209.     }
  210.     // line 31
  211.     public function block_page_checkout_cart_shipping_costs_form_group_shipping_method($context, array $blocks = [])
  212.     {
  213.         $macros $this->macros;
  214.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  215.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_shipping_method"));
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_shipping_method"));
  218.         // line 32
  219.         echo "            <div class=\"d-none\">
  220.                 ";
  221.         // line 33
  222.         $this->displayParentBlock("page_checkout_cart_shipping_costs_form_group_shipping_method"$context$blocks);
  223.         echo "
  224.             </div>
  225.         ";
  226.         
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  228.         
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  230.     }
  231.     public function getTemplateName()
  232.     {
  233.         return "@FourtwosixShippingCostsCalculator/storefront/page/checkout/cart/index.html.twig";
  234.     }
  235.     public function isTraitable()
  236.     {
  237.         return false;
  238.     }
  239.     public function getDebugInfo()
  240.     {
  241.         return array (  269 => 33,  266 => 32,  256 => 31,  246 => 30,  240 => 27,  236 => 26,  232 => 25,  229 => 24,  226 => 23,  216 => 22,  197 => 21,  185 => 36,  182 => 31,  179 => 22,  177 => 21,  172 => 19,  168 => 17,  158 => 16,  140 => 15,  127 => 9,  117 => 8,  104 => 6,  94 => 5,  83 => 11,  80 => 8,  78 => 5,  75 => 4,  65 => 3,  42 => 2,);
  242.     }
  243.     public function getSourceContext()
  244.     {
  245.         return new Source("{% sw_extends \"@Storefront/storefront/page/checkout/cart/index.html.twig\" %}
  246. {% block page_checkout_cart_add_product_and_shipping %}
  247.     <div class=\"col\">
  248.         {% block page_checkout_cart_add_product %}
  249.             {{ parent() }}
  250.         {% endblock %}
  251.         {% block page_checkout_cart_shipping_costs %}
  252.             {{ parent() }}
  253.         {% endblock %}
  254.     </div>
  255. {% endblock %}
  256. {# @fourtwosix-edit: 1203743631835637-1205714625984787 removed collapse #}
  257. {% block page_checkout_cart_shipping_costs_trigger %}{% endblock %}
  258. {% block page_checkout_cart_shipping_costs_form_group %}
  259.     <div class=\"mt-3\">
  260.         <div class=\"mb-3 font-weight-bold\">
  261.             {{ \"fourtwosixShippingCostCalculator.cart.title\"|trans}}
  262.         </div>
  263.         {% block page_checkout_cart_shipping_costs_form_group_country %}{{ parent() }}{% endblock %}
  264.         {% block page_checkout_cart_shipping_costs_form_group_payment_method %}
  265.             {% if not context.customer %}
  266.                 <div class=\"form-group\">
  267.                     <label for=\"zipcode\">{{ \"address.zipcodeLabel\"|trans|sw_sanitize }}</label>
  268.                     <input class=\"form-control\" data-input-name=\"zipcode\" value=\"{{ context.shippingLocation.address.zipcode }}\"
  269.                         type=\"text\" id=\"zipcode\" name=\"zipcode\" placeholder=\"{{ \"address.zipcodePlaceholder\"|trans|sw_sanitize }}\">
  270.                 </div>
  271.             {% endif %}
  272.         {% endblock %}
  273.         {% block page_checkout_cart_shipping_costs_form_group_shipping_method %}
  274.             <div class=\"d-none\">
  275.                 {{ parent() }}
  276.             </div>
  277.         {% endblock %}
  278.         <input type=\"hidden\" name=\"redirectTo\" value=\"frontend.checkout.cart.page\">
  279.     </div>
  280. {% endblock %}""@FourtwosixShippingCostsCalculator/storefront/page/checkout/cart/index.html.twig""/var/www/dev.artecon.426.agency/custom/plugins/FourtwosixShippingCostsCalculator/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
  281.     }
  282. }