{# ThemeWare "Shipping logos" #} {# TW shipping logos/content #} {# ---------------- START: SET TEMPLATE VARS ---------------- #} {# ThemeWare: Set theme variables #} {% set twtWidgetShippingLogoLink = theme_config('twt-widget-shipping-logo-link') %} {% set twtCustomShippingImage1 = theme_config('twt-widget-shipping-logo-custom-image-1') %} {% set twtCustomShippingImage2 = theme_config('twt-widget-shipping-logo-custom-image-2') %} {% set twtCustomShippingImage3 = theme_config('twt-widget-shipping-logo-custom-image-3') %} {% set twtCustomShippingImagesOnly = theme_config('twt-widget-shipping-logo-custom-images-only') %} {% set twtWidgetShippingLogoFallbackBadge = theme_config('twt-widget-shipping-logo-fallback-badge') %} {% if twtCustomShippingImagesOnly is empty %} {% set twtCustomShippingImagesOnly = 1 %} {% endif %} {# ---------------- END: SET TEMPLATE VARS ---------------- #} {# ThemeWare: Add shipping logos #} {% block twt_shipping_logos_content %} {% if twtCustomShippingImagesOnly == 1 %} {% for shippingMethod in page.salesChannelShippingMethods %} {% if shippingMethod.media %} {# ThemeWare: Add logo #} {% else %} {# ThemeWare: Add fallback badge #} {% if twtWidgetShippingLogoFallbackBadge == 2 %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endblock %} {# ThemeWare: Add custom shipping logos #} {% block twt_shipping_logos_custom %} {# ThemeWare: Add custom image 1 #} {% if twtCustomShippingImage1 %} {% endif %} {# ThemeWare: Add custom image 2 #} {% if twtCustomShippingImage2 %} {% endif %} {# ThemeWare: Add custom image 3 #} {% if twtCustomShippingImage3 %} {% endif %} {% endblock %}