custom/plugins/ChannelpilotTrackingSW6/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {# {% set config = shopware.config.Channelpilot.config %} #}
  3. {% set config = config('Channelpilot').config %}
  4. {% block base_cookie_permission %}
  5.     {{ parent() }}
  6.     {% if config.trackingKey is not empty%}
  7.         <div data-channelpilot-tracking="true"></div>
  8.         {% if controllerName|lower is same as('product') and controllerAction|lower is same as('index') %}
  9.             {% sw_include '@Storefront/solution360/channelpilot/clicktracking.html.twig' %}
  10.         {% endif %}
  11.         {% if controllerName|lower is same as('checkout') and controllerAction|lower is same as ('finishpage') %}
  12.             {% sw_include '@Storefront/solution360/channelpilot/salestracking.html.twig' %}
  13.         {% endif %}
  14.     {% endif %}
  15. {% endblock %}