custom/plugins/Theme3S/src/Resources/views/storefront/component/product/card/box-standard.html.twig line 1
{% block component_product_box %}{% if product %}{% set name = product.translated.name %}{% set id = product.id %}{% set cover = product.cover.media %}{% set variation = product.variation %}{% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}{% set displayParent = true %}{% set sizeoption = variation[0].option %}{% set coloroption = variation[1].option %}{% set blank = " " %}{% set gloveoption = " " ~ variation[2].option %}{% set size = " " ~ sizeoption %}{% set ProductLink = "" %}{% set imageurl = "" %}{% set Element = "" %}{% for Item in product.cover.media.thumbnails.elements %}{% if Item.width == 800 %}{% set imageurl = Item.url %}{% set Element = Item %}{% endif %}{% endfor %}{% block component_product_box_content %}{% block component_product_box_badges %}{% sw_include '@Storefront/storefront/component/product/card/badges.html.twig' %}{% endblock %}{% block component_product_box_rich_snippets %}{# @deprecated tag:v6.5.0 - Block will be removed completely including the template it references #}{% sw_include '@Storefront/storefront/component/product/card/meta.html.twig' %}{% endblock %}{% block component_product_box_image %}{# fallback if display mode is not set #}{% set displayMode = displayMode ?: 'standard' %}{# set display mode 'cover' for box-image with standard display mode #}{% if layout == 'image' and displayMode == 'standard' %}{% set displayMode = 'cover' %}{% endif %}{% block component_product_box_image_link %}{% block component_product_box_image_link_inner %}{% if cover.url %}{% set attributes = {'class': 'product-image is-'~displayMode,'alt': (cover.translated.alt ?: name),'title': (cover.translated.title ?: name)} %}{% if displayMode == 'cover' or displayMode == 'contain' %}{% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}{% endif %}{% block component_product_box_image_thumbnail %}{% if imageurl is empty %}{% set imageurl = cover.url %}{% endif %}{% endblock %}{% else %}{% block component_product_box_image_placeholder %}{% endblock %}{% endif %}{% endblock %}{% endblock %}{% if config('core.cart.wishlistEnabled') %}{% block component_product_box_wishlist_action %}{% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {appearance: 'circle',productId: id} %}{% endblock %}{% endif %}{% endblock %}{% block component_product_box_info %}{% block component_product_box_rating %}{% if config('core.listing.showReview') %}{% endif %}{% endblock %}{% block component_product_box_variant_characteristics %}{% endblock %}{% for propertyId in product.propertyIds %}{% if propertyId == "e755c9070e7d41469f9a1dad62db875a" %} {% endif %}{% if propertyId == "a581943fd430489598f209896e7bbb56" %} {% endif %}{% if propertyId == "b1fc6928266347428bd6b74c0268dad4" %} {% endif %}{% if propertyId == "fa76425d7f2a400099d925d591e3be9f" %} {% endif %}{% if propertyId == "3842201e22984368bcc0d3125cf2827c" %} {% endif %}{% if propertyId == "fce6da51bcce4345a2fa0a44d88f249b" %} {% endif %}{% if propertyId == "f0f15d19683a4fa0a16901a8f6e9f1af" %} {% endif %}{% if propertyId == "778dfd9f51044a54a60cbd945b5b2762" %} {% endif %}{% if propertyId == "ca28fcc57c924b8e925c2bef5893fafa" %} {% endif %}{% if propertyId == "0be6549f03d142c785c97b05ba9f1faa" %} {% endif %}{% endfor %}{% block component_product_box_action %}{% sw_include '@Storefront/storefront/component/product/card/action.html.twig' %}{% endblock %}{% block component_product_box_price %}{% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}{% endblock %}{% block component_product_box_name %}{% set newname = name %}{% if size != "" %}{% set newname = newname|replace({(size): blank}) %}{% endif %}{% if coloroption != "" %}{% set newname = newname|replace({(coloroption): blank}) %}{% endif %}{% if gloveoption != "" %}{% set newname = newname|replace({(gloveoption): blank}) %}{% endif %}{#{{ name|replace({(sizeoption): blank, (coloroption): blank}) }}{{ name }}#}{% endblock %}{% endblock %}{% endblock %}{% endif %}{% endblock %}