custom/plugins/TcinnThemeWareClean/src/Resources/views/storefront/component/delivery-information.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/delivery-information.html.twig' %}
  2. {# ThemeWare® HC-Architecture® via configuration #}
  3. {# TODO: prüfen... #}
  4. {# TODO: Labels in separate Datei auslagern... #}
  5. {# TODO: Konfiguration um Shopware "delivery informations" ausblenden zu können ergänzen... #}
  6. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  7. {# ThemeWare: Set theme variables #}
  8. {% set twtCustomAnnouncementShow = theme_config('twt-custom-announcement-show') %}
  9. {% set twtProductDetailSoldLabelShow = theme_config('twt-product-detail-sold-label-show') %}
  10. {% set twtProductDetailShippingFreeLabelShow = theme_config('twt-product-detail-shipping-free-label-show') %}
  11. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  12. {# ThemeWare: Add our stock/sold-labels above the delivery information #}
  13. {% block component_delivery_information %}
  14.     {% if page is defined and page.product is defined %}
  15.         {% set product = page.product %}
  16.     {% endif %}
  17.     {# Default delivery information #}
  18.     {{ parent() }}
  19.     {# ThemeWare: "Individuelle Ankündigung" hinzufügen #}
  20.     {% if twtCustomAnnouncementShow == 2 or twtCustomAnnouncementShow == 3 %}
  21.         {% sw_include '@Storefront/storefront/themeware/extensions/twt-custom-announcement.html.twig' ignore missing with {
  22.             type: 'detail'
  23.         } %}
  24.     {% endif %}
  25. {% endblock %}
  26. {# ThemeWare: Adjustments on "Delivery information: Shipping free" info #}
  27. {# TODO: konfigurierbar machen... #}
  28. {# HC-Architecture @Doku #}
  29. {% block component_delivery_information_shipping_free %}
  30.     {# ThemeWare: Hinweis "Versandkostenfrei" entfernen falls das "Ausverkauft-Label" angzeigt wird. #}
  31.     {% if twtProductDetailShippingFreeLabelShow == 1 %}
  32.         {# Default block #}
  33.         {{ parent() }}
  34.     {% endif %}
  35. {% endblock %}
  36. {# TODO: component_delivery_information_not_available "Diese Auswahl steht nicht zur Verfügung" konfigurierbar machen... #}
  37. {# TODO: component_delivery_information_pre_order "Dieses Produkt erscheint am" konfigurierbar machen... #}
  38. {# TODO: component_delivery_information_available "Sofort verfügbar, Lieferzeit %name%" konfigurierbar machen... #}
  39. {# ThemeWare: Adjustments on "Delivery information: soldout" info #}
  40. {# TODO: konfigurierbar machen... #}
  41. {# HC-Architecture @Doku #}
  42. {% block component_delivery_information_soldout %}
  43.     {# ThemeWare: Hinweis "Nicht mehr verfügbar" entfernen falls das "Ausverkauft-Label" angzeigt wird. #}
  44.     {% if twtProductDetailSoldLabelShow == 1 %}
  45.         {# Default block #}
  46.         {{ parent() }}
  47.     {% endif %}
  48. {% endblock %}
  49. {# TODO: component_delivery_information_restock "{1} Versandfertig in 1 Tag, Lieferzeit %name% |]1,Inf[ Versandfertig in %restockTime% Tagen, Lieferzeit %name% " konfigurierbar machen... #}
  50. {# component_delivery_information_default #}