custom/plugins/TcinnThemeWareClean/src/Resources/views/storefront/page/product-detail/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  2. {# ThemeWare® HC-Architecture® ready #}
  3. {# ThemeWare: 'Buy widget' on classic product page #}
  4. {# INFO: Please note this is also available as "component/buy-widget/buy-widget.html.twig" since SW6.4 #}
  5. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  6. {# ThemeWare: Set theme variables #}
  7. {% set twtProductDetailBadges = theme_config('twt-product-detail-badges') %}
  8. {% set twtProductDetailBenefitsShow = theme_config('twt-product-detail-benefits-show') %}
  9. {% set twtProductDetailPaymentLogosPosition = theme_config('twt-product-detail-payment-logos-position') %}
  10. {% set twtProductDetailPaymentLogosShow = theme_config('twt-product-detail-payment-logos-show') %}
  11. {% set twtProductDetailSharingLinksShow = theme_config('twt-product-detail-sharing-links-show') %}
  12. {% set twtProductDetailShortDescriptionShow = theme_config('twt-product-detail-short-description-show') %}
  13. {% set twtProductDetailLabelsPosition = theme_config('twt-product-detail-labels-position') %}
  14. {% set twtProductDetailShippingFreeLabelShow = theme_config('twt-product-detail-shipping-free-label-show') %}
  15. {% set twtProductDetailSoldLabelShow = theme_config('twt-product-detail-sold-label-show') %}
  16. {% set twtProductDetailStockLabelShow = theme_config('twt-product-detail-stock-label-show') %}
  17. {% set twtLabelsShow = false %}
  18. {% if twtProductDetailShippingFreeLabelShow == 2 or twtProductDetailStockLabelShow == 2 or twtProductDetailSoldLabelShow == 2 %}
  19.     {% set twtLabelsShow = true %}
  20. {% endif %}
  21. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  22. {# ThemeWare: Adjustments on ordernumber container #}
  23. {% block page_product_detail_ordernumber_container %}
  24.     {# ThemeWare: Zahlungsanbieter-Logos (oberhalb) ergänzen. #}
  25.     {% if twtProductDetailPaymentLogosShow == 2 and twtProductDetailPaymentLogosPosition == 1 %}
  26.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-payment-logos.html.twig' ignore missing with {
  27.             type: 'buy-box',
  28.             position: 'top'
  29.         } %}
  30.     {% endif %}
  31.     {# Default block #}
  32.     {{ parent() }}
  33.     {# ThemeWare: Produkt-Spezifikationen ergänzen. #}
  34.     {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-specifications.html.twig' ignore missing with {
  35.         type: 'buy-box'
  36.     } %}
  37. {% endblock %}
  38. {# ThemeWare: Adjustments on buy widget #}
  39. {% block page_product_detail_buy_inner %}
  40.     {# Default block #}
  41.     {{ parent() }}
  42.     {# ThemeWare: "Vorteile" ergänzen. #}
  43.     {% if twtProductDetailBenefitsShow == 2 %}
  44.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-benefits.html.twig' ignore missing with {
  45.             type: 'buy-box',
  46.             position: 'bottom'
  47.         } %}
  48.     {% endif %}
  49.     {# ThemeWare: Zahlungsanbieter-Logos (unterhalb) ergänzen. #}
  50.     {% if twtProductDetailPaymentLogosShow == 2 and twtProductDetailPaymentLogosPosition == 2 %}
  51.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-payment-logos.html.twig' ignore missing with {
  52.             type: 'buy-box',
  53.             position: 'bottom'
  54.         } %}
  55.     {% endif %}
  56.     {# ThemeWare: "Teilen-Links" ergänzen. #}
  57.     {% if twtProductDetailSharingLinksShow == 2 %}
  58.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-sharing-links.html.twig' ignore missing with {
  59.             type: 'buy-box'
  60.         } %}
  61.     {% endif %}
  62. {% endblock %}
  63. {% block page_product_detail_buy_container %}
  64.     {# ThemeWare: Zusatzfeld "Kurzbeschreibung" #}
  65.     {% if twtCustomFields.product.twt_clean_pro_custom_field__product__short_description is not empty and twtProductDetailShortDescriptionShow == 2 %}
  66.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-produt-detail-short-description.html.twig' ignore missing %}
  67.     {% endif %}
  68.     {# ThemeWare: "Produkt-Badges" hinzufügen #}
  69.     {# TODO: Produkt-Badges in der Buy-box #}
  70.     {% if twtProductDetailBadges == 2 %}
  71.         {% sw_include '@Storefront/storefront/themeware/extensions/twt-product-detail-badges.html.twig' ignore missing with {
  72.             product: page.product,
  73.             type: 'buy-box'
  74.         } %}
  75.     {% endif %}
  76.     {# ThemeWare: Labels hinzufügen #}
  77.     {% if twtLabelsShow and twtProductDetailLabelsPosition == 1 %}
  78.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-labels.html.twig' ignore missing with {
  79.             position: 'top',
  80.             product: page.product
  81.         } %}
  82.     {% endif %}
  83.     {# Default block #}
  84.     {{ parent() }}
  85. {% endblock %}
  86. {% block page_product_detail_delivery_informations %}
  87.     {# ThemeWare: Labels hinzufügen #}
  88.     {% if twtLabelsShow and twtProductDetailLabelsPosition == 2 %}
  89.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-labels.html.twig' ignore missing with {
  90.             position: 'bottom',
  91.             product: page.product
  92.         } %}
  93.     {% endif %}
  94.     {# Default block #}
  95.     {{ parent() }}
  96. {% endblock %}