var/cache/dev/twig/bb/bb31b148bca0727f0a3c3a88bda3b66c0e359642a27521e958316cea744d1fad.php line 56

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* frontend/cart/cart.html.twig */
  16. class __TwigTemplate_372011d8a7ad6d70e8b9629c92b47650f41f8cdaf243a7adc46183f6fb844dbe extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'facebook' => [$this'block_facebook'],
  29.             'stylesheets' => [$this'block_stylesheets'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.             'content' => [$this'block_content'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35.     {
  36.         // line 1
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = []): iterable
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/cart/cart.html.twig"));
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/cart/cart.html.twig"));
  46.         $this->parent $this->loadTemplate("base.html.twig""frontend/cart/cart.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 5
  54.     /**
  55.      * @return iterable<null|scalar|\Stringable>
  56.      */
  57.     public function block_facebook(array $context, array $blocks = []): iterable
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""facebook"));
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""facebook"));
  64.         // line 6
  65.         yield "    ";
  66.         yield from $this->yieldParentBlock("facebook"$context$blocks);
  67.         yield "
  68.     <META NAME=\"ROBOTS\" CONTENT=\"NOINDEX, NOFOLLOW\">
  69. ";
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.         
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  74.         yield from [];
  75.     }
  76.     // line 10
  77.     /**
  78.      * @return iterable<null|scalar|\Stringable>
  79.      */
  80.     public function block_stylesheets(array $context, array $blocks = []): iterable
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  87.         // line 11
  88.         yield "    ";
  89.         yield from $this->yieldParentBlock("stylesheets"$context$blocks);
  90.         yield "
  91.     <style>
  92.         .table td, .table th {
  93.             vertical-align: middle!important;
  94.             padding-left:5px!important;
  95.         }
  96.         @media screen and (min-width: 769px) and (max-width:1024px) {
  97.             .column.is-9 {
  98.                 width:70% !important;
  99.             }
  100.         }
  101.         .custom-radio-wrapper{
  102.             display:flex;
  103.             align-items:flex-start;          /* keeps radio button and text aligned */
  104.             border-radius:4px;
  105.             cursor:pointer;
  106.         }
  107.         .custom-radio-wrapper .custom-radio-container{
  108.             display:flex;
  109.             align-items:flex-start;
  110.         }
  111.         /* title line */
  112.         .payment-title{
  113.             font-size:1rem;                  /* ~16 px */
  114.             font-weight:500;
  115.             line-height:1.3;
  116.             display:block;
  117.         }
  118.         /* extra info line */
  119.         .payment-desc{
  120.             font-size:.8125rem;              /* ~13 px */
  121.             color:#666;
  122.             line-height:1.25;
  123.             display:block;                   /* forces a new line */
  124.             margin-top:.125rem;
  125.         }
  126.     </style>
  127. ";
  128.         
  129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  130.         
  131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  132.         yield from [];
  133.     }
  134.     // line 58
  135.     /**
  136.      * @return iterable<null|scalar|\Stringable>
  137.      */
  138.     public function block_javascripts(array $context, array $blocks = []): iterable
  139.     {
  140.         $macros $this->macros;
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  142.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  144.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  145.         // line 59
  146.         yield "    ";
  147.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  148.         yield "
  149.     <script>
  150.         \$(document ).ready(function() {
  151.             function colorize(element, className) {
  152.                 console.log('colorize');
  153.                 \$(\".\"+className+\" tbody tr\").each(function(){
  154.                     console.log(\$(this));
  155.                     \$(this).css('border', '1px solid #dbdbdb');
  156.                 });
  157.                 \$(\".\"+className+\" tbody tr\").css('border', '1px solid #dbdbdb');
  158.                 element.closest('tr').css('border', '2px solid #44bc42');
  159.             }
  160.             /* Change quantity of the ordered product */
  161.             \$(document).on('input', '.quantity-input', function (e) {
  162.                 var product = \$(this).attr('data-product');
  163.                 var url = \$('#update_quantity_cart').val();
  164.                 var record = \$(this).attr('data-record');
  165.                 var quantity = \$(this).val();
  166.                 \$('#quantity_loader_'+product).show();
  167.                 \$.ajax({
  168.                     url: url,
  169.                     type:\"POST\",
  170.                     data:{'record_id':record, 'quantity':quantity, 'product_id':product},
  171.                     success:function (data) {
  172.                         console.log(data);
  173.                         if (parseInt(data.error) === 1) {
  174.                             \$('.cart-error-notification').show();
  175.                             \$('.cart-error-notification').html(data.message);
  176.                             \$(\"html, body\").animate({ scrollTop: \$('.cart-error-notification').offset().top }, 200);
  177.                         }
  178.                         \$('.loader_group').hide();
  179.                         var cartUrl = \$('#cart_url').val();
  180.                         \$('#cart-table').load(cartUrl+' #cart-table', {}, function(response) {
  181.                             calculateSum();
  182.                         });
  183.                     }
  184.                 });
  185.             });
  186.             /* Trigger click of first element id delivery list */
  187.             \$(\"input:radio[name=deliveryMethod]:first\").trigger(\"click\");
  188.             colorize(\$(\"input:radio[name=deliveryMethod]:first\"), 'delivery-methods-table');
  189.             var \$deliveryMethodContent = \$('#deliveryMethodsContent');
  190.             var \$paymentMethodContainer = \$('#paymentMethodsContent');
  191.             var loadPaymentMethods = function() {
  192.                 var id = \$('.deliveryMethod').val();
  193.                 \$paymentMethodContainer.html(' ');
  194.                 var url = \$('#load_payment_methods').val();
  195.                 \$paymentMethodContainer.load(url, {'id':id}, function() {
  196.                     calculateSum();
  197.                 });
  198.             }
  199.             loadPaymentMethods();
  200.             /* Removes element from cart */
  201.             \$(document).on('click', '.btn-cart-remove', 'click', function (e) {
  202.                 var url = \$('#remove_cart_url').val();
  203.                 var record = \$(this).attr('data-record');
  204.                 var product = \$(this).attr('data-product');
  205.                 var productId = \$(this).attr('data-id');
  206.                 \$('#quantity_loader_'+product).show();
  207.                 \$.ajax({
  208.                     url: url,
  209.                     type:\"POST\",
  210.                     data:{'record_id':record, 'product_id':product},
  211.                     success:function (data) {
  212.                         console.log(data);
  213.                         \$('.loader_group').hide();
  214.                         var cartUrl = \$('#cart_url').val();
  215.                         \$('.cart-products').load(cartUrl+' .cart-products', {}, function(response) {
  216.                             console.log(response);
  217.                         });
  218.                         calculateSum();
  219.                     }
  220.                 });
  221.             });
  222.             /** Change country -> release load form od delviery */
  223.             \$(document).on('change', '#country', function (e) {
  224.                 \$deliveryMethodContent.html(' ');
  225.                 \$paymentMethodContainer.html(' ');
  226.                 \$('#country_id').val(\$(this).val());
  227.                 var url = \$('#load_delivery_methods').val();
  228.                 \$deliveryMethodContent.load(url, {'id':\$(this).val()}, function() {
  229.                     \$(\"input:radio[name=deliveryMethod]:first\").trigger(\"click\");
  230.                 });
  231.             });
  232.             /** Load payment methods */
  233.             \$(document).on('change', '.deliveryMethod', function (e) {
  234.                 colorize(\$(this), 'delivery-methods-table');
  235.                 loadPaymentMethods();
  236.             });
  237.             /**
  238.              * Dynamically calculate total sum of product and dlivery + payment method
  239.              */
  240.             var calculateSum = function () {
  241.                 var deliveryId = \$('input[name=deliveryMethod]:checked').val();
  242.                 var paymentId = \$('input[name=paymentMethod]:checked').val();
  243.                 var url = \$('#ajax_calculate_sum').val();
  244.                 \$.ajax({
  245.                     url: url,
  246.                     type:\"POST\",
  247.                     data:{'deliveryId':deliveryId, 'paymentId':paymentId},
  248.                     success:function (data) {
  249.                         console.log(data);
  250.                         \$('.totalSum').html(data.sum);
  251.                         if (\$('.totalSumWithRebate').length) {
  252.                             \$('.totalSumWithRebate').html(data.sumWithRebate);
  253.                         }
  254.                         if (\$('.totalSumWithoutRebate').length) {
  255.                             \$('.totalSumWithoutRebate').html(data.sum);
  256.                         }
  257.                         if (\$('.savingsInfo').length) {
  258.                             \$('.savingsInfo').html(data.savings);
  259.                         }
  260.                     }
  261.                 });
  262.             }
  263.             /** Handle payment method change */
  264.             \$(document).on('click', '.paymentMethod', function (e) {
  265.                 colorize(\$(this), 'payment-methods-table');
  266.             });
  267.             \$(document).on('click', '.deliveryMethod', function (e) {
  268.                 colorize(\$(this), 'delivery-methods-table');
  269.             });
  270.             \$(document).on('change', '.paymentMethod', function (e) {
  271.                 colorize(\$(this), 'payment-methods-table');
  272.                 calculateSum();
  273.             });
  274.             \$(document).on(\"click\", \"#go-to-request-form\", \"click\", function() {
  275.                 var urlRedirect = \$('#send_request_url').val();
  276.                 window.location.href = urlRedirect;
  277.             });
  278.             \$(document).on('click', '.go-to-checkout', 'click', function (e) {
  279.                 e.preventDefault();
  280.                 var deliveryId = \$('input[name=deliveryMethod]:checked').val();
  281.                 var paymentId = \$('input[name=paymentMethod]:checked').val();
  282.                 if (deliveryId && paymentId) {
  283.                     var url = \$('#ajax_save_cart').val();
  284.                     \$.ajax({
  285.                         url: url,
  286.                         type:\"POST\",
  287.                         data:{'deliveryId':deliveryId, 'paymentId':paymentId},
  288.                         success:function (data) {
  289.                             window.location.href = \$('#checkout_redirect').val();
  290.                         }
  291.                     });
  292.                 } else {
  293.                     \$(\"#modal-choose-delivery\").addClass(\"is-active\");
  294.                 }
  295.             });
  296.         });
  297.         \$('.modal-close').click(function() {
  298.             \$(\"#modal-choose-delivery\").removeClass(\"is-active\");
  299.         });
  300.         \$('.close-modal-custom').click(function() {
  301.             \$(\"#modal-choose-delivery\").removeClass(\"is-active\");
  302.         });
  303.     </script>
  304. ";
  305.         
  306.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  307.         
  308.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  309.         yield from [];
  310.     }
  311.     // line 252
  312.     /**
  313.      * @return iterable<null|scalar|\Stringable>
  314.      */
  315.     public function block_content(array $context, array $blocks = []): iterable
  316.     {
  317.         $macros $this->macros;
  318.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  319.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  320.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  321.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  322.         // line 253
  323.         yield "
  324.     ";
  325.         // line 254
  326.         $context["countCriteoProducts"] = 0;
  327.         // line 255
  328.         yield "    ";
  329.         $context["criteoIds"] = [];
  330.         // line 256
  331.         yield "
  332.     ";
  333.         // line 257
  334.         $context['_parent'] = $context;
  335.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["cartProducts"]) || array_key_exists("cartProducts"$context) ? $context["cartProducts"] : (function () { throw new RuntimeError('Variable "cartProducts" does not exist.'257$this->source); })()));
  336.         foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  337.             // line 258
  338.             yield "
  339.         ";
  340.             // line 259
  341.             $context["criteoIds"] = Twig\Extension\CoreExtension::merge((isset($context["criteoIds"]) || array_key_exists("criteoIds"$context) ? $context["criteoIds"] : (function () { throw new RuntimeError('Variable "criteoIds" does not exist.'259$this->source); })()), [CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse259)]);
  342.             // line 260
  343.             yield "        ";
  344.             $context["countCriteoProducts"] = ((isset($context["countCriteoProducts"]) || array_key_exists("countCriteoProducts"$context) ? $context["countCriteoProducts"] : (function () { throw new RuntimeError('Variable "countCriteoProducts" does not exist.'260$this->source); })()) + 1);
  345.             // line 261
  346.             yield "
  347.     ";
  348.         }
  349.         $_parent $context['_parent'];
  350.         unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
  351.         $context array_intersect_key($context$_parent) + $_parent;
  352.         // line 263
  353.         yield "
  354.     <input type=\"hidden\" id=\"load_delivery_methods\" value=\"";
  355.         // line 264
  356.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("load_delivery_methods");
  357.         yield "\"/>
  358.     <input type=\"hidden\" id=\"load_payment_methods\" value=\"";
  359.         // line 265
  360.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("load_payment_methods");
  361.         yield "\"/>
  362.     <input type=\"hidden\" id=\"ajax_calculate_sum\" value=\"";
  363.         // line 266
  364.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_calculate_sum");
  365.         yield "\"/>
  366.     <input type=\"hidden\" id=\"ajax_save_cart\" value=\"";
  367.         // line 267
  368.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_save_cart");
  369.         yield "\"/>
  370.     <input type=\"hidden\" id=\"send_request_url\" value=\"";
  371.         // line 268
  372.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("send_request");
  373.         yield "\"/>
  374.     ";
  375.         // line 269
  376.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse269), "id", [], "any"truetruefalse269)) {
  377.             // line 270
  378.             yield "        ";
  379.             if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'270$this->source); })()), "user", [], "any"falsefalsefalse270), "hasRole", ["ROLE_CUSTOMER_REGISTERED"], "method"falsefalsefalse270)) {
  380.                 // line 271
  381.                 yield "            <input type=\"hidden\" id=\"checkout_redirect\" value=\"";
  382.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
  383.                 yield "\"/>
  384.         ";
  385.             } else {
  386.                 // line 273
  387.                 yield "            <input type=\"hidden\" id=\"checkout_redirect\" value=\"";
  388.                 yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("summary");
  389.                 yield "\"/>
  390.         ";
  391.             }
  392.             // line 275
  393.             yield "    ";
  394.         } else {
  395.             // line 276
  396.             yield "        <input type=\"hidden\" id=\"checkout_redirect\" value=\"";
  397.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_login");
  398.             yield "\"/>
  399.     ";
  400.         }
  401.         // line 278
  402.         yield "    <input type=\"hidden\" id=\"cart_url\" value=\"";
  403.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart");
  404.         yield "\"/>
  405.     <input type=\"hidden\" id=\"remove_cart_url\" value=\"";
  406.         // line 279
  407.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_from_cart");
  408.         yield "\"/>
  409.     <input type=\"hidden\" id=\"update_quantity_cart\" value=\"";
  410.         // line 280
  411.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("update_quantity_cart");
  412.         yield "\"/>
  413.     ";
  414.         // line 283
  415.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["cartProducts"]) || array_key_exists("cartProducts"$context) ? $context["cartProducts"] : (function () { throw new RuntimeError('Variable "cartProducts" does not exist.'283$this->source); })())) > 0)) {
  416.             // line 284
  417.             yield "
  418.         <div class=\"row\" style=\"margin-top:20px;\">
  419.             <div class=\"col-sm-12\">
  420.                 <section id=\"content\" role=\"main\">
  421.                     <div class=\"container\">
  422.                         <div class=\"row\">
  423.                             <div class=\"\">
  424.                                 ";
  425.             // line 295
  426.             if ((isset($context["showNotification"]) || array_key_exists("showNotification"$context) ? $context["showNotification"] : (function () { throw new RuntimeError('Variable "showNotification" does not exist.'295$this->source); })())) {
  427.                 // line 296
  428.                 yield "                                    <div class=\"notification is-danger cart-error-notification\" style=\"text-align: center!important; margin:40px; display: block!important;\">
  429.                                         ";
  430.                 // line 297
  431.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products_deleted_info", [], "store"), "html"nulltrue);
  432.                 yield "
  433.                                     </div>
  434.                                 ";
  435.             }
  436.             // line 300
  437.             yield "
  438.                                 <div class=\"notification is-danger cart-error-notification\" style=\"text-align: center; display: none\">
  439.                                 </div>
  440.                                ";
  441.             // line 305
  442.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'305$this->source); })()), 'errors');
  443.             yield "
  444.                                ";
  445.             // line 306
  446.             yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'306$this->source); })()), 'form_start', ["attr" => ["id" => "cart-form""method" => "post""role" => "form""novalidate" => "novalidate"]]);
  447.             yield "
  448.                                 <!-- START OF INFOGRAPHIC SECTION -->
  449.                                 <section class=\"section is-hidden-touch\">
  450.                                     <div class=\"container\">
  451.                                         <div class=\"columns is-center is-centered\">
  452.                                             <div class=\"column column-cart is-one-third\">
  453.                                                 <div style=\"display: inline-block;\">
  454.                                                     <div class=\"step_nr_new active\">
  455.                                                         <i class=\"fa fa-check\"></i>
  456.                                                     </div>
  457.                                                 </div>
  458.                                                 <div class=\"column is-narrow\" style=\"display: inline-block\">
  459.                                                     <div class=\"step_txt active\">
  460.                                                         ";
  461.             // line 323
  462.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart", [], "store"), "html"nulltrue);
  463.             yield "
  464.                                                     </div>
  465.                                                     <div class=\"\" style=\"width: 200px;\">
  466.                                                         <hr class=\"cart-hr-active\">
  467.                                                     </div>
  468.                                                 </div>
  469.                                             </div>
  470.                                             <div class=\"column column-cart is-one-third column-back\">
  471.                                                 <div style=\"display: inline-block;\">
  472.                                                     <div class=\"step_nr_new\">
  473.                                                     </div>
  474.                                                 </div>
  475.                                                 <div class=\"column is-narrow\" style=\"display: inline-block\">
  476.                                                     <div class=\"step_txt\">
  477.                                                         ";
  478.             // line 338
  479.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("shipping_data", [], "store"), "html"nulltrue);
  480.             yield "
  481.                                                     </div>
  482.                                                     <div class=\"\" style=\"width: 200px;\">
  483.                                                         <hr class=\"cart-hr\">
  484.                                                     </div>
  485.                                                 </div>
  486.                                             </div>
  487.                                             <div class=\"column column-cart is-one-third column-back\">
  488.                                                 <div style=\"display: inline-block;\">
  489.                                                     <div class=\"step_nr_new\">
  490.                                                     </div>
  491.                                                 </div>
  492.                                                 <div class=\"column is-narrow\" style=\"display: inline-block\">
  493.                                                     <div class=\"step_txt\">
  494.                                                         ";
  495.             // line 353
  496.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("summary", [], "store"), "html"nulltrue);
  497.             yield "
  498.                                                     </div>
  499.                                                     <div class=\"\" style=\"width: 200px;\">
  500.                                                         <hr class=\"cart-hr\">
  501.                                                     </div>
  502.                                                 </div>
  503.                                             </div>
  504.                                         </div>
  505.                                     </div>
  506.                                 </section>
  507.                                 ";
  508.             // line 365
  509.             yield from $this->loadTemplate("frontend/components/notification.html.twig""frontend/cart/cart.html.twig"365)->unwrap()->yield($context);
  510.             // line 366
  511.             yield "
  512.                                 ";
  513.             // line 367
  514.             $context["total"] = 0;
  515.             // line 368
  516.             yield "                                ";
  517.             $context["quantityTotal"] = 0;
  518.             // line 369
  519.             yield "                                ";
  520.             $context["mainCategory"] = 0;
  521.             // line 370
  522.             yield "
  523.                                 ";
  524.             // line 371
  525.             $context['_parent'] = $context;
  526.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'371$this->source); })()), "products", [], "any"falsefalsefalse371));
  527.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  528.                 // line 372
  529.                 yield "
  530.                                     ";
  531.                 // line 373
  532.                 $context["productEntity"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "product", [], "any"falsefalsefalse373), "vars", [], "any"falsefalsefalse373), "data", [], "any"falsefalsefalse373);
  533.                 // line 374
  534.                 yield "                                    ";
  535.                 $context["subProduct"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "subProduct", [], "any"falsefalsefalse374), "vars", [], "any"falsefalsefalse374), "data", [], "any"falsefalsefalse374);
  536.                 // line 375
  537.                 yield "                                    ";
  538.                 $context["subId"] = null;
  539.                 // line 376
  540.                 yield "                                    ";
  541.                 if ((isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'376$this->source); })())) {
  542.                     // line 377
  543.                     yield "                                        ";
  544.                     $context["subId"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'377$this->source); })()), "id", [], "any"falsefalsefalse377);
  545.                     // line 378
  546.                     yield "                                    ";
  547.                 }
  548.                 // line 379
  549.                 yield "
  550.                                     ";
  551.                 // line 380
  552.                 if ( !CoreExtension::getAttribute($this->env$this->source, ($context["mainCategory"] ?? null), "id", [], "any"truetruefalse380)) {
  553.                     // line 381
  554.                     yield "                                        ";
  555.                     $context["mainCategory"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'381$this->source); })()), "mainCategory", [], "any"falsefalsefalse381);
  556.                     // line 382
  557.                     yield "                                    ";
  558.                 }
  559.                 // line 383
  560.                 yield "
  561.                                     ";
  562.                 // line 384
  563.                 $context["subtotal"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "vars", [], "any"falsefalsefalse384), "value", [], "any"falsefalsefalse384), "getSubtotal", [], "any"falsefalsefalse384);
  564.                 // line 385
  565.                 yield "                                    ";
  566.                 $context["total"] = ((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'385$this->source); })()) + (isset($context["subtotal"]) || array_key_exists("subtotal"$context) ? $context["subtotal"] : (function () { throw new RuntimeError('Variable "subtotal" does not exist.'385$this->source); })()));
  567.                 // line 386
  568.                 yield "
  569.                                 ";
  570.             }
  571.             $_parent $context['_parent'];
  572.             unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
  573.             $context array_intersect_key($context$_parent) + $_parent;
  574.             // line 388
  575.             yield "
  576.                                 <div class=\"columns\">
  577.                                     <div class=\"column is-9\">
  578.                                         <h1 class=\"cart-right-side\">
  579.                                             ";
  580.             // line 392
  581.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cart", [], "store"), "html"nulltrue);
  582.             yield "
  583.                                         </h1>
  584.                                         <br/>
  585.                                         <table class=\"table is-fullwidth cart-products\">
  586.                                             <tbody>
  587.                                             ";
  588.             // line 400
  589.             $context['_parent'] = $context;
  590.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'400$this->source); })()), "products", [], "any"falsefalsefalse400));
  591.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  592.                 // line 401
  593.                 yield "                                                ";
  594.                 $context["productEntity"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "product", [], "any"falsefalsefalse401), "vars", [], "any"falsefalsefalse401), "data", [], "any"falsefalsefalse401);
  595.                 // line 402
  596.                 yield "                                                ";
  597.                 $context["subProduct"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "subProduct", [], "any"falsefalsefalse402), "vars", [], "any"falsefalsefalse402), "data", [], "any"falsefalsefalse402);
  598.                 // line 403
  599.                 yield "                                                ";
  600.                 $context["subId"] = null;
  601.                 // line 404
  602.                 yield "                                                ";
  603.                 if ((isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'404$this->source); })())) {
  604.                     // line 405
  605.                     yield "                                                    ";
  606.                     $context["subId"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'405$this->source); })()), "id", [], "any"falsefalsefalse405);
  607.                     // line 406
  608.                     yield "                                                ";
  609.                 }
  610.                 // line 407
  611.                 yield "                                                <tr>
  612.                                                     <td valign=\"middle\">
  613.                                                         <a href=\"";
  614.                 // line 409
  615.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product", ["sub" => (isset($context["subId"]) || array_key_exists("subId"$context) ? $context["subId"] : (function () { throw new RuntimeError('Variable "subId" does not exist.'409$this->source); })()), "id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'409$this->source); })()), "id", [], "any"falsefalsefalse409), "slug" => CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'409$this->source); })()), "slug", [], "any"falsefalsefalse409)]), "html"nulltrue);
  616.                 yield "\">
  617.                                                             ";
  618.                 // line 410
  619.                 $context["mainPhoto"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'410$this->source); })()), "getMainPhotoPath", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'410$this->source); })()), "request", [], "any"falsefalsefalse410), "locale", [], "any"falsefalsefalse410)], "method"falsefalsefalse410);
  620.                 // line 411
  621.                 yield "                                                            ";
  622.                 if (((isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'411$this->source); })()) && CoreExtension::getAttribute($this->env$this->source, (isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'411$this->source); })()), "imageName", [], "any"falsefalsefalse411))) {
  623.                     // line 412
  624.                     yield "                                                                ";
  625.                     $context["mainPhoto"] = ("/images/product/" CoreExtension::getAttribute($this->env$this->source, (isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'412$this->source); })()), "imageName", [], "any"falsefalsefalse412));
  626.                     // line 413
  627.                     yield "                                                            ";
  628.                 }
  629.                 // line 414
  630.                 yield "                                                            <img style=\"min-width: 50px;!important; margin-top:20px; margin-bottom: 20px;\" src=\"";
  631.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["mainPhoto"]) || array_key_exists("mainPhoto"$context) ? $context["mainPhoto"] : (function () { throw new RuntimeError('Variable "mainPhoto" does not exist.'414$this->source); })())), "smallCartProductCk2"), "html"nulltrue);
  632.                 yield "\" alt=\"";
  633.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'414$this->source); })()), "name", [], "any"falsefalsefalse414), "html"nulltrue);
  634.                 yield "\" class=\"product-image\">
  635.                                                         </a>
  636.                                                     </td>
  637.                                                     <td class=\"product-price-col\" valign=\"middle\" style=\"width: 50%;\">
  638.                                                         <div style=\"display: none\">
  639.                                                             ";
  640.                 // line 419
  641.                 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source$context["product"], "product", [], "any"falsefalsefalse419), 'row', ["attr" => ["class" => "form-control""label" => false]]);
  642.                 yield "
  643.                                                             ";
  644.                 // line 420
  645.                 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source$context["product"], "subProduct", [], "any"falsefalsefalse420), 'row', ["attr" => ["class" => "form-control""label" => false]]);
  646.                 yield "
  647.                                                         </div>
  648.                                                         <span class=\"product-price-special\">
  649.                                                        <a href=\"";
  650.                 // line 423
  651.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product", ["sub" => (isset($context["subId"]) || array_key_exists("subId"$context) ? $context["subId"] : (function () { throw new RuntimeError('Variable "subId" does not exist.'423$this->source); })()), "id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'423$this->source); })()), "id", [], "any"falsefalsefalse423), "slug" => CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'423$this->source); })()), "slug", [], "any"falsefalsefalse423)]), "html"nulltrue);
  652.                 yield "\" style=\"font-weight: 600;\" class=\"product-title-cart\">
  653.                                                            ";
  654.                 // line 424
  655.                 if ((isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'424$this->source); })())) {
  656.                     // line 425
  657.                     yield "                                                               ";
  658.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["subProduct"]) || array_key_exists("subProduct"$context) ? $context["subProduct"] : (function () { throw new RuntimeError('Variable "subProduct" does not exist.'425$this->source); })()), "name", [], "any"falsefalsefalse425), "html"nulltrue);
  659.                     yield "
  660.                                                            ";
  661.                 } else {
  662.                     // line 427
  663.                     yield "                                                               ";
  664.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'427$this->source); })()), "name", [], "any"falsefalsefalse427), "html"nulltrue);
  665.                     yield "
  666.                                                            ";
  667.                 }
  668.                 // line 429
  669.                 yield "                                                       </a>
  670.                                                        <br/>
  671.                                                        ";
  672.                 // line 431
  673.                 $context['_parent'] = $context;
  674.                 $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "vars", [], "any"falsefalsefalse431), "value", [], "any"falsefalsefalse431), "equipments", [], "any"falsefalsefalse431));
  675.                 foreach ($context['_seq'] as $context["_key"] => $context["cartProductEquipment"]) {
  676.                     // line 432
  677.                     yield "                                                           <span style=\"font-size:12px\">
  678.                                                                ";
  679.                     // line 433
  680.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["cartProductEquipment"], "equipment", [], "any"falsefalsefalse433), "name", [], "any"falsefalsefalse433), "html"nulltrue);
  681.                     yield " <strong>+";
  682.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->formatPrice(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["cartProductEquipment"], "equipment", [], "any"falsefalsefalse433), "price", [], "any"falsefalsefalse433), (isset($context["currency"]) || array_key_exists("currency"$context) ? $context["currency"] : (function () { throw new RuntimeError('Variable "currency" does not exist.'433$this->source); })())), "html"nulltrue);
  683.                     yield "</strong><br/>
  684.                                                            </span>
  685.                                                        ";
  686.                 }
  687.                 $_parent $context['_parent'];
  688.                 unset($context['_seq'], $context['_key'], $context['cartProductEquipment'], $context['_parent']);
  689.                 $context array_intersect_key($context$_parent) + $_parent;
  690.                 // line 436
  691.                 yield "
  692.                                                         ";
  693.                 // line 437
  694.                 if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'437$this->source); })()), "shippingCategory", [], "any"falsefalsefalse437) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'437$this->source); })()), "request", [], "any"falsefalsefalse437), "locale", [], "any"falsefalsefalse437) == "pl"))) {
  695.                     // line 438
  696.                     yield "                                                            ";
  697.                     $context["sc"] = (CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'438$this->source); })()), "shippingCategory", [], "any"falsefalsefalse438) . "_store");
  698.                     // line 439
  699.                     yield "                                                            <a target=\"_blank\" href=\"";
  700.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("single_article", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["shoppingArticle"]) || array_key_exists("shoppingArticle"$context) ? $context["shoppingArticle"] : (function () { throw new RuntimeError('Variable "shoppingArticle" does not exist.'439$this->source); })()), "id", [], "any"falsefalsefalse439), "slug" => CoreExtension::getAttribute($this->env$this->source, (isset($context["shoppingArticle"]) || array_key_exists("shoppingArticle"$context) ? $context["shoppingArticle"] : (function () { throw new RuntimeError('Variable "shoppingArticle" does not exist.'439$this->source); })()), "slug", [], "any"falsefalsefalse439)]), "html"nulltrue);
  701.                     yield "\">
  702.                                                                 <div style=\"margin-top:10px; font-weight: normal; text-align: left; font-size: 14px;\" class=\"step_txt\">
  703.                                                                     ";
  704.                     // line 441
  705.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["sc"]) || array_key_exists("sc"$context) ? $context["sc"] : (function () { throw new RuntimeError('Variable "sc" does not exist.'441$this->source); })()), [], "store"), "html"nulltrue);
  706.                     yield "
  707.                                                                 </div>
  708.                                                             </a>
  709.                                                         ";
  710.                 }
  711.                 // line 445
  712.                 yield "                                                   </span>
  713.                                                         <div style=\"";
  714.                 // line 446
  715.                 if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "vars", [], "any"falsefalsefalse446), "value", [], "any"falsefalsefalse446), "parameterValues", [], "any"falsefalsefalse446))) {
  716.                     yield "margin-top:20px;";
  717.                 }
  718.                 yield " font-size:13px;\">
  719.                                                             <div style=\"display: none\">
  720.                                                                 ";
  721.                 // line 448
  722.                 CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "variant", [], "any"falsefalsefalse448), "setRendered", [], "any"falsefalsefalse448);
  723.                 // line 449
  724.                 yield "                                                            </div>
  725.                                                             <div>
  726.                                                                 ";
  727.                 // line 451
  728.                 $context['_parent'] = $context;
  729.                 $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "vars", [], "any"falsefalsefalse451), "value", [], "any"falsefalsefalse451), "parameterValues", [], "any"falsefalsefalse451));
  730.                 foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
  731.                     // line 452
  732.                     yield "                                                                    <strong>";
  733.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["value"], "parameter", [], "any"falsefalsefalse452), "name", [], "any"falsefalsefalse452), "html"nulltrue);
  734.                     yield "</strong>: ";
  735.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["value"], "parameterValue", [], "any"falsefalsefalse452), "name", [], "any"falsefalsefalse452), "html"nulltrue);
  736.                     yield "<br/>
  737.                                                                 ";
  738.                 }
  739.                 $_parent $context['_parent'];
  740.                 unset($context['_seq'], $context['_key'], $context['value'], $context['_parent']);
  741.                 $context array_intersect_key($context$_parent) + $_parent;
  742.                 // line 454
  743.                 yield "                                                            </div>
  744.                                                         </div>
  745.                                                     </td>
  746.                                                     <td>
  747.                                                         <div class=\"custom-quantity-input\">
  748.                                                             ";
  749.                 // line 459
  750.                 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source$context["product"], "quantity", [], "any"falsefalsefalse459), 'row', ["attr" => ["class" => "input quantity-input commaReplacer""data-record" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "vars", [], "any"falsefalsefalse459), "value", [], "any"falsefalsefalse459), "id", [], "any"falsefalsefalse459), "data-product" => CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'459$this->source); })()), "id", [], "any"falsefalsefalse459), "label" => false]]);
  751.                 yield "
  752.                                                             ";
  753.                 // line 460
  754.                 $context["quantityTotal"] = ((isset($context["quantityTotal"]) || array_key_exists("quantityTotal"$context) ? $context["quantityTotal"] : (function () { throw new RuntimeError('Variable "quantityTotal" does not exist.'460$this->source); })()) + CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "quantity", [], "any"falsefalsefalse460), "vars", [], "any"falsefalsefalse460), "value", [], "any"falsefalsefalse460));
  755.                 // line 461
  756.                 yield "                                                        </div>
  757.                                                         <div class=\"loader_group\" style=\"text-align: center; margin-top:20px; margin-left:-8px; display: none\" id=\"quantity_loader_";
  758.                 // line 462
  759.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'462$this->source); })()), "id", [], "any"falsefalsefalse462), "html"nulltrue);
  760.                 yield "\">
  761.                                                             <i class=\"fas fa-spinner fa-spin\"></i>
  762.                                                         </div>
  763.                                                     </td>
  764.                                                    <td class=\"product-price-col\" style=\"min-width: 110px;\">
  765.                                                        <span class=\"product-price-special\">
  766.                                                            ";
  767.                 // line 468
  768.                 if ( !CoreExtension::getAttribute($this->env$this->source, ($context["mainCategory"] ?? null), "id", [], "any"truetruefalse468)) {
  769.                     // line 469
  770.                     yield "                                                               ";
  771.                     $context["mainCategory"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'469$this->source); })()), "mainCategory", [], "any"falsefalsefalse469);
  772.                     // line 470
  773.                     yield "                                                           ";
  774.                 }
  775.                 // line 471
  776.                 yield "                                                           ";
  777.                 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source$context["product"], "price", [], "any"falsefalsefalse471), 'row', ["attr" => ["class" => "form-control""label" => false]]);
  778.                 yield "
  779.                                                            <div style=\"display: none\">
  780.                                                                ";
  781.                 // line 473
  782.                 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source$context["product"], "currency", [], "any"falsefalsefalse473), 'row', ["attr" => ["class" => "form-control""label" => false]]);
  783.                 yield "
  784.                                                            </div>
  785.                                                            ";
  786.                 // line 475
  787.                 $context["currency"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "currency", [], "any"falsefalsefalse475), "vars", [], "any"falsefalsefalse475), "data", [], "any"falsefalsefalse475);
  788.                 // line 476
  789.                 yield "
  790.                                                        </span>
  791.                                                        ";
  792.                 // line 478
  793.                 $context["subtotal"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "vars", [], "any"falsefalsefalse478), "value", [], "any"falsefalsefalse478), "getSubtotal", [], "any"falsefalsefalse478);
  794.                 // line 479
  795.                 yield "                                                       <span style=\"font-size:24px; font-weight: bold;\">
  796.                                                            ";
  797.                 // line 480
  798.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->formatPrice((isset($context["subtotal"]) || array_key_exists("subtotal"$context) ? $context["subtotal"] : (function () { throw new RuntimeError('Variable "subtotal" does not exist.'480$this->source); })()), (isset($context["currency"]) || array_key_exists("currency"$context) ? $context["currency"] : (function () { throw new RuntimeError('Variable "currency" does not exist.'480$this->source); })())), "html"nulltrue);
  799.                 yield "
  800.                                                        </span>
  801.                                                     </td>
  802.                                                     <td style=\"width:60px;\">
  803.                                                         <a style=\"cursor: pointer; font-size:24px; font-weight: normal;\" class=\"close-button btn-cart-remove\" data-record=\"";
  804.                 // line 484
  805.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "vars", [], "any"falsefalsefalse484), "value", [], "any"falsefalsefalse484), "id", [], "any"falsefalsefalse484), "html"nulltrue);
  806.                 yield "\" data-product=\"";
  807.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["productEntity"]) || array_key_exists("productEntity"$context) ? $context["productEntity"] : (function () { throw new RuntimeError('Variable "productEntity" does not exist.'484$this->source); })()), "id", [], "any"falsefalsefalse484), "html"nulltrue);
  808.                 yield "\"><i class=\"fa fa-times\"></i> </a>
  809.                                                     </td>
  810.                                                 </tr>
  811.                                             ";
  812.             }
  813.             $_parent $context['_parent'];
  814.             unset($context['_seq'], $context['_key'], $context['product'], $context['_parent']);
  815.             $context array_intersect_key($context$_parent) + $_parent;
  816.             // line 488
  817.             yield "                                            ";
  818.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'488$this->source); })()), "products", [], "any"falsefalsefalse488), "setRendered", [], "any"falsefalsefalse488);
  819.             // line 489
  820.             yield "                                            </tbody>
  821.                                         </table>
  822.                                         <div class=\"columns\">
  823.                                             <div class=\"column is-12\">
  824.                                                 <h1 class=\"cart-right-side move-right-desktop\">
  825.                                                     ";
  826.             // line 495
  827.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("choose_delivery", [], "store"), "html"nulltrue);
  828.             yield "
  829.                                                 </h1>
  830.                                             </div>
  831.                                         </div>
  832.                                         <div class=\"columns\">
  833.                                             <div class=\"column is-12\">
  834.                                                 <div id=\"deliveryMethodsContent\">
  835.                                                     ";
  836.             // line 503
  837.             yield from $this->loadTemplate("frontend/cart/_deliveryMethods.html.twig""frontend/cart/cart.html.twig"503)->unwrap()->yield($context);
  838.             // line 504
  839.             yield "                                                </div>
  840.                                             </div>
  841.                                         </div>
  842.                                         <div class=\"columns\">
  843.                                             <div class=\"column is-12\">
  844.                                                 <div class=\"columns\">
  845.                                                     <div class=\"column is-9\">
  846.                                                         <h1 class=\"cart-right-side move-right-desktop\">
  847.                                                             ";
  848.             // line 514
  849.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("choose_payment", [], "store"), "html"nulltrue);
  850.             yield "
  851.                                                         </h1>
  852.                                                     </div>
  853.                                                 </div>
  854.                                                 <div id=\"paymentMethodsContent\">
  855.                                                 </div>
  856.                                             </div>
  857.                                         </div>
  858.                                     </div>
  859.                                     ";
  860.             // line 526
  861.             yield from $this->loadTemplate("frontend/components/_cartRightSide.twig""frontend/cart/cart.html.twig"526)->unwrap()->yield(CoreExtension::merge($context, ["disableActions" => false]));
  862.             // line 527
  863.             yield "                                </div>
  864.                                 <div class=\"columns\" style=\"margin-left:-10px; margin-bottom: 30px;\">
  865.                                     <div class=\"column is-full\">
  866.                                         <a href=\"";
  867.             // line 531
  868.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["slug" => CoreExtension::getAttribute($this->env$this->source, (isset($context["mainCategory"]) || array_key_exists("mainCategory"$context) ? $context["mainCategory"] : (function () { throw new RuntimeError('Variable "mainCategory" does not exist.'531$this->source); })()), "slug", [], "any"falsefalsefalse531), "id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["mainCategory"]) || array_key_exists("mainCategory"$context) ? $context["mainCategory"] : (function () { throw new RuntimeError('Variable "mainCategory" does not exist.'531$this->source); })()), "id", [], "any"falsefalsefalse531)]), "html"nulltrue);
  869.             yield "\" style=\"font-weight: 500;\" class=\"button add-another-product-button button-back is-warning\"><i class=\"fa fa-arrow-left\"></i> &nbsp;  ";
  870.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("add_another_products", [], "store"), "html"nulltrue);
  871.             yield "</a>
  872.                                     </div>
  873.                                 </div>
  874.                                 ";
  875.             // line 534
  876.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'534$this->source); })()), "paymentMethod", [], "any"falsefalsefalse534), "setRendered", [], "any"falsefalsefalse534);
  877.             // line 535
  878.             yield "                                ";
  879.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'535$this->source); })()), "deliveryCountry", [], "any"falsefalsefalse535), "setRendered", [], "any"falsefalsefalse535);
  880.             // line 536
  881.             yield "                                ";
  882.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'536$this->source); })()), "deliveryMethod", [], "any"falsefalsefalse536), "setRendered", [], "any"falsefalsefalse536);
  883.             // line 537
  884.             yield "                                ";
  885.             yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'537$this->source); })()), 'form_end');
  886.             yield "
  887.                             </div>
  888.                         </div>
  889.                         ";
  890.             // line 543
  891.             if (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["crossSelling"]) || array_key_exists("crossSelling"$context) ? $context["crossSelling"] : (function () { throw new RuntimeError('Variable "crossSelling" does not exist.'543$this->source); })()))) {
  892.                 // line 544
  893.                 yield "
  894.                             <h1 class=\"cart-right-side\" style=\"margin-bottom: 30px;\">
  895.                                 ";
  896.                 // line 546
  897.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("others_bought_also", [], "store"), "html"nulltrue);
  898.                 yield "
  899.                             </h1>
  900.                             <div class=\"columns is-multiline is-mobile lista-produktow\" v-match-heights=\"{ el: [ '.no-description' ] }\">
  901.                                 ";
  902.                 // line 550
  903.                 if (((isset($context["crossSelling"]) || array_key_exists("crossSelling"$context) ? $context["crossSelling"] : (function () { throw new RuntimeError('Variable "crossSelling" does not exist.'550$this->source); })()) == 0)) {
  904.                     // line 551
  905.                     yield "
  906.                                 ";
  907.                 } else {
  908.                     // line 553
  909.                     yield "                                    ";
  910.                     $context['_parent'] = $context;
  911.                     $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["crossSelling"]) || array_key_exists("crossSelling"$context) ? $context["crossSelling"] : (function () { throw new RuntimeError('Variable "crossSelling" does not exist.'553$this->source); })()), 04));
  912.                     $context['loop'] = [
  913.                       'parent' => $context['_parent'],
  914.                       'index0' => 0,
  915.                       'index'  => 1,
  916.                       'first'  => true,
  917.                     ];
  918.                     if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  919.                         $length count($context['_seq']);
  920.                         $context['loop']['revindex0'] = $length 1;
  921.                         $context['loop']['revindex'] = $length;
  922.                         $context['loop']['length'] = $length;
  923.                         $context['loop']['last'] = === $length;
  924.                     }
  925.                     foreach ($context['_seq'] as $context["_key"] => $context["productData"]) {
  926.                         // line 554
  927.                         yield "                                        ";
  928.                         $context["product"] = CoreExtension::getAttribute($this->env$this->source$context["productData"], 0, [], "array"falsefalsefalse554);
  929.                         // line 555
  930.                         yield "                                        ";
  931.                         yield from $this->loadTemplate("frontend/components/smallProduct.html.twig""frontend/cart/cart.html.twig"555)->unwrap()->yield(CoreExtension::merge($context, ["isOneQuarter" => 1"product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'555$this->source); })()), "productData" => $context["productData"]]));
  932.                         // line 556
  933.                         yield "                                    ";
  934.                         ++$context['loop']['index0'];
  935.                         ++$context['loop']['index'];
  936.                         $context['loop']['first'] = false;
  937.                         if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  938.                             --$context['loop']['revindex0'];
  939.                             --$context['loop']['revindex'];
  940.                             $context['loop']['last'] = === $context['loop']['revindex0'];
  941.                         }
  942.                     }
  943.                     $_parent $context['_parent'];
  944.                     unset($context['_seq'], $context['_key'], $context['productData'], $context['_parent'], $context['loop']);
  945.                     $context array_intersect_key($context$_parent) + $_parent;
  946.                     // line 557
  947.                     yield "                                ";
  948.                 }
  949.                 // line 558
  950.                 yield "                            </div>
  951.                         ";
  952.             }
  953.             // line 560
  954.             yield "
  955.                     </div>
  956.                 </section>
  957.             </div>
  958.         </div>
  959.     ";
  960.         } else {
  961.             // line 567
  962.             yield "        ";
  963.             yield from $this->loadTemplate("frontend/components/notification.html.twig""frontend/cart/cart.html.twig"567)->unwrap()->yield($context);
  964.             // line 568
  965.             yield "
  966.         ";
  967.             // line 569
  968.             if ((isset($context["showNotification"]) || array_key_exists("showNotification"$context) ? $context["showNotification"] : (function () { throw new RuntimeError('Variable "showNotification" does not exist.'569$this->source); })())) {
  969.                 // line 570
  970.                 yield "            <div class=\"notification is-danger cart-error-notification\" style=\"text-align: center!important; margin:40px; display: block!important;\">
  971.                 ";
  972.                 // line 571
  973.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products_deleted_info", [], "store"), "html"nulltrue);
  974.                 yield "
  975.             </div>
  976.         ";
  977.             }
  978.             // line 574
  979.             yield "
  980.         <div class=\"review-comments\" style=\"margin-top:30px; margin-bottom:30px; text-align: center\">
  981.             <h1>
  982.                 ";
  983.             // line 577
  984.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("your_cart_is_empty", [], "store"), "html"nulltrue);
  985.             yield "
  986.             </h1>
  987.         </div>
  988.     ";
  989.         }
  990.         // line 581
  991.         yield "
  992.     <div class=\"modal\" id=\"modal-choose-delivery\">
  993.         <div class=\"modal-background\"></div>
  994.         <div class=\"modal-content\">
  995.             <div class=\"box\" style=\"padding:20px!important;\">
  996.                 <p style=\"text-align: center\">
  997.                     ";
  998.         // line 587
  999.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("please_choose_form_delivery_and_payment", [], "store"), "html"nulltrue);
  1000.         yield "
  1001.                     <br/>
  1002.                     <button style=\"margin-top:20px;    color: #fff!important; border-color: transparent!important; font-weight: bold; font-size: 17px!important; background: #44bc42;\" class=\"button close-modal-custom is-success\">";
  1003.         // line 589
  1004.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ok_got_it", [], "store"), "html"nulltrue);
  1005.         yield "</button>
  1006.                 </p>
  1007.             </div>
  1008.         </div>
  1009.         <button class=\"modal-close is-large\" aria-label=\"close\"></button>
  1010.     </div>
  1011.     ";
  1012.         // line 596
  1013.         $context["criteoCount"] = 0;
  1014.         // line 597
  1015.         yield "
  1016.     ";
  1017.         // line 598
  1018.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'598$this->source); })()), "request", [], "any"falsefalsefalse598), "locale", [], "any"falsefalsefalse598) == "pl")) {
  1019.             // line 599
  1020.             yield "        <script type=\"text/javascript\" src=\"//static.criteo.net/js/ld/ld.js\" async=\"true\"></script>
  1021.         <script type=\"text/javascript\">
  1022.             window.criteo_q = window.criteo_q || [];
  1023.             var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
  1024.             window.criteo_q.push(
  1025.                 { event: \"setAccount\", account: 36267 },
  1026.                 { event: \"setEmail\", email: \"";
  1027.             // line 605
  1028.             if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse605), "email", [], "any"truetruefalse605)) {
  1029.                 yield " ";
  1030.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'605$this->source); })()), "user", [], "any"falsefalsefalse605), "email", [], "any"falsefalsefalse605), "html"nulltrue);
  1031.                 yield " ";
  1032.             }
  1033.             yield "\" },
  1034.                 { event: \"setSiteType\", type: deviceType },
  1035.                 { event: \"viewBasket\", item: [
  1036.                             ";
  1037.             // line 608
  1038.             $context['_parent'] = $context;
  1039.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["cartProducts"]) || array_key_exists("cartProducts"$context) ? $context["cartProducts"] : (function () { throw new RuntimeError('Variable "cartProducts" does not exist.'608$this->source); })()));
  1040.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  1041.                 $context["criteoCount"] = ((isset($context["criteoCount"]) || array_key_exists("criteoCount"$context) ? $context["criteoCount"] : (function () { throw new RuntimeError('Variable "criteoCount" does not exist.'608$this->source); })()) + 1);
  1042.                 if (((isset($context["criteoCount"]) || array_key_exists("criteoCount"$context) ? $context["criteoCount"] : (function () { throw new RuntimeError('Variable "criteoCount" does not exist.'608$this->source); })()) != (isset($context["countCriteoProducts"]) || array_key_exists("countCriteoProducts"$context) ? $context["countCriteoProducts"] : (function () { throw new RuntimeError('Variable "countCriteoProducts" does not exist.'608$this->source); })()))) {
  1043.                     yield "{ id: \"";
  1044.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["item"], "product", [], "any"falsefalsefalse608), "id", [], "any"falsefalsefalse608), "html"nulltrue);
  1045.                     yield "\", price: ";
  1046.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "price", [], "any"falsefalsefalse608), "html"nulltrue);
  1047.                     yield ", quantity: ";
  1048.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "quantity", [], "any"falsefalsefalse608), "html"nulltrue);
  1049.                     yield " },";
  1050.                 } else {
  1051.                     yield "{ id: \"";
  1052.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["item"], "product", [], "any"falsefalsefalse608), "getId", [], "any"falsefalsefalse608), "html"nulltrue);
  1053.                     yield "\", price: ";
  1054.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "price", [], "any"falsefalsefalse608), "html"nulltrue);
  1055.                     yield ", quantity: ";
  1056.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "quantity", [], "any"falsefalsefalse608), "html"nulltrue);
  1057.                     yield " }";
  1058.                 }
  1059.             }
  1060.             $_parent $context['_parent'];
  1061.             unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  1062.             $context array_intersect_key($context$_parent) + $_parent;
  1063.             // line 609
  1064.             yield "                    ]}
  1065.             );
  1066.         </script>
  1067.         <script type=\"text/javascript\">
  1068.             var google_tag_params = {
  1069.                 ecomm_pagetype: 'cart'
  1070.             };
  1071.         </script>
  1072.     ";
  1073.         }
  1074.         // line 619
  1075.         yield "
  1076. ";
  1077.         
  1078.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1079.         
  1080.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1081.         yield from [];
  1082.     }
  1083.     /**
  1084.      * @codeCoverageIgnore
  1085.      */
  1086.     public function getTemplateName(): string
  1087.     {
  1088.         return "frontend/cart/cart.html.twig";
  1089.     }
  1090.     /**
  1091.      * @codeCoverageIgnore
  1092.      */
  1093.     public function isTraitable(): bool
  1094.     {
  1095.         return false;
  1096.     }
  1097.     /**
  1098.      * @codeCoverageIgnore
  1099.      */
  1100.     public function getDebugInfo(): array
  1101.     {
  1102.         return array (  1180 => 619,  1168 => 609,  1142 => 608,  1132 => 605,  1124 => 599,  1122 => 598,  1119 => 597,  1117 => 596,  1107 => 589,  1102 => 587,  1094 => 581,  1087 => 577,  1082 => 574,  1076 => 571,  1073 => 570,  1071 => 569,  1068 => 568,  1065 => 567,  1056 => 560,  1052 => 558,  1049 => 557,  1035 => 556,  1032 => 555,  1029 => 554,  1011 => 553,  1007 => 551,  1005 => 550,  998 => 546,  994 => 544,  992 => 543,  982 => 537,  979 => 536,  976 => 535,  974 => 534,  966 => 531,  960 => 527,  958 => 526,  943 => 514,  931 => 504,  929 => 503,  918 => 495,  910 => 489,  907 => 488,  895 => 484,  888 => 480,  885 => 479,  883 => 478,  879 => 476,  877 => 475,  872 => 473,  866 => 471,  863 => 470,  860 => 469,  858 => 468,  849 => 462,  846 => 461,  844 => 460,  840 => 459,  833 => 454,  822 => 452,  818 => 451,  814 => 449,  812 => 448,  805 => 446,  802 => 445,  795 => 441,  789 => 439,  786 => 438,  784 => 437,  781 => 436,  770 => 433,  767 => 432,  763 => 431,  759 => 429,  753 => 427,  747 => 425,  745 => 424,  741 => 423,  735 => 420,  731 => 419,  720 => 414,  717 => 413,  714 => 412,  711 => 411,  709 => 410,  705 => 409,  701 => 407,  698 => 406,  695 => 405,  692 => 404,  689 => 403,  686 => 402,  683 => 401,  679 => 400,  668 => 392,  662 => 388,  655 => 386,  652 => 385,  650 => 384,  647 => 383,  644 => 382,  641 => 381,  639 => 380,  636 => 379,  633 => 378,  630 => 377,  627 => 376,  624 => 375,  621 => 374,  619 => 373,  616 => 372,  612 => 371,  609 => 370,  606 => 369,  603 => 368,  601 => 367,  598 => 366,  596 => 365,  581 => 353,  563 => 338,  545 => 323,  525 => 306,  521 => 305,  514 => 300,  508 => 297,  505 => 296,  503 => 295,  490 => 284,  488 => 283,  482 => 280,  478 => 279,  473 => 278,  467 => 276,  464 => 275,  458 => 273,  452 => 271,  449 => 270,  447 => 269,  443 => 268,  439 => 267,  435 => 266,  431 => 265,  427 => 264,  424 => 263,  417 => 261,  414 => 260,  412 => 259,  409 => 258,  405 => 257,  402 => 256,  399 => 255,  397 => 254,  394 => 253,  381 => 252,  178 => 59,  165 => 58,  107 => 11,  94 => 10,  79 => 6,  66 => 5,  43 => 1,);
  1103.     }
  1104.     public function getSourceContext(): Source
  1105.     {
  1106.         return new Source("{% extends 'base.html.twig' %}
  1107. {% trans_default_domain 'store' %}
  1108. {% block facebook %}
  1109.     {{ parent() }}
  1110.     <META NAME=\"ROBOTS\" CONTENT=\"NOINDEX, NOFOLLOW\">
  1111. {% endblock %}
  1112. {% block stylesheets %}
  1113.     {{ parent() }}
  1114.     <style>
  1115.         .table td, .table th {
  1116.             vertical-align: middle!important;
  1117.             padding-left:5px!important;
  1118.         }
  1119.         @media screen and (min-width: 769px) and (max-width:1024px) {
  1120.             .column.is-9 {
  1121.                 width:70% !important;
  1122.             }
  1123.         }
  1124.         .custom-radio-wrapper{
  1125.             display:flex;
  1126.             align-items:flex-start;          /* keeps radio button and text aligned */
  1127.             border-radius:4px;
  1128.             cursor:pointer;
  1129.         }
  1130.         .custom-radio-wrapper .custom-radio-container{
  1131.             display:flex;
  1132.             align-items:flex-start;
  1133.         }
  1134.         /* title line */
  1135.         .payment-title{
  1136.             font-size:1rem;                  /* ~16 px */
  1137.             font-weight:500;
  1138.             line-height:1.3;
  1139.             display:block;
  1140.         }
  1141.         /* extra info line */
  1142.         .payment-desc{
  1143.             font-size:.8125rem;              /* ~13 px */
  1144.             color:#666;
  1145.             line-height:1.25;
  1146.             display:block;                   /* forces a new line */
  1147.             margin-top:.125rem;
  1148.         }
  1149.     </style>
  1150. {% endblock %}
  1151. {% block javascripts %}
  1152.     {{ parent() }}
  1153.     <script>
  1154.         \$(document ).ready(function() {
  1155.             function colorize(element, className) {
  1156.                 console.log('colorize');
  1157.                 \$(\".\"+className+\" tbody tr\").each(function(){
  1158.                     console.log(\$(this));
  1159.                     \$(this).css('border', '1px solid #dbdbdb');
  1160.                 });
  1161.                 \$(\".\"+className+\" tbody tr\").css('border', '1px solid #dbdbdb');
  1162.                 element.closest('tr').css('border', '2px solid #44bc42');
  1163.             }
  1164.             /* Change quantity of the ordered product */
  1165.             \$(document).on('input', '.quantity-input', function (e) {
  1166.                 var product = \$(this).attr('data-product');
  1167.                 var url = \$('#update_quantity_cart').val();
  1168.                 var record = \$(this).attr('data-record');
  1169.                 var quantity = \$(this).val();
  1170.                 \$('#quantity_loader_'+product).show();
  1171.                 \$.ajax({
  1172.                     url: url,
  1173.                     type:\"POST\",
  1174.                     data:{'record_id':record, 'quantity':quantity, 'product_id':product},
  1175.                     success:function (data) {
  1176.                         console.log(data);
  1177.                         if (parseInt(data.error) === 1) {
  1178.                             \$('.cart-error-notification').show();
  1179.                             \$('.cart-error-notification').html(data.message);
  1180.                             \$(\"html, body\").animate({ scrollTop: \$('.cart-error-notification').offset().top }, 200);
  1181.                         }
  1182.                         \$('.loader_group').hide();
  1183.                         var cartUrl = \$('#cart_url').val();
  1184.                         \$('#cart-table').load(cartUrl+' #cart-table', {}, function(response) {
  1185.                             calculateSum();
  1186.                         });
  1187.                     }
  1188.                 });
  1189.             });
  1190.             /* Trigger click of first element id delivery list */
  1191.             \$(\"input:radio[name=deliveryMethod]:first\").trigger(\"click\");
  1192.             colorize(\$(\"input:radio[name=deliveryMethod]:first\"), 'delivery-methods-table');
  1193.             var \$deliveryMethodContent = \$('#deliveryMethodsContent');
  1194.             var \$paymentMethodContainer = \$('#paymentMethodsContent');
  1195.             var loadPaymentMethods = function() {
  1196.                 var id = \$('.deliveryMethod').val();
  1197.                 \$paymentMethodContainer.html(' ');
  1198.                 var url = \$('#load_payment_methods').val();
  1199.                 \$paymentMethodContainer.load(url, {'id':id}, function() {
  1200.                     calculateSum();
  1201.                 });
  1202.             }
  1203.             loadPaymentMethods();
  1204.             /* Removes element from cart */
  1205.             \$(document).on('click', '.btn-cart-remove', 'click', function (e) {
  1206.                 var url = \$('#remove_cart_url').val();
  1207.                 var record = \$(this).attr('data-record');
  1208.                 var product = \$(this).attr('data-product');
  1209.                 var productId = \$(this).attr('data-id');
  1210.                 \$('#quantity_loader_'+product).show();
  1211.                 \$.ajax({
  1212.                     url: url,
  1213.                     type:\"POST\",
  1214.                     data:{'record_id':record, 'product_id':product},
  1215.                     success:function (data) {
  1216.                         console.log(data);
  1217.                         \$('.loader_group').hide();
  1218.                         var cartUrl = \$('#cart_url').val();
  1219.                         \$('.cart-products').load(cartUrl+' .cart-products', {}, function(response) {
  1220.                             console.log(response);
  1221.                         });
  1222.                         calculateSum();
  1223.                     }
  1224.                 });
  1225.             });
  1226.             /** Change country -> release load form od delviery */
  1227.             \$(document).on('change', '#country', function (e) {
  1228.                 \$deliveryMethodContent.html(' ');
  1229.                 \$paymentMethodContainer.html(' ');
  1230.                 \$('#country_id').val(\$(this).val());
  1231.                 var url = \$('#load_delivery_methods').val();
  1232.                 \$deliveryMethodContent.load(url, {'id':\$(this).val()}, function() {
  1233.                     \$(\"input:radio[name=deliveryMethod]:first\").trigger(\"click\");
  1234.                 });
  1235.             });
  1236.             /** Load payment methods */
  1237.             \$(document).on('change', '.deliveryMethod', function (e) {
  1238.                 colorize(\$(this), 'delivery-methods-table');
  1239.                 loadPaymentMethods();
  1240.             });
  1241.             /**
  1242.              * Dynamically calculate total sum of product and dlivery + payment method
  1243.              */
  1244.             var calculateSum = function () {
  1245.                 var deliveryId = \$('input[name=deliveryMethod]:checked').val();
  1246.                 var paymentId = \$('input[name=paymentMethod]:checked').val();
  1247.                 var url = \$('#ajax_calculate_sum').val();
  1248.                 \$.ajax({
  1249.                     url: url,
  1250.                     type:\"POST\",
  1251.                     data:{'deliveryId':deliveryId, 'paymentId':paymentId},
  1252.                     success:function (data) {
  1253.                         console.log(data);
  1254.                         \$('.totalSum').html(data.sum);
  1255.                         if (\$('.totalSumWithRebate').length) {
  1256.                             \$('.totalSumWithRebate').html(data.sumWithRebate);
  1257.                         }
  1258.                         if (\$('.totalSumWithoutRebate').length) {
  1259.                             \$('.totalSumWithoutRebate').html(data.sum);
  1260.                         }
  1261.                         if (\$('.savingsInfo').length) {
  1262.                             \$('.savingsInfo').html(data.savings);
  1263.                         }
  1264.                     }
  1265.                 });
  1266.             }
  1267.             /** Handle payment method change */
  1268.             \$(document).on('click', '.paymentMethod', function (e) {
  1269.                 colorize(\$(this), 'payment-methods-table');
  1270.             });
  1271.             \$(document).on('click', '.deliveryMethod', function (e) {
  1272.                 colorize(\$(this), 'delivery-methods-table');
  1273.             });
  1274.             \$(document).on('change', '.paymentMethod', function (e) {
  1275.                 colorize(\$(this), 'payment-methods-table');
  1276.                 calculateSum();
  1277.             });
  1278.             \$(document).on(\"click\", \"#go-to-request-form\", \"click\", function() {
  1279.                 var urlRedirect = \$('#send_request_url').val();
  1280.                 window.location.href = urlRedirect;
  1281.             });
  1282.             \$(document).on('click', '.go-to-checkout', 'click', function (e) {
  1283.                 e.preventDefault();
  1284.                 var deliveryId = \$('input[name=deliveryMethod]:checked').val();
  1285.                 var paymentId = \$('input[name=paymentMethod]:checked').val();
  1286.                 if (deliveryId && paymentId) {
  1287.                     var url = \$('#ajax_save_cart').val();
  1288.                     \$.ajax({
  1289.                         url: url,
  1290.                         type:\"POST\",
  1291.                         data:{'deliveryId':deliveryId, 'paymentId':paymentId},
  1292.                         success:function (data) {
  1293.                             window.location.href = \$('#checkout_redirect').val();
  1294.                         }
  1295.                     });
  1296.                 } else {
  1297.                     \$(\"#modal-choose-delivery\").addClass(\"is-active\");
  1298.                 }
  1299.             });
  1300.         });
  1301.         \$('.modal-close').click(function() {
  1302.             \$(\"#modal-choose-delivery\").removeClass(\"is-active\");
  1303.         });
  1304.         \$('.close-modal-custom').click(function() {
  1305.             \$(\"#modal-choose-delivery\").removeClass(\"is-active\");
  1306.         });
  1307.     </script>
  1308. {% endblock %}
  1309. {% block content %}
  1310.     {% set countCriteoProducts = 0 %}
  1311.     {% set criteoIds = [] %}
  1312.     {% for product in cartProducts %}
  1313.         {% set criteoIds = criteoIds|merge([product.id]) %}
  1314.         {% set countCriteoProducts = countCriteoProducts + 1 %}
  1315.     {% endfor %}
  1316.     <input type=\"hidden\" id=\"load_delivery_methods\" value=\"{{ path('load_delivery_methods') }}\"/>
  1317.     <input type=\"hidden\" id=\"load_payment_methods\" value=\"{{ path('load_payment_methods') }}\"/>
  1318.     <input type=\"hidden\" id=\"ajax_calculate_sum\" value=\"{{ path('ajax_calculate_sum') }}\"/>
  1319.     <input type=\"hidden\" id=\"ajax_save_cart\" value=\"{{ path('ajax_save_cart') }}\"/>
  1320.     <input type=\"hidden\" id=\"send_request_url\" value=\"{{ path('send_request') }}\"/>
  1321.     {% if app.user.id is defined %}
  1322.         {% if app.user.hasRole('ROLE_CUSTOMER_REGISTERED') %}
  1323.             <input type=\"hidden\" id=\"checkout_redirect\" value=\"{{ path('register') }}\"/>
  1324.         {% else %}
  1325.             <input type=\"hidden\" id=\"checkout_redirect\" value=\"{{ path('summary') }}\"/>
  1326.         {% endif %}
  1327.     {% else %}
  1328.         <input type=\"hidden\" id=\"checkout_redirect\" value=\"{{ path('register_login') }}\"/>
  1329.     {% endif %}
  1330.     <input type=\"hidden\" id=\"cart_url\" value=\"{{ path('cart') }}\"/>
  1331.     <input type=\"hidden\" id=\"remove_cart_url\" value=\"{{ path('remove_from_cart') }}\"/>
  1332.     <input type=\"hidden\" id=\"update_quantity_cart\" value=\"{{ path('update_quantity_cart') }}\"/>
  1333.     {% if cartProducts|length > 0 %}
  1334.         <div class=\"row\" style=\"margin-top:20px;\">
  1335.             <div class=\"col-sm-12\">
  1336.                 <section id=\"content\" role=\"main\">
  1337.                     <div class=\"container\">
  1338.                         <div class=\"row\">
  1339.                             <div class=\"\">
  1340.                                 {% if showNotification %}
  1341.                                     <div class=\"notification is-danger cart-error-notification\" style=\"text-align: center!important; margin:40px; display: block!important;\">
  1342.                                         {{ 'products_deleted_info'|trans }}
  1343.                                     </div>
  1344.                                 {% endif %}
  1345.                                 <div class=\"notification is-danger cart-error-notification\" style=\"text-align: center; display: none\">
  1346.                                 </div>
  1347.                                {{ form_errors(form) }}
  1348.                                {{ form_start(form, {'attr': {'id':'cart-form', 'method':'post', 'role':'form', 'novalidate': 'novalidate'}}) }}
  1349.                                 <!-- START OF INFOGRAPHIC SECTION -->
  1350.                                 <section class=\"section is-hidden-touch\">
  1351.                                     <div class=\"container\">
  1352.                                         <div class=\"columns is-center is-centered\">
  1353.                                             <div class=\"column column-cart is-one-third\">
  1354.                                                 <div style=\"display: inline-block;\">
  1355.                                                     <div class=\"step_nr_new active\">
  1356.                                                         <i class=\"fa fa-check\"></i>
  1357.                                                     </div>
  1358.                                                 </div>
  1359.                                                 <div class=\"column is-narrow\" style=\"display: inline-block\">
  1360.                                                     <div class=\"step_txt active\">
  1361.                                                         {{ 'cart'|trans }}
  1362.                                                     </div>
  1363.                                                     <div class=\"\" style=\"width: 200px;\">
  1364.                                                         <hr class=\"cart-hr-active\">
  1365.                                                     </div>
  1366.                                                 </div>
  1367.                                             </div>
  1368.                                             <div class=\"column column-cart is-one-third column-back\">
  1369.                                                 <div style=\"display: inline-block;\">
  1370.                                                     <div class=\"step_nr_new\">
  1371.                                                     </div>
  1372.                                                 </div>
  1373.                                                 <div class=\"column is-narrow\" style=\"display: inline-block\">
  1374.                                                     <div class=\"step_txt\">
  1375.                                                         {{ 'shipping_data'|trans }}
  1376.                                                     </div>
  1377.                                                     <div class=\"\" style=\"width: 200px;\">
  1378.                                                         <hr class=\"cart-hr\">
  1379.                                                     </div>
  1380.                                                 </div>
  1381.                                             </div>
  1382.                                             <div class=\"column column-cart is-one-third column-back\">
  1383.                                                 <div style=\"display: inline-block;\">
  1384.                                                     <div class=\"step_nr_new\">
  1385.                                                     </div>
  1386.                                                 </div>
  1387.                                                 <div class=\"column is-narrow\" style=\"display: inline-block\">
  1388.                                                     <div class=\"step_txt\">
  1389.                                                         {{ 'summary'|trans }}
  1390.                                                     </div>
  1391.                                                     <div class=\"\" style=\"width: 200px;\">
  1392.                                                         <hr class=\"cart-hr\">
  1393.                                                     </div>
  1394.                                                 </div>
  1395.                                             </div>
  1396.                                         </div>
  1397.                                     </div>
  1398.                                 </section>
  1399.                                 {% include 'frontend/components/notification.html.twig' %}
  1400.                                 {% set total = 0 %}
  1401.                                 {% set quantityTotal = 0 %}
  1402.                                 {% set mainCategory = 0 %}
  1403.                                 {% for product in form.products %}
  1404.                                     {% set productEntity = product.product.vars.data %}
  1405.                                     {% set subProduct = product.subProduct.vars.data %}
  1406.                                     {% set subId = null %}
  1407.                                     {% if subProduct %}
  1408.                                         {% set subId = subProduct.id %}
  1409.                                     {% endif %}
  1410.                                     {% if mainCategory.id is not defined %}
  1411.                                         {% set mainCategory = productEntity.mainCategory %}
  1412.                                     {% endif %}
  1413.                                     {% set subtotal = product.vars.value.getSubtotal %}
  1414.                                     {% set total = total + subtotal %}
  1415.                                 {% endfor %}
  1416.                                 <div class=\"columns\">
  1417.                                     <div class=\"column is-9\">
  1418.                                         <h1 class=\"cart-right-side\">
  1419.                                             {{ 'cart'|trans }}
  1420.                                         </h1>
  1421.                                         <br/>
  1422.                                         <table class=\"table is-fullwidth cart-products\">
  1423.                                             <tbody>
  1424.                                             {% for product in form.products %}
  1425.                                                 {% set productEntity = product.product.vars.data %}
  1426.                                                 {% set subProduct = product.subProduct.vars.data %}
  1427.                                                 {% set subId = null %}
  1428.                                                 {% if subProduct %}
  1429.                                                     {% set subId = subProduct.id %}
  1430.                                                 {% endif %}
  1431.                                                 <tr>
  1432.                                                     <td valign=\"middle\">
  1433.                                                         <a href=\"{{ path('product', {'sub':subId, 'id':productEntity.id, 'slug':productEntity.slug}) }}\">
  1434.                                                             {% set mainPhoto = productEntity.getMainPhotoPath(app.request.locale) %}
  1435.                                                             {% if subProduct and subProduct.imageName %}
  1436.                                                                 {% set mainPhoto = '/images/product/'~subProduct.imageName %}
  1437.                                                             {% endif %}
  1438.                                                             <img style=\"min-width: 50px;!important; margin-top:20px; margin-bottom: 20px;\" src=\"{{ asset(mainPhoto) | imagine_filter('smallCartProductCk2') }}\" alt=\"{{ productEntity.name }}\" class=\"product-image\">
  1439.                                                         </a>
  1440.                                                     </td>
  1441.                                                     <td class=\"product-price-col\" valign=\"middle\" style=\"width: 50%;\">
  1442.                                                         <div style=\"display: none\">
  1443.                                                             {{ form_row(product.product, {attr: {'class':'form-control', 'label': false}}) }}
  1444.                                                             {{ form_row(product.subProduct, {attr: {'class':'form-control', 'label': false}}) }}
  1445.                                                         </div>
  1446.                                                         <span class=\"product-price-special\">
  1447.                                                        <a href=\"{{ path('product', {'sub':subId, 'id':productEntity.id, 'slug':productEntity.slug}) }}\" style=\"font-weight: 600;\" class=\"product-title-cart\">
  1448.                                                            {% if subProduct %}
  1449.                                                                {{ subProduct.name }}
  1450.                                                            {% else %}
  1451.                                                                {{ productEntity.name }}
  1452.                                                            {% endif %}
  1453.                                                        </a>
  1454.                                                        <br/>
  1455.                                                        {% for cartProductEquipment in product.vars.value.equipments %}
  1456.                                                            <span style=\"font-size:12px\">
  1457.                                                                {{ cartProductEquipment.equipment.name }} <strong>+{{ cartProductEquipment.equipment.price|formatPrice(currency) }}</strong><br/>
  1458.                                                            </span>
  1459.                                                        {% endfor %}
  1460.                                                         {% if productEntity.shippingCategory and app.request.locale == 'pl' %}
  1461.                                                             {% set sc = productEntity.shippingCategory~'_store' %}
  1462.                                                             <a target=\"_blank\" href=\"{{ path('single_article', {'id':shoppingArticle.id, 'slug':shoppingArticle.slug}) }}\">
  1463.                                                                 <div style=\"margin-top:10px; font-weight: normal; text-align: left; font-size: 14px;\" class=\"step_txt\">
  1464.                                                                     {{ sc|trans }}
  1465.                                                                 </div>
  1466.                                                             </a>
  1467.                                                         {% endif %}
  1468.                                                    </span>
  1469.                                                         <div style=\"{% if product.vars.value.parameterValues|length %}margin-top:20px;{% endif %} font-size:13px;\">
  1470.                                                             <div style=\"display: none\">
  1471.                                                                 {% do product.variant.setRendered %}
  1472.                                                             </div>
  1473.                                                             <div>
  1474.                                                                 {% for value in product.vars.value.parameterValues %}
  1475.                                                                     <strong>{{ value.parameter.name }}</strong>: {{ value.parameterValue.name }}<br/>
  1476.                                                                 {% endfor %}
  1477.                                                             </div>
  1478.                                                         </div>
  1479.                                                     </td>
  1480.                                                     <td>
  1481.                                                         <div class=\"custom-quantity-input\">
  1482.                                                             {{ form_row(product.quantity, {attr: {'class':'input quantity-input commaReplacer', 'data-record':product.vars.value.id, 'data-product':productEntity.id, 'label': false}}) }}
  1483.                                                             {% set quantityTotal = quantityTotal + product.quantity.vars.value %}
  1484.                                                         </div>
  1485.                                                         <div class=\"loader_group\" style=\"text-align: center; margin-top:20px; margin-left:-8px; display: none\" id=\"quantity_loader_{{ productEntity.id }}\">
  1486.                                                             <i class=\"fas fa-spinner fa-spin\"></i>
  1487.                                                         </div>
  1488.                                                     </td>
  1489.                                                    <td class=\"product-price-col\" style=\"min-width: 110px;\">
  1490.                                                        <span class=\"product-price-special\">
  1491.                                                            {% if mainCategory.id is not defined %}
  1492.                                                                {% set mainCategory = productEntity.mainCategory %}
  1493.                                                            {% endif %}
  1494.                                                            {{ form_row(product.price, {attr: {'class':'form-control', 'label': false}}) }}
  1495.                                                            <div style=\"display: none\">
  1496.                                                                {{ form_row(product.currency, {attr: {'class':'form-control', 'label': false}}) }}
  1497.                                                            </div>
  1498.                                                            {% set currency = product.currency.vars.data %}
  1499.                                                        </span>
  1500.                                                        {% set subtotal = product.vars.value.getSubtotal %}
  1501.                                                        <span style=\"font-size:24px; font-weight: bold;\">
  1502.                                                            {{ subtotal|formatPrice(currency) }}
  1503.                                                        </span>
  1504.                                                     </td>
  1505.                                                     <td style=\"width:60px;\">
  1506.                                                         <a style=\"cursor: pointer; font-size:24px; font-weight: normal;\" class=\"close-button btn-cart-remove\" data-record=\"{{ product.vars.value.id }}\" data-product=\"{{ productEntity.id }}\"><i class=\"fa fa-times\"></i> </a>
  1507.                                                     </td>
  1508.                                                 </tr>
  1509.                                             {% endfor %}
  1510.                                             {% do form.products.setRendered %}
  1511.                                             </tbody>
  1512.                                         </table>
  1513.                                         <div class=\"columns\">
  1514.                                             <div class=\"column is-12\">
  1515.                                                 <h1 class=\"cart-right-side move-right-desktop\">
  1516.                                                     {{ 'choose_delivery'|trans }}
  1517.                                                 </h1>
  1518.                                             </div>
  1519.                                         </div>
  1520.                                         <div class=\"columns\">
  1521.                                             <div class=\"column is-12\">
  1522.                                                 <div id=\"deliveryMethodsContent\">
  1523.                                                     {% include 'frontend/cart/_deliveryMethods.html.twig' %}
  1524.                                                 </div>
  1525.                                             </div>
  1526.                                         </div>
  1527.                                         <div class=\"columns\">
  1528.                                             <div class=\"column is-12\">
  1529.                                                 <div class=\"columns\">
  1530.                                                     <div class=\"column is-9\">
  1531.                                                         <h1 class=\"cart-right-side move-right-desktop\">
  1532.                                                             {{ 'choose_payment'|trans({}, 'store') }}
  1533.                                                         </h1>
  1534.                                                     </div>
  1535.                                                 </div>
  1536.                                                 <div id=\"paymentMethodsContent\">
  1537.                                                 </div>
  1538.                                             </div>
  1539.                                         </div>
  1540.                                     </div>
  1541.                                     {% include 'frontend/components/_cartRightSide.twig' with {'disableActions':false} %}
  1542.                                 </div>
  1543.                                 <div class=\"columns\" style=\"margin-left:-10px; margin-bottom: 30px;\">
  1544.                                     <div class=\"column is-full\">
  1545.                                         <a href=\"{{ path('category', {'slug':mainCategory.slug, 'id':mainCategory.id}) }}\" style=\"font-weight: 500;\" class=\"button add-another-product-button button-back is-warning\"><i class=\"fa fa-arrow-left\"></i> &nbsp;  {{ 'add_another_products'|trans }}</a>
  1546.                                     </div>
  1547.                                 </div>
  1548.                                 {% do form.paymentMethod.setRendered %}
  1549.                                 {% do form.deliveryCountry.setRendered %}
  1550.                                 {% do form.deliveryMethod.setRendered %}
  1551.                                 {{ form_end(form) }}
  1552.                             </div>
  1553.                         </div>
  1554.                         {% if crossSelling|length %}
  1555.                             <h1 class=\"cart-right-side\" style=\"margin-bottom: 30px;\">
  1556.                                 {{ 'others_bought_also'|trans }}
  1557.                             </h1>
  1558.                             <div class=\"columns is-multiline is-mobile lista-produktow\" v-match-heights=\"{ el: [ '.no-description' ] }\">
  1559.                                 {% if crossSelling == 0 %}
  1560.                                 {% else %}
  1561.                                     {% for productData in crossSelling|slice(0,4) %}
  1562.                                         {% set product = productData[0] %}
  1563.                                         {% include 'frontend/components/smallProduct.html.twig' with {'isOneQuarter':1, 'product':product, 'productData':productData} %}
  1564.                                     {% endfor %}
  1565.                                 {% endif %}
  1566.                             </div>
  1567.                         {% endif %}
  1568.                     </div>
  1569.                 </section>
  1570.             </div>
  1571.         </div>
  1572.     {% else %}
  1573.         {% include 'frontend/components/notification.html.twig' %}
  1574.         {% if showNotification %}
  1575.             <div class=\"notification is-danger cart-error-notification\" style=\"text-align: center!important; margin:40px; display: block!important;\">
  1576.                 {{ 'products_deleted_info'|trans }}
  1577.             </div>
  1578.         {% endif %}
  1579.         <div class=\"review-comments\" style=\"margin-top:30px; margin-bottom:30px; text-align: center\">
  1580.             <h1>
  1581.                 {{ 'your_cart_is_empty'|trans }}
  1582.             </h1>
  1583.         </div>
  1584.     {% endif %}
  1585.     <div class=\"modal\" id=\"modal-choose-delivery\">
  1586.         <div class=\"modal-background\"></div>
  1587.         <div class=\"modal-content\">
  1588.             <div class=\"box\" style=\"padding:20px!important;\">
  1589.                 <p style=\"text-align: center\">
  1590.                     {{ 'please_choose_form_delivery_and_payment'|trans }}
  1591.                     <br/>
  1592.                     <button style=\"margin-top:20px;    color: #fff!important; border-color: transparent!important; font-weight: bold; font-size: 17px!important; background: #44bc42;\" class=\"button close-modal-custom is-success\">{{ 'ok_got_it'|trans }}</button>
  1593.                 </p>
  1594.             </div>
  1595.         </div>
  1596.         <button class=\"modal-close is-large\" aria-label=\"close\"></button>
  1597.     </div>
  1598.     {% set criteoCount = 0 %}
  1599.     {% if app.request.locale == 'pl' %}
  1600.         <script type=\"text/javascript\" src=\"//static.criteo.net/js/ld/ld.js\" async=\"true\"></script>
  1601.         <script type=\"text/javascript\">
  1602.             window.criteo_q = window.criteo_q || [];
  1603.             var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
  1604.             window.criteo_q.push(
  1605.                 { event: \"setAccount\", account: 36267 },
  1606.                 { event: \"setEmail\", email: \"{% if app.user.email is defined %} {{ app.user.email }} {% endif %}\" },
  1607.                 { event: \"setSiteType\", type: deviceType },
  1608.                 { event: \"viewBasket\", item: [
  1609.                             {% for item in cartProducts %}{% set criteoCount = criteoCount + 1 %}{% if criteoCount != countCriteoProducts %}{ id: \"{{ item.product.id }}\", price: {{ item.price }}, quantity: {{ item.quantity}} },{% else %}{ id: \"{{ item.product.getId }}\", price: {{ item.price }}, quantity: {{ item.quantity }} }{% endif %}{% endfor %}
  1610.                     ]}
  1611.             );
  1612.         </script>
  1613.         <script type=\"text/javascript\">
  1614.             var google_tag_params = {
  1615.                 ecomm_pagetype: 'cart'
  1616.             };
  1617.         </script>
  1618.     {% endif %}
  1619. {% endblock %}""frontend/cart/cart.html.twig""/home/users/ck_new/templates/frontend/cart/cart.html.twig");
  1620.     }
  1621. }