custom/plugins/FuerstenbergPorzellan/src/Resources/views/storefront/component/product/card/box-standard.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  2.  
  3. {% block component_product_box %}
  4.     {% if product %}
  5.         {% set name = product.translated.name %}
  6.         {% set id = product.id %}
  7.         {% set cover = product.cover.media %}
  8.         {% set variation = product.variation %}
  9.         {% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}
  10.         
  11.         {% set custom_hersteller_color= product.manufacturer.translated.customFields.custom_hersteller_color %}
  12.         {% if custom_hersteller_color == '' %}
  13.             {% set custom_hersteller_color= getmanufacturer(product.manufacturerId  , context.context)|first['custom_hersteller_color']|replace({'"': ''})|replace({'null': ''}) %}
  14.         {% endif %}
  15.         
  16.         <div class="card product-box box-{{ layout }}{% if custom_hersteller_color !='' %} product-box-custom --{{custom_hersteller_color}}--{% endif %}" {% if custom_hersteller_color!='' %}style="--tcolor:{{custom_hersteller_color }}"{% endif %}>
  17.             {% block component_product_box_content %}
  18.                 {{parent()}}
  19.             {% endblock %}
  20.         </div>
  21.     {% endif %}
  22. {% endblock %}
  23. {% block component_product_box_badges %}
  24.     {% if product.manufacturer.name %}
  25.         <div class="product-manfactur">
  26.             {{product.manufacturer.name}}
  27.         </div>
  28.     {% elseif product.manufacturerId  %}
  29.         <div class="product-manfactur">
  30.             {% set manufacturerName= getmanufacturer(product.manufacturerId  , context.context)|first['name'] %}
  31.             {{ manufacturerName }}
  32.         </div>
  33.     {% endif %}
  34.     {% sw_include '@Storefront/storefront/component/product/card/badges.html.twig' %}
  35. {% endblock %}
  36. {% block component_product_box_wishlist_action %}{% endblock %}
  37. {% block component_product_box_info %}
  38.     <div class="product-info">
  39.         {% block component_product_box_rating %}
  40.             {{parent()}}
  41.         {% endblock %}
  42.         {% block component_product_box_name %}
  43.             <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
  44.                 class="product-name"
  45.                 title="{{ name }}">
  46.                 {{ name|raw|u.truncate(50, '...') }}
  47.             </a>
  48.         {% endblock %}
  49.         {% block component_product_box_variant_characteristics %}{% endblock %}
  50.         {% block component_product_box_description %}
  51.             <div class="product-description {% if product.extensions.netiEasyCouponProduct%}d-none{% endif %}">
  52.                 
  53.                 {% if product.customFields.custom_product_information_subdesc %}
  54.                     {{ product.customFields.custom_product_information_subdesc|raw }}
  55.                 {% endif %}
  56.             </div>
  57.         {% endblock %}
  58.         {% block component_product_box_price %}
  59.             {% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
  60.         {% endblock %}
  61.         {% block component_product_box_action %}
  62.             <div class="product-action-box">
  63.                 {% if config('core.cart.wishlistEnabled') %}
  64.                     {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  65.                         appearance: 'circle',
  66.                         productId: id
  67.                     } %}
  68.                 {% endif %}
  69.                 {% sw_include '@Storefront/storefront/component/product/card/action.html.twig' %}
  70.             </div>
  71.         {% endblock %}
  72.     </div>
  73. {% endblock %}