custom/plugins/Wingsacademy/src/Resources/views/storefront/page/product-detail/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/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="{{ 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="{{ page.product.translated.name }}"/>
  11.     <meta property="og:description"
  12.           content="{{ metaDescription }}"/>
  13.     <meta property="og:image"
  14.           content="{{ page.product.cover.media.url }}"/>
  15.     {% if page.product.manufacturer %}
  16.         <meta property="product:brand"
  17.               content="{{ page.product.manufacturer.translated.name }}"/>
  18.     {% endif %}
  19.     {% set metaPrice = page.product.calculatedPrice %}
  20.     {% if page.product.calculatedPrices.count > 0 %}
  21.         {% set metaPrice = page.product.calculatedPrices.last %}
  22.     {% endif %}
  23.     <meta property="product:price:amount"
  24.           content="{{ metaPrice.unitPrice|round(context.currency.itemRounding.decimals) }}"/>
  25.     <meta property="product:price:currency"
  26.           content="{{ context.currency.isoCode }}"/>
  27.     <meta property="product:product_link"
  28.           content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  29.     <meta name="twitter:card"
  30.           content="product"/>
  31.     <meta name="twitter:site"
  32.           content="{{ config('core.basicInformation.shopName') }}"/>
  33.     <meta name="twitter:title"
  34.           content="{{ page.product.translated.name }}"/>
  35.     <meta name="twitter:description"
  36.           content="{{ metaDescription }}"/>
  37.     <meta name="twitter:image"
  38.           content="{{ page.product.cover.media.url }}"/>
  39. {% endblock %}
  40. {% block layout_head_title_inner %}
  41.     {{ page.product.translated.name }}
  42. {% endblock %}