var/cache/dev/twig/58/58fcdecfa3fc8bfd0558eb5be1c81189.php line 52

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_13b74a303586691ff8ad2f202136b169 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); })()), "enabledVariants", [], "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)), "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.'2$this->source); })()), "enabledVariants", [], "any"falsefalsefalse2)]));
  38.         }
  39.         // line 4
  40.         echo "
  41. ";
  42.         // line 5
  43.         $this->loadTemplate("@SyliusShop/Product/Show/_inventory.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"5)->display($context);
  44.         // line 6
  45.         echo "
  46. <div class=\"ui hidden divider\"></div>
  47. ";
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     public function getTemplateName()
  54.     {
  55.         return "@SyliusShop/Product/Show/_variantSelection.html.twig";
  56.     }
  57.     public function isTraitable()
  58.     {
  59.         return false;
  60.     }
  61.     public function getDebugInfo()
  62.     {
  63.         return array (  54 => 6,  52 => 5,  49 => 4,  45 => 2,  43 => 1,);
  64.     }
  65.     public function getSourceContext()
  66.     {
  67.         return new Source("{% if product.isConfigurable() and product.getVariantSelectionMethod() == 'match' and not product.enabledVariants.empty() %}
  68.     {% include '@SyliusShop/Product/Show/_variantsPricing.html.twig' with {'pricing': sylius_product_variant_prices(product, sylius.channel), 'variants': product.enabledVariants} %}
  69. {% endif %}
  70. {% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
  71. <div class=\"ui hidden divider\"></div>
  72. ""@SyliusShop/Product/Show/_variantSelection.html.twig""/srv/open_marketplace/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/_variantSelection.html.twig");
  73.     }
  74. }