var/cache/dev_hb3717a76ebc1566204522dabc772a7b6/twig/f5/f5dbd953b6eb4ddd0b6a1ef658b2ead899bc56c9497c360d300a04989df444bc.php line 42

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. /* @MolliePayments/storefront/page/checkout/cart/index.html.twig */
  16. class __TwigTemplate_3514711e5988927e2fe86d9604ef29f8 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_shipping_costs_form_group_payment_method' => [$this'block_page_checkout_cart_shipping_costs_form_group_payment_method'],
  26.             'page_checkout_aside_actions' => [$this'block_page_checkout_aside_actions'],
  27.             'page_checkout_aside_actions_apple_direct_component' => [$this'block_page_checkout_aside_actions_apple_direct_component'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "@Storefront/storefront/page/checkout/cart/index.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MolliePayments/storefront/page/checkout/cart/index.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@MolliePayments/storefront/page/checkout/cart/index.html.twig"));
  42.         $this->parent $this->loadTemplate("@Storefront/storefront/page/checkout/cart/index.html.twig""@MolliePayments/storefront/page/checkout/cart/index.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_page_checkout_cart_shipping_costs_form_group_payment_method($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_payment_method"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_cart_shipping_costs_form_group_payment_method"));
  57.         // line 4
  58.         echo "    <div class=\"form-group\">
  59.         <label for=\"paymentMethodId\">";
  60.         // line 5
  61.         echo $this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.paymentMethod"));
  62.         echo "</label>
  63.         <select class=\"custom-select\" type=\"text\" id=\"paymentMethodId\" name=\"paymentMethodId\">
  64.             ";
  65.         // line 7
  66.         $context['_parent'] = $context;
  67.         $context['_seq'] = twig_ensure_traversable(sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "paymentMethods", [], "any"falsefalsefalse7));
  68.         foreach ($context['_seq'] as $context["_key"] => $context["payment"]) {
  69.             // line 8
  70.             echo "                <option value=\"";
  71.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->source$context["payment"], "id", [], "any"falsefalsefalse8), "html"nulltrue);
  72.             echo "\"
  73.                         ";
  74.             // line 9
  75.             if ((sw_get_attribute($this->env$this->source$context["payment"], "id", [], "any"falsefalsefalse9) == sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["context"] ?? null), "paymentMethod", [], "any"falsefalsefalse9), "id", [], "any"falsefalsefalse9))) {
  76.                 echo " selected=\"selected\"";
  77.             }
  78.             echo ">
  79.                     ";
  80.             // line 10
  81.             echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source$context["payment"], "translated", [], "any"falsefalsefalse10), "name", [], "any"falsefalsefalse10), "html"nulltrue);
  82.             echo "
  83.                     ";
  84.             // line 12
  85.             if ((twig_in_filter("MolliePayments"sw_get_attribute($this->env$this->source$context["payment"], "handlerIdentifier", [], "any"falsefalsefalse12)) && (sw_get_attribute($this->env$this->source, ($context["page"] ?? null), "isMollieTestMode", [], "any"falsefalsefalse12) == true))) {
  86.                 // line 13
  87.                 echo "                        (";
  88.                 echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("molliePayments.testMode.label"), "html"nulltrue);
  89.                 echo ")
  90.                     ";
  91.             }
  92.             // line 15
  93.             echo "                </option>
  94.             ";
  95.         }
  96.         $_parent $context['_parent'];
  97.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['payment'], $context['_parent'], $context['loop']);
  98.         $context array_intersect_key($context$_parent) + $_parent;
  99.         // line 17
  100.         echo "        </select>
  101.     </div>
  102. ";
  103.         
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  105.         
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107.     }
  108.     // line 22
  109.     public function block_page_checkout_aside_actions($context, array $blocks = [])
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions"));
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions"));
  116.         // line 23
  117.         echo "    ";
  118.         $this->displayParentBlock("page_checkout_aside_actions"$context$blocks);
  119.         echo "
  120.     ";
  121.         // line 24
  122.         if ((($context["mollie_applepaydirect_enabled"] ?? null) && !twig_in_filter("cart", ($context["mollie_applepaydirect_restrictions"] ?? null)))) {
  123.             // line 25
  124.             echo "        ";
  125.             $this->displayBlock('page_checkout_aside_actions_apple_direct_component'$context$blocks);
  126.             // line 30
  127.             echo "    ";
  128.         }
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.     }
  134.     // line 25
  135.     public function block_page_checkout_aside_actions_apple_direct_component($context, array $blocks = [])
  136.     {
  137.         $macros $this->macros;
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions_apple_direct_component"));
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_checkout_aside_actions_apple_direct_component"));
  142.         // line 26
  143.         echo "            <div class=\"mt-2 js-apple-pay-container mollie-apple-pay-direct-cart\">
  144.                 ";
  145.         // line 27
  146.         $this->loadTemplate("@MolliePayments/mollie/component/apple-pay-direct-button.twig""@MolliePayments/storefront/page/checkout/cart/index.html.twig"27)->display($context);
  147.         // line 28
  148.         echo "            </div>
  149.         ";
  150.         
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  152.         
  153.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154.     }
  155.     public function getTemplateName()
  156.     {
  157.         return "@MolliePayments/storefront/page/checkout/cart/index.html.twig";
  158.     }
  159.     public function isTraitable()
  160.     {
  161.         return false;
  162.     }
  163.     public function getDebugInfo()
  164.     {
  165.         return array (  171 => 28,  169 => 27,  166 => 26,  156 => 25,  145 => 30,  142 => 25,  140 => 24,  135 => 23,  125 => 22,  113 => 17,  106 => 15,  100 => 13,  98 => 12,  93 => 10,  87 => 9,  82 => 8,  78 => 7,  73 => 5,  70 => 4,  60 => 3,  37 => 2,);
  166.     }
  167.     public function getSourceContext()
  168.     {
  169.         return new Source("{% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
  170. {% block page_checkout_cart_shipping_costs_form_group_payment_method %}
  171.     <div class=\"form-group\">
  172.         <label for=\"paymentMethodId\">{{ \"checkout.paymentMethod\"|trans|sw_sanitize }}</label>
  173.         <select class=\"custom-select\" type=\"text\" id=\"paymentMethodId\" name=\"paymentMethodId\">
  174.             {% for payment in page.paymentMethods %}
  175.                 <option value=\"{{ payment.id }}\"
  176.                         {% if payment.id == context.paymentMethod.id %} selected=\"selected\"{% endif %}>
  177.                     {{ payment.translated.name }}
  178.                     {% if \"MolliePayments\" in payment.handlerIdentifier and page.isMollieTestMode == true %}
  179.                         ({{ \"molliePayments.testMode.label\"|trans }})
  180.                     {% endif %}
  181.                 </option>
  182.             {% endfor %}
  183.         </select>
  184.     </div>
  185. {% endblock %}
  186. {% block page_checkout_aside_actions %}
  187.     {{ parent() }}
  188.     {% if mollie_applepaydirect_enabled and ('cart' not in mollie_applepaydirect_restrictions) %}
  189.         {% block page_checkout_aside_actions_apple_direct_component %}
  190.             <div class=\"mt-2 js-apple-pay-container mollie-apple-pay-direct-cart\">
  191.                 {% include '@MolliePayments/mollie/component/apple-pay-direct-button.twig' %}
  192.             </div>
  193.         {% endblock %}
  194.     {% endif %}
  195. {% endblock %}
  196. ""@MolliePayments/storefront/page/checkout/cart/index.html.twig""/home/atc/shopware/custom/plugins/MolliePayments/src/Resources/views/storefront/page/checkout/cart/index.html.twig");
  197.     }
  198. }