var/cache/dev/twig/0d/0d10cabd34ab396001485af6f09efad4.php line 218

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/Product/Box/_content.html.twig */
  14. class __TwigTemplate_d672d9e3d08768ee560ad839c5e05812 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Box/_content.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Box/_content.html.twig"));
  33.         // line 1
  34.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@SyliusShop/Product/Box/_content.html.twig"1)->unwrap();
  35.         // line 2
  36.         $context["variant"] = $this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'2$this->source); })()));
  37.         // line 3
  38.         $context["productIsInWishlist"] = false;
  39.         // line 4
  40.         if (( !array_key_exists("wishlist"$context) || (null === (isset($context["wishlist"]) || array_key_exists("wishlist"$context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.'4$this->source); })())))) {
  41.             // line 5
  42.             echo "    ";
  43.             $context["wishlist"] = $this->extensions['App\Twig\Extensions\Wishlist\WishlistExtension']->getWishlist();
  44.         }
  45.         // line 7
  46.         if ((array_key_exists("wishlist"$context) && (isset($context["wishlist"]) || array_key_exists("wishlist"$context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.'7$this->source); })()))) {
  47.             // line 8
  48.             echo "    ";
  49.             $context["productIsInWishlist"] = twig_get_attribute($this->env$this->source, (isset($context["wishlist"]) || array_key_exists("wishlist"$context) ? $context["wishlist"] : (function () { throw new RuntimeError('Variable "wishlist" does not exist.'8$this->source); })()), "hasProduct", [=> (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'8$this->source); })())], "method"falsefalsefalse8);
  50.         }
  51.         // line 10
  52.         if ( !(null === (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'10$this->source); })()))) {
  53.             // line 11
  54.             echo "    ";
  55.             $context["channelpricing"] = twig_get_attribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'11$this->source); })()), "getChannelPricingForChannel", [=> twig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'11$this->source); })()), "channel", [], "any"falsefalsefalse11)], "method"falsefalsefalse11);
  56.             // line 12
  57.             echo "    ";
  58.             $context["percentage"] = twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'12$this->source); })()), "getDiscountedPercentage", [], "any"falsefalsefalse12);
  59.         }
  60.         // line 14
  61.         $context["stockAvailable"] = false;
  62.         // line 15
  63.         $context['_parent'] = $context;
  64.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'15$this->source); })()), "variants", [], "any"falsefalsefalse15));
  65.         foreach ($context['_seq'] as $context["_key"] => $context["productVariant"]) {
  66.             // line 16
  67.             echo "    ";
  68.             if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()($context["productVariant"])) {
  69.                 // line 17
  70.                 echo "        ";
  71.                 $context["stockAvailable"] = true;
  72.                 // line 18
  73.                 echo "    ";
  74.             }
  75.         }
  76.         $_parent $context['_parent'];
  77.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['productVariant'], $context['_parent'], $context['loop']);
  78.         $context array_intersect_key($context$_parent) + $_parent;
  79.         // line 20
  80.         echo "<article class=\"articleBit h-100\" ";
  81.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product");
  82.         echo ">
  83.     <div class=\"bg-art-w  h-100 d-flex flex-column\">
  84.         <div class=\"articleBit-ima\">
  85.             <a href=\"";
  86.         // line 23
  87.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'23$this->source); })()), "slug", [], "any"falsefalsefalse23), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'23$this->source); })()), "translation", [], "any"falsefalsefalse23), "locale", [], "any"falsefalsefalse23)]), "html"nulltrue);
  88.         echo "\" title=\"";
  89.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'23$this->source); })()), "name", [], "any"falsefalsefalse23), "html"nulltrue);
  90.         echo "\">
  91.                 ";
  92.         // line 24
  93.         $this->loadTemplate("@SyliusShop/Product/_mainImage.html.twig""@SyliusShop/Product/Box/_content.html.twig"24)->display(twig_array_merge($context, ["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'24$this->source); })()), "class" => "card-img-top"]));
  94.         // line 25
  95.         echo "            </a>
  96.             ";
  97.         // line 26
  98.         if (( !(null === twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'26$this->source); })()), "callouts", [], "any"falsefalsefalse26)) && (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'26$this->source); })()), "callouts", [], "any"falsefalsefalse26)) > 0))) {
  99.             // line 27
  100.             echo "                ";
  101.             $this->loadTemplate("@SetonoSyliusCalloutPlugin/Shop/Product/Callout/_callouts.html.twig""@SyliusShop/Product/Box/_content.html.twig"27)->display(twig_array_merge($context, ["callouts" => $this->extensions['Setono\SyliusCalloutPlugin\Twig\Extension\CalloutExtension']->filterCallouts(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'27$this->source); })()), "callouts", [], "any"falsefalsefalse27)), "spot" => "box"]));
  102.             // line 28
  103.             echo "            ";
  104.         }
  105.         // line 29
  106.         echo "            ";
  107.         if ( !(null === (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'29$this->source); })()))) {
  108.             // line 30
  109.             echo "                ";
  110.             if (((twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'30$this->source); })()), "discountedPrice", [], "any"falsefalsefalse30) && (twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'30$this->source); })()), "discountedPrice", [], "any"falsefalsefalse30) != twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'30$this->source); })()), "price", [], "any"falsefalsefalse30))) && $this->extensions['App\Twig\Extensions\Channel\ChannelPricingExtension']->checkPromotionPrice((isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'30$this->source); })())))) {
  111.                 // line 31
  112.                 echo "                    <div class=\"picto-promo\"><span data-js-product-percentage>-";
  113.                 echo twig_escape_filter($this->envtwig_round((isset($context["percentage"]) || array_key_exists("percentage"$context) ? $context["percentage"] : (function () { throw new RuntimeError('Variable "percentage" does not exist.'31$this->source); })()), 0), "html"nulltrue);
  114.                 echo "%</span></div>
  115.                 ";
  116.             }
  117.             // line 33
  118.             echo "            ";
  119.         }
  120.         // line 34
  121.         echo "
  122.             ";
  123.         // line 35
  124.         if ((array_key_exists("product"$context) && twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'35$this->source); })()), "brand", [], "any"falsefalsefalse35))) {
  125.             // line 36
  126.             echo "                ";
  127.             if ((twig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'36$this->source); })()), "brand", [], "any"falsefalsefalse36), "images", [], "any"falsefalsefalse36)) != false)) {
  128.                 // line 37
  129.                 echo "                    ";
  130.                 $context["path"] = $this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_first($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'37$this->source); })()), "brand", [], "any"falsefalsefalse37), "images", [], "any"falsefalsefalse37)), "path", [], "any"falsefalsefalse37), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'37$this->source); })()), "sylius_shop_product_original")) : ("sylius_shop_product_original")));
  131.                 // line 38
  132.                 echo "                    <div class=\"brand-logo\"><img src=\"";
  133.                 echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'38$this->source); })()), "html"nulltrue);
  134.                 echo "\" ";
  135.                 echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("main-image");
  136.                 echo "  class=\"\" /></div>
  137.                 ";
  138.             }
  139.             // line 40
  140.             echo "            ";
  141.         }
  142.         // line 41
  143.         echo "            <a href=\"";
  144.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'41$this->source); })()), "slug", [], "any"falsefalsefalse41), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'41$this->source); })()), "translation", [], "any"falsefalsefalse41), "locale", [], "any"falsefalsefalse41)]), "html"nulltrue);
  145.         echo "\" class=\"btn-details-hover\" title=\"\"><span>";
  146.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.details"), "html"nulltrue);
  147.         echo "</span></a>
  148.             
  149.             ";
  150.         // line 43
  151.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'43$this->source); })()), "user", [], "any"falsefalsefalse43)) {
  152.             // line 44
  153.             echo "                <div class=\"eti-fav categ-fav\" data-id=\"";
  154.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'44$this->source); })()), "id", [], "any"falsefalsefalse44), "html"nulltrue);
  155.             echo "\">
  156.                     ";
  157.             // line 46
  158.             echo "                    <a data-remove-url=\"";
  159.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_wishlist_plugin_shop_wishlist_remove_product", ["productId" => twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'46$this->source); })()), "id", [], "any"falsefalsefalse46)]), "html"nulltrue);
  160.             echo "\" title=\"";
  161.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.add_to_wishlist"), "html"nulltrue);
  162.             echo "\" ";
  163.             if ((isset($context["productIsInWishlist"]) || array_key_exists("productIsInWishlist"$context) ? $context["productIsInWishlist"] : (function () { throw new RuntimeError('Variable "productIsInWishlist" does not exist.'46$this->source); })())) {
  164.                 echo "class=\"addfav toggle-fav myfavoris\"";
  165.             } else {
  166.                 echo "class=\"addfav toggle-fav addfav-link\"";
  167.             }
  168.             echo " data-option=\"";
  169.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'46$this->source); })()), "id", [], "any"falsefalsefalse46), "html"nulltrue);
  170.             echo "\" data-url=\"";
  171.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_wishlist_plugin_shop_wishlist_add_product", ["productId" => twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'46$this->source); })()), "id", [], "any"falsefalsefalse46)]), "html"nulltrue);
  172.             echo "\"></a>
  173.                     <span class=\"c1-a\"><img src=\"";
  174.             // line 47
  175.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/icon_dejafav.svg""bootstrapTheme"), "html"nulltrue);
  176.             echo "\"></span>
  177.                     <span class=\"c2-a\"><img src=\"";
  178.             // line 48
  179.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/icon_dejafav.svg""bootstrapTheme"), "html"nulltrue);
  180.             echo "\"></span>
  181.                 </div>
  182.             ";
  183.         }
  184.         // line 51
  185.         echo "            
  186.         </div>
  187.         <div class=\"flex-grow-l position-relative_  d-flex flex-column \">
  188.             <div class=\"max-art flex-grow-l d-flex flex-column justify-content-between \">
  189.                 <h3 class=\"articleBit-lib\" ";
  190.         // line 56
  191.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-name"twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'56$this->source); })()), "name", [], "any"falsefalsefalse56));
  192.         echo ">
  193.                     <a href=\"";
  194.         // line 57
  195.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'57$this->source); })()), "slug", [], "any"falsefalsefalse57), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'57$this->source); })()), "translation", [], "any"falsefalsefalse57), "locale", [], "any"falsefalsefalse57)]), "html"nulltrue);
  196.         echo "\">";
  197.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'57$this->source); })()), "name", [], "any"falsefalsefalse57), "html"nulltrue);
  198.         echo "</a>
  199.                 </h3>
  200.                 <div class=\"articleBit-desc  pt-1\">
  201.                     Ref: ";
  202.         // line 60
  203.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'60$this->source); })()), "code", [], "any"falsefalsefalse60), "html"nulltrue);
  204.         echo "
  205.                 </div>
  206.                 ";
  207.         // line 62
  208.         if ($this->env->getFunction('sylius_inventory_is_available')->getCallable()((isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'62$this->source); })()))) {
  209.             // line 63
  210.             echo "                    ";
  211.             $context["stock_product"] = (twig_get_attribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'63$this->source); })()), "OnHand", [], "any"falsefalsefalse63) - twig_get_attribute($this->env$this->source, (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'63$this->source); })()), "OnHold", [], "any"falsefalsefalse63));
  212.             // line 64
  213.             echo "                    <div class=\"color-primary-s pt-1 text-lowercase font-14\">
  214.                         ";
  215.             // line 65
  216.             echo twig_escape_filter($this->env, (isset($context["stock_product"]) || array_key_exists("stock_product"$context) ? $context["stock_product"] : (function () { throw new RuntimeError('Variable "stock_product" does not exist.'65$this->source); })()), "html"nulltrue);
  217.             echo " ";
  218.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.in_stock"), "html"nulltrue);
  219.             echo "
  220.                     
  221.                     </div>
  222.                 ";
  223.         } else {
  224.             // line 69
  225.             echo "                    ";
  226.             if ( !twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'69$this->source); })()), "user", [], "any"falsefalsefalse69)) {
  227.                 // line 70
  228.                 echo "                        <div class=\"text-danger pt-1 \">";
  229.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.out_of_stock"), "html"nulltrue);
  230.                 echo "</div>
  231.                     ";
  232.             }
  233.             // line 72
  234.             echo "                ";
  235.         }
  236.         // line 73
  237.         echo "            </div>
  238.             <div class=\"row no-gutters align-items-center pt-2 flex-md-nowrap\">
  239.                 <div class=\"articleBit-price col  mb-md-0 d-block\">
  240.                     ";
  241.         // line 76
  242.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'76$this->source); })()), "user", [], "any"falsefalsefalse76)) {
  243.             // line 77
  244.             echo "                        ";
  245.             if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'77$this->source); })()), "variants", [], "any"falsefalsefalse77), "empty", [], "method"falsefalsefalse77)) {
  246.                 // line 78
  247.                 echo "                            <div class=\"price-old\" data-js-product-original-price   ";
  248.                 echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-price"twig_call_macro($macros["money"], "macro_calculatePrice", [$this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'78$this->source); })()))], 78$context$this->getSourceContext()));
  249.                 echo ">
  250.                                 ";
  251.                 // line 79
  252.                 if (((twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'79$this->source); })()), "discountedPrice", [], "any"falsefalsefalse79) && (twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'79$this->source); })()), "discountedPrice", [], "any"falsefalsefalse79) != twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'79$this->source); })()), "price", [], "any"falsefalsefalse79))) && $this->extensions['App\Twig\Extensions\Channel\ChannelPricingExtension']->checkPromotionPrice((isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'79$this->source); })())))) {
  253.                     // line 80
  254.                     echo "                                    ";
  255.                     echo twig_call_macro($macros["money"], "macro_convertAndFormat", [twig_get_attribute($this->env$this->source, (isset($context["channelpricing"]) || array_key_exists("channelpricing"$context) ? $context["channelpricing"] : (function () { throw new RuntimeError('Variable "channelpricing" does not exist.'80$this->source); })()), "price", [], "any"falsefalsefalse80)], 80$context$this->getSourceContext());
  256.                     echo "  <small>";
  257.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.incl_tax"), "html"nulltrue);
  258.                     echo "</small>
  259.                                 ";
  260.                 }
  261.                 // line 82
  262.                 echo "                            </div>
  263.                             <strong class=\"price-promo\"  ";
  264.                 // line 83
  265.                 echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("product-price");
  266.                 echo "> ";
  267.                 echo twig_call_macro($macros["money"], "macro_calculatePrice", [$this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'83$this->source); })()))], 83$context$this->getSourceContext());
  268.                 echo " <small>";
  269.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.incl_tax"), "html"nulltrue);
  270.                 echo "</small></strong>
  271.                             
  272.                         ";
  273.             }
  274.             // line 86
  275.             echo "                    ";
  276.         }
  277.         // line 87
  278.         echo "                </div>
  279.                 ";
  280.         // line 88
  281.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'88$this->source); })()), "user", [], "any"falsefalsefalse88)) {
  282.             // line 89
  283.             echo "                    <div class=\"col-lg-auto pt-lg-0 pt-3 col-12\">
  284.                         ";
  285.             // line 90
  286.             if ( !(null === (isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'90$this->source); })()))) {
  287.                 // line 91
  288.                 echo "                            ";
  289.                 if ( !$this->env->getFunction('sylius_inventory_is_available')->getCallable()((isset($context["variant"]) || array_key_exists("variant"$context) ? $context["variant"] : (function () { throw new RuntimeError('Variable "variant" does not exist.'91$this->source); })()))) {
  290.                     // line 92
  291.                     echo "
  292.                                 <div class=\"text-danger\">";
  293.                     // line 93
  294.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.out_of_stock"), "html"nulltrue);
  295.                     echo "</div>
  296.                             ";
  297.                 } else {
  298.                     // line 96
  299.                     echo "                                ";
  300.                     // line 97
  301.                     echo "                                    ";
  302.                     $this->loadTemplate("@SyliusShop/Product/Show/_addToCartBox.html.twig""@SyliusShop/Product/Box/_content.html.twig"97)->display(twig_array_merge($context, ["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'97$this->source); })())]));
  303.                     // line 98
  304.                     echo "                                ";
  305.                     // line 99
  306.                     echo "                            ";
  307.                 }
  308.                 // line 100
  309.                 echo "                        ";
  310.             }
  311.             // line 101
  312.             echo "                    </div>
  313.                 ";
  314.         }
  315.         // line 103
  316.         echo "            </div>
  317.         </div>
  318.     </div>
  319. </article>
  320. ";
  321.         
  322.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  323.         
  324.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  325.     }
  326.     public function getTemplateName()
  327.     {
  328.         return "@SyliusShop/Product/Box/_content.html.twig";
  329.     }
  330.     public function isTraitable()
  331.     {
  332.         return false;
  333.     }
  334.     public function getDebugInfo()
  335.     {
  336.         return array (  327 => 103,  323 => 101,  320 => 100,  317 => 99,  315 => 98,  312 => 97,  310 => 96,  304 => 93,  301 => 92,  298 => 91,  296 => 90,  293 => 89,  291 => 88,  288 => 87,  285 => 86,  275 => 83,  272 => 82,  264 => 80,  262 => 79,  257 => 78,  254 => 77,  252 => 76,  247 => 73,  244 => 72,  238 => 70,  235 => 69,  226 => 65,  223 => 64,  220 => 63,  218 => 62,  213 => 60,  205 => 57,  201 => 56,  194 => 51,  188 => 48,  184 => 47,  167 => 46,  162 => 44,  160 => 43,  152 => 41,  149 => 40,  141 => 38,  138 => 37,  135 => 36,  133 => 35,  130 => 34,  127 => 33,  121 => 31,  118 => 30,  115 => 29,  112 => 28,  109 => 27,  107 => 26,  104 => 25,  102 => 24,  96 => 23,  89 => 20,  82 => 18,  79 => 17,  76 => 16,  72 => 15,  70 => 14,  66 => 12,  63 => 11,  61 => 10,  57 => 8,  55 => 7,  51 => 5,  49 => 4,  47 => 3,  45 => 2,  43 => 1,);
  337.     }
  338.     public function getSourceContext()
  339.     {
  340.         return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  341. {% set variant = product|sylius_resolve_variant %}
  342. {% set productIsInWishlist = false %}
  343. {% if wishlist is not defined or wishlist is null %}
  344.     {% set wishlist = app_get_wishlist() %}
  345. {% endif %}
  346. {% if wishlist is defined and wishlist %}
  347.     {% set productIsInWishlist = wishlist.hasProduct(product) %}
  348. {% endif %}
  349. {% if variant is not null %}
  350.     {% set channelpricing = variant.getChannelPricingForChannel(sylius.channel) %}
  351.     {% set percentage = channelpricing.getDiscountedPercentage %}
  352. {% endif %}
  353. {% set stockAvailable = false %}
  354. {% for productVariant in product.variants %}
  355.     {% if sylius_inventory_is_available(productVariant)  %}
  356.         {% set stockAvailable = true %}
  357.     {% endif %}
  358. {% endfor %}
  359. <article class=\"articleBit h-100\" {{ sylius_test_html_attribute('product') }}>
  360.     <div class=\"bg-art-w  h-100 d-flex flex-column\">
  361.         <div class=\"articleBit-ima\">
  362.             <a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\" title=\"{{ product.name }}\">
  363.                 {% include '@SyliusShop/Product/_mainImage.html.twig' with {'product': product, 'class': 'card-img-top'}  %}
  364.             </a>
  365.             {% if product.callouts is not null and product.callouts|length > 0 %}
  366.                 {% include \"@SetonoSyliusCalloutPlugin/Shop/Product/Callout/_callouts.html.twig\" with {'callouts' : product.callouts|setono_callouts, 'spot': \"box\"} %}
  367.             {% endif %}
  368.             {% if variant is not null %}
  369.                 {% if channelpricing.discountedPrice and channelpricing.discountedPrice != channelpricing.price and channelpricing|app_check_promotion_price %}
  370.                     <div class=\"picto-promo\"><span data-js-product-percentage>-{{ percentage|round(0) }}%</span></div>
  371.                 {% endif %}
  372.             {% endif %}
  373.             {% if product is defined and product.brand %}
  374.                 {% if product.brand.images|first != false %}
  375.                     {% set path =  product.brand.images|first.path|imagine_filter(filter|default('sylius_shop_product_original')) %}
  376.                     <div class=\"brand-logo\"><img src=\"{{ path }}\" {{ sylius_test_html_attribute('main-image') }}  class=\"\" /></div>
  377.                 {% endif %}
  378.             {% endif %}
  379.             <a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\" class=\"btn-details-hover\" title=\"\"><span>{{'sylius.ui.details'|trans}}</span></a>
  380.             
  381.             {% if app.user %}
  382.                 <div class=\"eti-fav categ-fav\" data-id=\"{{product.id}}\">
  383.                     {#<a data-remove-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_remove_product_variant', { wishlistId: wishlist.id, variantId: variant.id}) }}\" title=\"{{ 'app.ui.add_to_wishlist'|trans }}\" {% if productIsInWishlist %}class=\"addfav toggle-fav myfavoris\"{% else %}class=\"addfav toggle-fav addfav-link\"{% endif %} data-option=\"{{ product.id }}\" data-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_add_product', {'productId': product.id}) }}\"></a>#}
  384.                     <a data-remove-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_remove_product', {'productId': product.id}) }}\" title=\"{{ 'app.ui.add_to_wishlist'|trans }}\" {% if productIsInWishlist %}class=\"addfav toggle-fav myfavoris\"{% else %}class=\"addfav toggle-fav addfav-link\"{% endif %} data-option=\"{{ product.id }}\" data-url=\"{{ path('bitbag_sylius_wishlist_plugin_shop_wishlist_add_product', {'productId': product.id}) }}\"></a>
  385.                     <span class=\"c1-a\"><img src=\"{{ asset('images/icon_dejafav.svg', 'bootstrapTheme') }}\"></span>
  386.                     <span class=\"c2-a\"><img src=\"{{ asset('images/icon_dejafav.svg', 'bootstrapTheme') }}\"></span>
  387.                 </div>
  388.             {% endif %}
  389.             
  390.         </div>
  391.         <div class=\"flex-grow-l position-relative_  d-flex flex-column \">
  392.             <div class=\"max-art flex-grow-l d-flex flex-column justify-content-between \">
  393.                 <h3 class=\"articleBit-lib\" {{ sylius_test_html_attribute('product-name', product.name) }}>
  394.                     <a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\">{{ product.name }}</a>
  395.                 </h3>
  396.                 <div class=\"articleBit-desc  pt-1\">
  397.                     Ref: {{ product.code }}
  398.                 </div>
  399.                 {% if  sylius_inventory_is_available(variant) %}
  400.                     {% set stock_product = variant.OnHand - variant.OnHold %}
  401.                     <div class=\"color-primary-s pt-1 text-lowercase font-14\">
  402.                         {{stock_product}} {{'app.product.in_stock'|trans}}
  403.                     
  404.                     </div>
  405.                 {% else %}
  406.                     {% if not app.user %}
  407.                         <div class=\"text-danger pt-1 \">{{ 'app.product.out_of_stock' | trans }}</div>
  408.                     {% endif %}
  409.                 {% endif %}
  410.             </div>
  411.             <div class=\"row no-gutters align-items-center pt-2 flex-md-nowrap\">
  412.                 <div class=\"articleBit-price col  mb-md-0 d-block\">
  413.                     {% if app.user%}
  414.                         {% if not product.variants.empty() %}
  415.                             <div class=\"price-old\" data-js-product-original-price   {{ sylius_test_html_attribute('product-price', money.calculatePrice(product|sylius_resolve_variant)) }}>
  416.                                 {% if channelpricing.discountedPrice and channelpricing.discountedPrice != channelpricing.price and channelpricing|app_check_promotion_price %}
  417.                                     {{ money.convertAndFormat(channelpricing.price )}}  <small>{{'app.ui.incl_tax'|trans}}</small>
  418.                                 {% endif %}
  419.                             </div>
  420.                             <strong class=\"price-promo\"  {{ sylius_test_html_attribute('product-price') }}> {{ money.calculatePrice(product|sylius_resolve_variant) }} <small>{{'app.ui.incl_tax'|trans}}</small></strong>
  421.                             
  422.                         {% endif %}
  423.                     {% endif %}
  424.                 </div>
  425.                 {% if app.user %}
  426.                     <div class=\"col-lg-auto pt-lg-0 pt-3 col-12\">
  427.                         {% if variant is not null %}
  428.                             {% if not sylius_inventory_is_available(variant) %}
  429.                                 <div class=\"text-danger\">{{ 'app.product.out_of_stock' | trans }}</div>
  430.                             {% else %}
  431.                                 {#{% if product.retired == false %}#}
  432.                                     {% include '@SyliusShop/Product/Show/_addToCartBox.html.twig' with {'product': product } %}
  433.                                 {#{% endif %}#}
  434.                             {% endif %}
  435.                         {% endif %}
  436.                     </div>
  437.                 {% endif %}
  438.             </div>
  439.         </div>
  440.     </div>
  441. </article>
  442. ""@SyliusShop/Product/Box/_content.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Box/_content.html.twig");
  443.     }
  444. }