custom/plugins/XantenLastSeenProduct/src/Resources/views/storefront/layout/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  2. {% block layout_head_javascript_tracking %}
  3.     {{ parent() }}
  4.     {% if controllerName == 'Product' %}
  5.         <script>
  6.             window.lastSeenProductId = '{{ page.product.id }}';
  7.             window.lastSeenProductAddRoute = '{{ path('frontend.last.seen.product.add') }}';
  8.         </script>
  9.     {% endif %}
  10. {% endblock %}