var/cache/dev/twig/f6/f645526d299a8a993b6598a81058db28c9f9a2867b8a46cbea39c72a305e2afe.php line 58

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_051810dd2e0a1027b0a65dc99cbcd2c5629d6b45fe4b17c2a101d06fb636b8c4 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.         echo "
  35. ";
  36.         // line 2
  37.         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.'2$this->source); })()), "isConfigurable", [], "method"falsefalsefalse2) && (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); })()), "getVariantSelectionMethod", [], "method"falsefalsefalse2) == "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.'2$this->source); })()), "variants", [], "any"falsefalsefalse2), "empty", [], "method"falsefalsefalse2))) {
  38.             // line 3
  39.             echo "    ";
  40.             $this->loadTemplate("@SyliusShop/Product/Show/_variantsPricing.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"3)->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.'3$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.'3$this->source); })()), "channel", [], "any"falsefalsefalse3))]));
  41.             // line 4
  42.             echo "    ";
  43.             $this->loadTemplate("@SyliusShop/Product/Show/_variantsDetails.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"4)->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.'4$this->source); })()), "variants", [], "any"falsefalsefalse4)]));
  44.         }
  45.         // line 6
  46.         echo "
  47. ";
  48.         // line 7
  49.         $this->loadTemplate("@SyliusShop/Product/Show/_inventory.html.twig""@SyliusShop/Product/Show/_variantSelection.html.twig"7)->display($context);
  50.         // line 8
  51.         echo "
  52. ";
  53.         
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.     }
  58.     public function getTemplateName()
  59.     {
  60.         return "@SyliusShop/Product/Show/_variantSelection.html.twig";
  61.     }
  62.     public function isTraitable()
  63.     {
  64.         return false;
  65.     }
  66.     public function getDebugInfo()
  67.     {
  68.         return array (  60 => 8,  58 => 7,  55 => 6,  51 => 4,  48 => 3,  46 => 2,  43 => 1,);
  69.     }
  70.     public function getSourceContext()
  71.     {
  72.         return new Source("
  73. {% if product.isConfigurable() and product.getVariantSelectionMethod() == 'match' and not product.variants.empty() %}
  74.     {% include '@SyliusShop/Product/Show/_variantsPricing.html.twig' with {'pricing': sylius_product_variant_prices(product, sylius.channel)} %}
  75.     {% include '@SyliusShop/Product/Show/_variantsDetails.html.twig' with {'variants': product.variants} %}
  76. {% endif %}
  77. {% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
  78. ""@SyliusShop/Product/Show/_variantSelection.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_variantSelection.html.twig");
  79.     }
  80. }