var/cache/dev/twig/85/85e8fd2b1ca51e54b483b44000f9b955.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_39bb715be25cb1c360cc9a38a4194e15 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/Show/_variantSelection.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/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.         $this->loadTemplate("@SyliusShop/Product/Show/_inventory.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"6)->display($context);
  47.         // line 7
  48.         echo "
  49. ";
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     public function getTemplateName()
  56.     {
  57.         return "@SyliusShop/Product/Show/_variantSelection.html.twig";
  58.     }
  59.     public function isTraitable()
  60.     {
  61.         return false;
  62.     }
  63.     public function getDebugInfo()
  64.     {
  65.         return array (  57 => 7,  55 => 6,  52 => 5,  48 => 3,  45 => 2,  43 => 1,);
  66.     }
  67.     public function getSourceContext()
  68.     {
  69.         return new Source("{% if product.isConfigurable() and product.getVariantSelectionMethod() == 'match' and not product.variants.empty() %}
  70.     {% include '@SyliusShop/Product/Show/_variantsPricing.html.twig' with {'pricing': sylius_product_variant_prices(product, sylius.channel)} %}
  71.     {% include '@SyliusShop/Product/Show/_variantsDetails.html.twig' with {'variants': product.variants} %}
  72. {% endif %}
  73. {% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
  74. ""@SyliusShop/Product/Show/_variantSelection.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_variantSelection.html.twig");
  75.     }
  76. }