custom/plugins/TcinnThemeWareLiving/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.     {# ThemeWare: "Vorteile" ergänzen. #}
  38.     {% if twtProductDetailBenefitsShow == 2 %}
  39.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-benefits.html.twig' ignore missing with {
  40.             type: 'buy-box',
  41.             position: 'bottom'
  42.         } %}
  43.     {% endif %}
  44.     {# ThemeWare: Zahlungsanbieter-Logos (unterhalb) ergänzen. #}
  45.     {% if twtProductDetailPaymentLogosShow == 2 and twtProductDetailPaymentLogosPosition == 2 %}
  46.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-payment-logos.html.twig' ignore missing with {
  47.             type: 'buy-box',
  48.             position: 'bottom'
  49.         } %}
  50.     {% endif %}
  51.     {# ThemeWare: "Teilen-Links" ergänzen. #}
  52.     {% if twtProductDetailSharingLinksShow == 2 %}
  53.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-sharing-links.html.twig' ignore missing with {
  54.             type: 'buy-box'
  55.         } %}
  56.     {% endif %}
  57. {% endblock %}
  58. {% block page_product_detail_buy_container %}
  59.     {# ThemeWare: Zusatzfeld "Kurzbeschreibung" #}
  60.     {% if twtCustomFields.product.twt_living_pro_custom_field__product__short_description is not empty and twtProductDetailShortDescriptionShow == 2 %}
  61.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-produt-detail-short-description.html.twig' ignore missing %}
  62.     {% endif %}
  63.     {# ThemeWare: "Produkt-Badges" hinzufügen #}
  64.     {# TODO: Produkt-Badges in der Buy-box #}
  65.     {% if twtProductDetailBadges == 2 %}
  66.         {% sw_include '@Storefront/storefront/themeware/extensions/twt-product-detail-badges.html.twig' ignore missing with {
  67.             product: page.product,
  68.             type: 'buy-box'
  69.         } %}
  70.     {% endif %}
  71.     {# ThemeWare: Labels hinzufügen #}
  72.     {% if twtLabelsShow and twtProductDetailLabelsPosition == 1 %}
  73.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-labels.html.twig' ignore missing with {
  74.             position: 'top',
  75.             product: page.product
  76.         } %}
  77.     {% endif %}
  78.     {# Default block #}
  79.     {{ parent() }}
  80. {% endblock %}
  81. {% block page_product_detail_delivery_informations %}
  82.     {# ThemeWare: Labels hinzufügen #}
  83.     {% if twtLabelsShow and twtProductDetailLabelsPosition == 2 %}
  84.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-labels.html.twig' ignore missing with {
  85.             position: 'bottom',
  86.             product: page.product
  87.         } %}
  88.     {% endif %}
  89.     {# Default block #}
  90.     {{ parent() }}
  91. {% endblock %}