var/cache/dev/twig/6a/6a7ad8351df24424dbd873917001a2a18b3582f5f0f18cffcea88c6f82e3d382.php line 33

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/Show/_variantSelection.html.twig */
  14. class __TwigTemplate_7ca19e0ec9f8465a9be55bb903ac1717e17b06fbd474fcdef939289da3209eae 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_variantSelection.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_variantSelection.html.twig"));
  33.         // line 1
  34.         if (((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.'1$this->source); })()), "isConfigurable", [], "method"falsefalsefalse1) && (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.'1$this->source); })()), "getVariantSelectionMethod", [], "method"falsefalsefalse1) == "match")) &&  !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.'1$this->source); })()), "variants", [], "any"falsefalsefalse1), "empty", [], "method"falsefalsefalse1))) {
  35.             // line 2
  36.             echo "    ";
  37.             $this->loadTemplate("@SyliusShop/Product/Show/_variantsPricing.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"2)->display(twig_array_merge($context, ["pricing" => $this->env->getFunction('sylius_product_variant_prices')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'2$this->source); })()), 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.'2$this->source); })()), "channel", [], "any"falsefalsefalse2))]));
  38.             // line 3
  39.             echo "    ";
  40.             $this->loadTemplate("@SyliusShop/Product/Show/_variantsDetails.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"3)->display(twig_array_merge($context, ["variants" => 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.'3$this->source); })()), "variants", [], "any"falsefalsefalse3)]));
  41.         }
  42.         // line 5
  43.         echo "
  44. ";
  45.         // line 6
  46.         if ((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.'6$this->source); })()), "isSimple", [], "any"falsefalsefalse6) &&  !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.'6$this->source); })()), "variants", [], "any"falsefalsefalse6), "empty", [], "method"falsefalsefalse6))) {
  47.             // line 7
  48.             echo "    ";
  49.             $this->loadTemplate("@SyliusShop/Product/Show/_variantsDetails.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"7)->display(twig_array_merge($context, ["variants" => 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.'7$this->source); })()), "variants", [], "any"falsefalsefalse7)]));
  50.         }
  51.         // line 9
  52.         echo "
  53. ";
  54.         // line 10
  55.         $this->loadTemplate("@SyliusShop/Product/Show/_inventory.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"10)->display($context);
  56.         // line 11
  57.         echo "
  58. ";
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.     }
  64.     public function getTemplateName()
  65.     {
  66.         return "@SyliusShop/Product/Show/_variantSelection.html.twig";
  67.     }
  68.     public function isTraitable()
  69.     {
  70.         return false;
  71.     }
  72.     public function getDebugInfo()
  73.     {
  74.         return array (  66 => 11,  64 => 10,  61 => 9,  57 => 7,  55 => 6,  52 => 5,  48 => 3,  45 => 2,  43 => 1,);
  75.     }
  76.     public function getSourceContext()
  77.     {
  78.         return new Source("{% if product.isConfigurable() and product.getVariantSelectionMethod() == 'match' and not product.variants.empty() %}
  79.     {% include '@SyliusShop/Product/Show/_variantsPricing.html.twig' with {'pricing': sylius_product_variant_prices(product, sylius.channel)} %}
  80.     {% include '@SyliusShop/Product/Show/_variantsDetails.html.twig' with {'variants': product.variants} %}
  81. {% endif %}
  82. {% if product.isSimple and not product.variants.empty() %}
  83.     {% include '@SyliusShop/Product/Show/_variantsDetails.html.twig' with {'variants': product.variants} %}
  84. {% endif %}
  85. {% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
  86. ""@SyliusShop/Product/Show/_variantSelection.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_variantSelection.html.twig");
  87.     }
  88. }