vendor/shopware/storefront/Resources/views/storefront/page/product-detail/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  2. {% block layout_head_meta_tags_opengraph %}
  3.     <meta property="og:type"
  4.           content="product"/>
  5.     <meta property="og:site_name"
  6.           content="{{ shopware.config.core.basicInformation.shopName }}"/>
  7.     <meta property="og:url"
  8.           content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  9.     <meta property="og:title"
  10.           content="{{ metaTitle }}"/>
  11.     <meta property="og:description"
  12.           content="{{ metaDescription }}"/>
  13.     <meta property="og:image"
  14.           content="{{ asset(page.product.cover.media.url, '@Storefront') }}"/>
  15.     {% if page.product.manufacturer %}
  16.         <meta property="product:brand"
  17.               content="{{ page.product.manufacturer.translated.name }}"/>
  18.     {% endif %}
  19.     <meta property="product:price"
  20.           content="{{ page.product.calculatedPrice.unitPrice|currency }}"/>
  21.     <meta property="product:product_link"
  22.           content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  23.     <meta name="twitter:card"
  24.           content="product"/>
  25.     <meta name="twitter:site"
  26.           content="{{ shopware.config.core.basicInformation.shopName }}"/>
  27.     <meta name="twitter:title"
  28.           content="{{ metaTitle }}"/>
  29.     <meta name="twitter:description"
  30.           content="{{ metaDescription }}"/>
  31.     <meta name="twitter:image"
  32.           content="{{ asset(page.product.cover.media.url, '@Storefront') }}"/>
  33. {% endblock %}
  34. {% block layout_head_canonical %}
  35.     <link rel="canonical" href="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}" />
  36. {% endblock %}