{% sw_extends '@Storefront/storefront/page/product-detail/meta.html.twig' %}
{# TODO @Mick please check this entire file and compare it with COEF. See what's global and add specific overrides into the NdVoorwindenTHeme :-) #}
{% set colors = page.product.properties.filterByGroupId("269c7e40a54a462e884edb004c5f7bc8").first.name %}
{% set colors2 = page.product.properties.filterByGroupId("70dda5dfb8053dc6d1c492574bce9bfd").first.name %}
{% block layout_head_meta_tags_description %}
{{ page.product.name }} ✔Meer dan 200 merken online ✔Ontvang spaarpunten ✔Gratis verzending v.a. €50 ✔Gratis Personal Shopper ✔Shop voor het hele gezin
{% endblock %}
{% 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.name }} {{ colors|capitalize }}{{ colors2|capitalize }} | {{ "pages.product.shopName"|trans|sw_sanitize }}"/>
<meta property="og:description"
content="{{ page.product.name }} ✔Meer dan 200 merken online ✔Ontvang spaarpunten ✔Gratis verzending v.a. €50 ✔Gratis Personal Shopper ✔Shop voor het hele gezin"/>
<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.manufacturer.name }} {{ page.product.name }} {{ colors|capitalize }}{{ colors2|capitalize }} {{ "pages.product.shopName"|trans|sw_sanitize }}"/>
<meta name="twitter:description"
content="{{ page.product.name }} ✔Meer dan 200 merken online ✔Ontvang spaarpunten ✔Gratis verzending v.a. €50 ✔Gratis Personal Shopper ✔Shop voor het hele gezin"/>
<meta name="twitter:image"
content="{{ page.product.cover.media.url }}"/>
{% endblock %}
{% block layout_head_title %}
<title itemprop="name">
{% block layout_head_title_inner %}
{{ page.product.manufacturer.name }} {{ page.product.name }} {{ colors|capitalize }}{{ colors2|capitalize }} {{ "pages.product.shopName"|trans|sw_sanitize }}
{% endblock %}
</title>
{% endblock %}
{% block layout_head_canonical %}
{% if page.product.parentId is not null %}
{% set canonicalUrl = page.product.parentId %}
{% else %}
{% set canonicalUrl = page.product.id %}
{% endif %}
{% if page.product.canonicalProductId %}
{% set canonicalUrl = page.product.canonicalProductId %}
{% endif %}
<link rel="canonical" href="{{ seoUrl('frontend.detail.page', { productId: canonicalUrl }) }}"/>
{% endblock %}