custom/plugins/IabTheme/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. {% block component_product_box %}
  3.     {% if product %}
  4.         {% set name = product.translated.name %}
  5.         {% set id = product.id %}
  6.         {% set cover = product.cover.media %}
  7.         {% set variation = product.variation %}
  8.         {% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}
  9.         <div class="card product-box box-{{ layout }}">
  10.             {% block component_product_box_content %}
  11.                 <div class="card-body">
  12.                     {{ block('component_product_box_badges') }}
  13.                     {{ block('component_product_box_rich_snippets') }}
  14.                     {% block component_product_box_image %}
  15.                         <div class="product-image-wrapper">
  16.                             {# fallback if display mode is not set #}
  17.                             {% set displayMode = displayMode ?: 'standard' %}
  18.                             {# set display mode 'cover' for box-image with standard display mode #}
  19.                             {% if layout == 'image' and displayMode == 'standard' %}
  20.                                 {% set displayMode = 'cover' %}
  21.                             {% endif %}
  22.                             {{ block('component_product_box_image_link') }}
  23.                             {% if context.customer and config('core.cart.wishlistEnabled') %}
  24.                                 {% block component_product_box_wishlist_action %}
  25.                                     {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  26.                                         appearance: 'circle',
  27.                                         productId: id
  28.                                     } %}
  29.                                 {% endblock %}
  30.                             {% endif %}
  31.                         </div>
  32.                     {% endblock %}
  33.                     {% block component_product_box_info %}
  34.                         <div class="product-info">
  35.                             {% block component_product_box_availability %} {# changed block #}
  36.                                 <div class="product-availability d-flex justify-content-between">
  37.                                     <div>
  38.                                         {% if product.customFields.migration_ShopwarewithAPI_product_produkt_ve %}
  39.                                             {{ 'listing.pu'|trans|sw_sanitize }}:
  40.                                             {{ product.customFields.migration_ShopwarewithAPI_product_produkt_ve }}
  41.                                         {% endif %}
  42.                                     </div>
  43.                                     {% if product.availableStock > 0 %}
  44.                                         <div>
  45.                                             {{ 'listing.available'|trans|sw_sanitize }}
  46.                                         </div>
  47.                                     {% endif %}
  48.                                 </div>
  49.                             {% endblock %}
  50.                             {% block component_product_box_rating %}
  51.                                 {% if config('core.listing.showReview') %}
  52.                                     {% if product.ratingAverage %}
  53.                                         <div class="product-rating">
  54.                                             {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  55.                                                 points: product.ratingAverage,
  56.                                                 style: 'text-primary'
  57.                                             } %}
  58.                                         </div>
  59.                                     {% endif %}
  60.                                 {% endif %}
  61.                             {% endblock %}
  62.                             {{ block('component_product_box_name') }}
  63.                             {{ block('component_product_box_variant_characteristics') }}
  64.                             {{ block('component_product_box_description') }}
  65.                             {{ block('component_product_box_price') }}
  66.                             {% block element_buy_box_properties %}
  67.                                 <div class="element-buy-box-properties-container">
  68.                                     {% set group = product.sortedProperties %}
  69.                                     {% sw_include '@Storefront/storefront/component/product/teaser-properties.html.twig' with {
  70.                                         group: product.sortedProperties
  71.                                     } %}
  72.                                 </div>
  73.                             {% endblock %}
  74.                             {# dump(page.extensions) #}
  75.                             {{ block('component_product_box_action') }}
  76.                         </div>
  77.                     {% endblock %}
  78.                 </div>
  79.             {% endblock %}
  80.         </div>
  81.     {% endif %}
  82. {% endblock %}