{% sw_extends '@Storefront/storefront/page/product-detail/meta.html.twig' %}
{% block layout_head_meta_tags_opengraph %}
<meta property="og:type"
content="product"/>
<meta property="og:site_name"
content="{{ config('core.basicInformation.shopName') }}"/>
<meta property="og:url"
content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
<meta property="og:title"
content="{{ page.product.translated.name }}"/>
<meta property="og:description"
content="{{ metaDescription }}"/>
<meta property="og:image"
content="{{ page.product.cover.media.url }}"/>
{% if page.product.manufacturer %}
<meta property="product:brand"
content="{{ page.product.manufacturer.translated.name }}"/>
{% endif %}
{% set metaPrice = page.product.calculatedPrice %}
{% if page.product.calculatedPrices.count > 0 %}
{% set metaPrice = page.product.calculatedPrices.last %}
{% endif %}
<meta property="product:price:amount"
content="{{ metaPrice.unitPrice|round(context.currency.itemRounding.decimals) }}"/>
<meta property="product:price:currency"
content="{{ context.currency.isoCode }}"/>
<meta property="product:product_link"
content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
<meta name="twitter:card"
content="product"/>
<meta name="twitter:site"
content="{{ config('core.basicInformation.shopName') }}"/>
<meta name="twitter:title"
content="{{ page.product.translated.name }}"/>
<meta name="twitter:description"
content="{{ metaDescription }}"/>
<meta name="twitter:image"
content="{{ page.product.cover.media.url }}"/>
{% endblock %}
{% block layout_head_title_inner %}
{{ page.product.translated.name }}
{% endblock %}