{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_body_script %}
{{ parent() }}
{% if config('IntediaDoofinderSW6.config.doofinderEnabled') and config('IntediaDoofinderSW6.config.doofinderInjectionBlock') == 2 %}
{% if 'intedia-doofinder.configuration.hashId'|trans != 'intedia-doofinder.configuration.hashId' %}
<template data-intedia-doofinder data-intedia-doofinder-options='{ "layerType": "{{ config('IntediaDoofinderSW6.config.doofinderLayer') }}", "engineHash": "{{ 'intedia-doofinder.configuration.hashId'|trans|striptags }}", "installationId": "{{ config('IntediaDoofinderSW6.config.installationId') }}", "csrfToken": "{{ sw_csrf('frontend.checkout.product.add-by-number', {"mode": "token"}) }}", "addToCartUrl": "{{ path('frontend.checkout.product.add-by-number') }}", "offCanvasUrl": "{{ path('frontend.cart.offcanvas') }}" }'></template>
{% else %}
<template data-intedia-doofinder data-intedia-doofinder-options='{ "layerType": "{{ config('IntediaDoofinderSW6.config.doofinderLayer') }}", "engineHash": "{{ config('IntediaDoofinderSW6.config.engineHashId') }}", "installationId": "{{ config('IntediaDoofinderSW6.config.installationId') }}", "csrfToken": "{{ sw_csrf('frontend.checkout.product.add-by-number', {"mode": "token"}) }}", "addToCartUrl": "{{ path('frontend.checkout.product.add-by-number') }}", "offCanvasUrl": "{{ path('frontend.cart.offcanvas') }}" }'></template>
{% endif %}
{% endif %}
{% endblock %}