custom/plugins/TcinnThemeWareLiving/src/Resources/views/storefront/themeware/includes/twt-badge-shipping-free-include.html.twig line 1

Open in your IDE?
  1. {# ThemeWare "Free shipping badge" content #}
  2. {# TODO: Blöcke prüfen... #}
  3. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  4. {# ThemeWare: Set theme variables #}
  5. {% set twtProductBadgesShippingFreeBadgeColoration = theme_config('twt-product-badges-shipping-free-badge-coloration') %}
  6. {% set twtProductBadgesShippingFreeBadgeIconShow = theme_config('twt-product-badges-shipping-free-badge-icon-show') %}
  7. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  8. {% block twt_product_badges_shipping_free_badge %}
  9.     {% if product.shippingFree %}
  10.         <div>
  11.             <span class="badge badge-info{% if twtProductBadgesShippingFreeBadgeColoration == 3 %}-lighten{% endif %} badge-shipping-free twt-badge-shipping-free">
  12.                 {% if twtProductBadgesShippingFreeBadgeIconShow == 2 %}
  13.                     {# warning #}
  14.                     {% sw_include '@Storefront/storefront/themeware/twt-icons.html.twig' ignore missing with {
  15.                         icon: "twt.extension.shippingFreeBadge.icon"|trans
  16.                     } %}
  17.                 {% endif %}
  18.                 {{ "general.deliveryShippingFree"|trans|sw_sanitize }}
  19.             </span>
  20.         </div>
  21.     {% endif %}
  22. {% endblock %}