var/cache/dev/twig/c3/c3f42e2620e363b1e51ab78103d08682.php line 79

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* front/catalog/product/view/reference-line.html.twig */
  16. class __TwigTemplate_d38bc557af3a08df72f16f144037cc86 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/reference-line.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/reference-line.html.twig"));
  38. // line 1
  39. yield "<div class=\"reference\">
  40. ";
  41. // line 2
  42. $context["country"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 2, $this->source); })()), "getCustomerCountry", [], "method", false, false, false, 2);
  43. // line 3
  44. yield " <div class=\"reference-ctn\">
  45. ";
  46. // line 4
  47. if ((($tmp = CoreExtension::getAttribute($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); })()), "picture", [], "any", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  48. // line 5
  49. yield " <div class=\"img\">
  50. <a href=\"";
  51. // line 6
  52. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "picture", [], "any", false, false, false, 6), "webPath", [], "any", false, false, false, 6)), "product_zoom"), "html", null, true);
  53. yield "\" data-caption=\"";
  54. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($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); })()), "name", [], "any", false, false, false, 6), "html_attr");
  55. yield "\" data-fancybox=\"references\"><img src=\"";
  56. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "picture", [], "any", false, false, false, 6), "webPath", [], "any", false, false, false, 6)), "product_small"), "html", null, true);
  57. yield "\" alt=\"";
  58. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($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); })()), "name", [], "any", false, false, false, 6), "html_attr");
  59. yield "\"></a>
  60. </div>
  61. ";
  62. }
  63. // line 9
  64. yield " ";
  65. yield from $this->load("front/catalog/product/view/soleil.html.twig", 9)->unwrap()->yield($context);
  66. // line 10
  67. yield " <div class=\"stock-ctn\">
  68. ";
  69. // line 11
  70. yield from $this->load("front/catalog/product/view/stock.html.twig", 11)->unwrap()->yield($context);
  71. // line 12
  72. yield " ";
  73. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 12, $this->source); })()), "isAvailableForCountry", [(isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 12, $this->source); })())], "method", false, false, false, 12)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  74. // line 13
  75. yield " ";
  76. if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 13, $this->source); })()), "id", [], "any", false, false, false, 13), Twig\Extension\CoreExtension::keys((isset($context["discounts"]) || array_key_exists("discounts", $context) ? $context["discounts"] : (function () { throw new RuntimeError('Variable "discounts" does not exist.', 13, $this->source); })())))) {
  77. // line 14
  78. yield " ";
  79. $context["productsDiscounts"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["discounts"]) || array_key_exists("discounts", $context) ? $context["discounts"] : (function () { throw new RuntimeError('Variable "discounts" does not exist.', 14, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 14, $this->source); })()), "id", [], "any", false, false, false, 14), [], "any", false, false, false, 14);
  80. // line 15
  81. yield " ";
  82. $context['_parent'] = $context;
  83. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["productsDiscounts"]) || array_key_exists("productsDiscounts", $context) ? $context["productsDiscounts"] : (function () { throw new RuntimeError('Variable "productsDiscounts" does not exist.', 15, $this->source); })()));
  84. $context['loop'] = [
  85. 'parent' => $context['_parent'],
  86. 'index0' => 0,
  87. 'index' => 1,
  88. 'first' => true,
  89. ];
  90. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  91. $length = count($context['_seq']);
  92. $context['loop']['revindex0'] = $length - 1;
  93. $context['loop']['revindex'] = $length;
  94. $context['loop']['length'] = $length;
  95. $context['loop']['last'] = 1 === $length;
  96. }
  97. foreach ($context['_seq'] as $context["_key"] => $context["discount"]) {
  98. // line 16
  99. yield " ";
  100. yield from $this->load("front/catalog/product/view/discount.html.twig", 16)->unwrap()->yield(CoreExtension::merge($context, ["discount" => $context["discount"]]));
  101. // line 17
  102. yield " ";
  103. ++$context['loop']['index0'];
  104. ++$context['loop']['index'];
  105. $context['loop']['first'] = false;
  106. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  107. --$context['loop']['revindex0'];
  108. --$context['loop']['revindex'];
  109. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  110. }
  111. }
  112. $_parent = $context['_parent'];
  113. unset($context['_seq'], $context['_key'], $context['discount'], $context['_parent'], $context['loop']);
  114. $context = array_intersect_key($context, $_parent) + $_parent;
  115. // line 18
  116. yield " ";
  117. }
  118. // line 19
  119. yield " ";
  120. }
  121. // line 20
  122. yield " </div>
  123. <div class=\"name-ctn\">
  124. ";
  125. // line 22
  126. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 22, $this->source); })()), "parent", [], "any", false, false, false, 22)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  127. // line 23
  128. yield " <div class=\"name\">";
  129. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($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", false, false, false, 23), (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "parent", [], "any", false, false, false, 23), "name", [], "any", false, false, false, 23)) + 2), Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($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", false, false, false, 23))), "html", null, true);
  130. yield "</div>
  131. ";
  132. } else {
  133. // line 25
  134. yield " <div class=\"name\"></div>
  135. ";
  136. }
  137. // line 27
  138. yield " ";
  139. if ((($tmp = CoreExtension::getAttribute($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); })()), "isAvailableForCountry", [(isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 27, $this->source); })())], "method", false, false, false, 27)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  140. // line 28
  141. yield " ";
  142. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 28, $this->source); })()), "getPrice", [false, (isset($context["priceGroup"]) || array_key_exists("priceGroup", $context) ? $context["priceGroup"] : (function () { throw new RuntimeError('Variable "priceGroup" does not exist.', 28, $this->source); })())], "method", false, false, false, 28)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  143. // line 29
  144. yield " ";
  145. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 29, $this->source); })()), "canSeePrices", [], "method", false, false, false, 29) && !CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 29, $this->source); })()), "isStopped", [], "method", false, false, false, 29))) {
  146. // line 30
  147. yield " ";
  148. yield from $this->load("front/catalog/product/view/price-grid.html.twig", 30)->unwrap()->yield(CoreExtension::merge($context, ["priceGrid" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceGrids"]) || array_key_exists("priceGrids", $context) ? $context["priceGrids"] : (function () { throw new RuntimeError('Variable "priceGrids" does not exist.', 30, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 30, $this->source); })()), "id", [], "any", false, false, false, 30), [], "any", false, false, false, 30)]));
  149. // line 31
  150. yield " ";
  151. }
  152. // line 32
  153. yield " ";
  154. $context["currentQty"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["cartMgr"]) || array_key_exists("cartMgr", $context) ? $context["cartMgr"] : (function () { throw new RuntimeError('Variable "cartMgr" does not exist.', 32, $this->source); })()), "qtyInCart", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 32, $this->source); })())], "method", false, false, false, 32);
  155. // line 33
  156. yield " <div class=\"bt-cart ";
  157. yield ((((isset($context["currentQty"]) || array_key_exists("currentQty", $context) ? $context["currentQty"] : (function () { throw new RuntimeError('Variable "currentQty" does not exist.', 33, $this->source); })()) > 0)) ? ("in-cart") : (""));
  158. yield "\">
  159. ";
  160. // line 34
  161. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 34, $this->source); })()), "canSeePrices", [], "method", false, false, false, 34) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 34, $this->source); })()), "isAvailable", [], "method", false, false, false, 34))) {
  162. // line 35
  163. yield " ";
  164. yield from $this->load("front/cart/bt.html.twig", 35)->unwrap()->yield(CoreExtension::merge($context, ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 35, $this->source); })())]));
  165. // line 36
  166. yield " <div class=\"qty\">
  167. <a class=\"down\">-</a>
  168. <input type=\"text\" value=\"";
  169. // line 38
  170. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["currentQty"]) || array_key_exists("currentQty", $context) ? $context["currentQty"] : (function () { throw new RuntimeError('Variable "currentQty" does not exist.', 38, $this->source); })()), "html", null, true);
  171. yield "\" name=\"qty[";
  172. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 38, $this->source); })()), "id", [], "any", false, false, false, 38), "html", null, true);
  173. yield "]\" class=\"qty-value\" data-id=\"";
  174. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 38, $this->source); })()), "id", [], "any", false, false, false, 38), "html", null, true);
  175. yield "\">
  176. <a class=\"up\">+</a>
  177. </div>
  178. ";
  179. }
  180. // line 42
  181. yield " </div>
  182. ";
  183. } elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 43
  184. (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 43, $this->source); })()), "isExpert", [], "method", false, false, false, 43)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  185. // line 44
  186. yield " <p>";
  187. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Produit non disponible pour les Experts", [], "messages");
  188. yield "</p>
  189. ";
  190. }
  191. // line 46
  192. yield " ";
  193. }
  194. // line 47
  195. yield " </div>
  196. </div>
  197. ";
  198. // line 49
  199. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 49, $this->source); })()), "canSeePrices", [], "method", false, false, false, 49) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })()), "ecotax", [], "any", false, false, false, 49) > 0))) {
  200. // line 50
  201. yield " <div class=\"eco-tax\">";
  202. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("+ éco-participation", [], "messages");
  203. yield " : ";
  204. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\PriceExtension']->priceFilter(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 50, $this->source); })()), "ecotax", [], "any", false, false, false, 50)), "html", null, true);
  205. yield "</div>
  206. ";
  207. }
  208. // line 52
  209. yield " ";
  210. if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 52, $this->source); })()), "canSeePrices", [], "method", false, false, false, 52) && !CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 52, $this->source); })()), "isStopped", [], "method", false, false, false, 52)) && !CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 52, $this->source); })()), "isAvailable", [], "method", false, false, false, 52))) {
  211. // line 53
  212. yield " <div class=\"stock-alert\" style=\"height:30px; line-height:15px;\">
  213. <a data-product=\"";
  214. // line 54
  215. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 54, $this->source); })()), "id", [], "any", false, false, false, 54), "html", null, true);
  216. yield "\" data-customer=\"";
  217. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["customer"]) || array_key_exists("customer", $context) ? $context["customer"] : (function () { throw new RuntimeError('Variable "customer" does not exist.', 54, $this->source); })()), "id", [], "any", false, false, false, 54), "html", null, true);
  218. yield "\" data-language=\"";
  219. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "getLocale", [], "method", false, false, false, 54), "html", null, true);
  220. yield "\" class=\"bt-stock-alert\">";
  221. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Prévenez-moi par email dès que l\x27article est en stock.", [], "messages");
  222. yield "</a><br>
  223. </div>
  224. ";
  225. }
  226. // line 57
  227. yield "</div>";
  228. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  229. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230. yield from [];
  231. }
  232. /**
  233. * @codeCoverageIgnore
  234. */
  235. public function getTemplateName(): string
  236. {
  237. return "front/catalog/product/view/reference-line.html.twig";
  238. }
  239. /**
  240. * @codeCoverageIgnore
  241. */
  242. public function isTraitable(): bool
  243. {
  244. return false;
  245. }
  246. /**
  247. * @codeCoverageIgnore
  248. */
  249. public function getDebugInfo(): array
  250. {
  251. return array ( 236 => 57, 224 => 54, 221 => 53, 218 => 52, 210 => 50, 208 => 49, 204 => 47, 201 => 46, 195 => 44, 193 => 43, 190 => 42, 179 => 38, 175 => 36, 172 => 35, 170 => 34, 165 => 33, 162 => 32, 159 => 31, 156 => 30, 153 => 29, 150 => 28, 147 => 27, 143 => 25, 137 => 23, 135 => 22, 131 => 20, 128 => 19, 125 => 18, 111 => 17, 108 => 16, 90 => 15, 87 => 14, 84 => 13, 81 => 12, 79 => 11, 76 => 10, 73 => 9, 61 => 6, 58 => 5, 56 => 4, 53 => 3, 51 => 2, 48 => 1,);
  252. }
  253. public function getSourceContext(): Source
  254. {
  255. return new Source("<div class=\"reference\">
  256. {% set country = customerMgr.getCustomerCountry() %}
  257. <div class=\"reference-ctn\">
  258. {% if product.picture %}
  259. <div class=\"img\">
  260. <a href=\"{{ asset(product.picture.webPath) | imagine_filter(\x27product_zoom\x27) }}\" data-caption=\"{{ product.name|escape(\x27html_attr\x27) }}\" data-fancybox=\"references\"><img src=\"{{ asset(product.picture.webPath) | imagine_filter(\x27product_small\x27) }}\" alt=\"{{ product.name|e(\x27html_attr\x27) }}\"></a>
  261. </div>
  262. {% endif %}
  263. {% include \x27front/catalog/product/view/soleil.html.twig\x27 %}
  264. <div class=\"stock-ctn\">
  265. {% include \x27front/catalog/product/view/stock.html.twig\x27 %}
  266. {% if product.isAvailableForCountry(country) %}
  267. {% if product.id in discounts|keys %}
  268. {% set productsDiscounts = attribute(discounts, product.id) %}
  269. {% for discount in productsDiscounts %}
  270. {% include \x27front/catalog/product/view/discount.html.twig\x27 with {discount:discount} %}
  271. {% endfor %}
  272. {% endif %}
  273. {% endif %}
  274. </div>
  275. <div class=\"name-ctn\">
  276. {% if product.parent %}
  277. <div class=\"name\">{{ product.name|slice(product.parent.name|length+2, product.name|length) }}</div>
  278. {% else %}
  279. <div class=\"name\"></div>
  280. {% endif %}
  281. {% if product.isAvailableForCountry(country) %}
  282. {% if product.getPrice(false, priceGroup) %}
  283. {% if customerMgr.canSeePrices() and not product.isStopped() %}
  284. {% include \x27front/catalog/product/view/price-grid.html.twig\x27 with {priceGrid:attribute(priceGrids,product.id)} %}
  285. {% endif %}
  286. {% set currentQty = cartMgr.qtyInCart(product) %}
  287. <div class=\"bt-cart {{ currentQty > 0 ? \x27in-cart\x27 : \x27\x27}}\">
  288. {% if customerMgr.canSeePrices() and product.isAvailable() %}
  289. {% include \x27front/cart/bt.html.twig\x27 with {product:product} %}
  290. <div class=\"qty\">
  291. <a class=\"down\">-</a>
  292. <input type=\"text\" value=\"{{ currentQty }}\" name=\"qty[{{ product.id }}]\" class=\"qty-value\" data-id=\"{{ product.id }}\">
  293. <a class=\"up\">+</a>
  294. </div>
  295. {% endif %}
  296. </div>
  297. {% elseif customerMgr.isExpert() %}
  298. <p>{% trans %}Produit non disponible pour les Experts{% endtrans %}</p>
  299. {% endif %}
  300. {% endif %}
  301. </div>
  302. </div>
  303. {% if customerMgr.canSeePrices() and (product.ecotax > 0) %}
  304. <div class=\"eco-tax\">{% trans %}+ éco-participation{% endtrans %} : {{ product.ecotax|price }}</div>
  305. {% endif %}
  306. {% if customerMgr.canSeePrices() and not product.isStopped() and not product.isAvailable() %}
  307. <div class=\"stock-alert\" style=\"height:30px; line-height:15px;\">
  308. <a data-product=\"{{ product.id }}\" data-customer=\"{{ customer.id }}\" data-language=\"{{ app.request.getLocale() }}\" class=\"bt-stock-alert\">{% trans %}Prévenez-moi par email dès que l\x27article est en stock.{% endtrans %}</a><br>
  309. </div>
  310. {% endif %}
  311. </div>", "front/catalog/product/view/reference-line.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/product/view/reference-line.html.twig");
  312. }
  313. }