{% sw_extends '@Storefront/storefront/base.html.twig' %}
{# Include the shipping bar top position #}
{% block base_header %}
{% block zenit_shipping_bar_extends_top %}
{% set zenShippingBar = context.context.extensions['zenitPlatformShippingBar'].config %}
{% if zenShippingBar.active and zenShippingBar.topBar == 'prepend' and zenShippingBar.paymentExtension == 'noextend' %}
{% sw_include '@Storefront/storefront//shipping-bar/shipping-bar.html.twig' with {
position: 'top',
attach: 'prepend',
statemanager: zenShippingBar.statemanagerHeader,
statemanagerBaseClass: 'd-none',
statemanagerIcons: zenShippingBar.statemanagerIconsHeader,
statemanagerInformations: zenShippingBar.statemanagerInformationsHeader
} %}
{% endif %}
{% endblock %}
{{ parent() }}
{% endblock %}
{# Include the shipping bar bottom position #}
{% block base_footer %}
{% block zenit_shipping_bar_extends_bottom_prepend %}
{% set zenShippingBar = context.context.extensions['zenitPlatformShippingBar'].config %}
{% if zenShippingBar.active and zenShippingBar.footerBar == 'prepend' and zenShippingBar.paymentExtension == 'noextend' %}
{% sw_include '@Storefront/storefront//shipping-bar/shipping-bar.html.twig' with {
position: 'bottom',
attach: 'prepend',
statemanager: zenShippingBar.statemanagerFooter,
statemanagerBaseClass: 'd-none',
statemanagerIcons: zenShippingBar.statemanagerIconsFooter,
statemanagerInformations: zenShippingBar.statemanagerInformationsFooter
} %}
{% endif %}
{% endblock %}
{{ parent() }}
{% block zenit_shipping_bar_extends_bottom_append %}
{% set zenShippingBar = context.context.extensions['zenitPlatformShippingBar'].config %}
{% if zenShippingBar.active and zenShippingBar.footerBar == 'append' and zenShippingBar.paymentExtension == 'noextend' %}
{% sw_include '@Storefront/storefront//shipping-bar/shipping-bar.html.twig' with {
position: 'bottom',
attach: 'append',
statemanager: zenShippingBar.statemanagerFooter,
statemanagerBaseClass: 'd-none',
statemanagerIcons: zenShippingBar.statemanagerIconsFooter,
statemanagerInformations: zenShippingBar.statemanagerInformationsFooter
} %}
{% endif %}
{% endblock %}
{% endblock %}