custom/plugins/BstCatalogMode6/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. {% set bstConfig = context.context.extensions.BstCatalogMode6.config %}
  3. {% block layout_head_meta_tags_opengraph %}
  4.     <meta property="og:type"
  5.           content="product"/>
  6.     <meta property="og:site_name"
  7.           content="{{ config('core.basicInformation.shopName') }}"/>
  8.     <meta property="og:url"
  9.           content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  10.     <meta property="og:title"
  11.           content="{{ metaTitle }}"/>
  12.     <meta property="og:description"
  13.           content="{{ metaDescription }}"/>
  14.     <meta property="og:image"
  15.           content="{{ page.product.cover.media.url }}"/>
  16.     {% if page.product.manufacturer %}
  17.         <meta property="product:brand"
  18.               content="{{ page.product.manufacturer.translated.name }}"/>
  19.     {% endif %}
  20.     {% if (bstConfig.hidePrices == false) %}
  21.         {% set metaPrice = page.product.calculatedPrice %}
  22.         {% if page.product.calculatedPrices.count > 0 %}
  23.             {% set metaPrice = page.product.calculatedPrices.last %}
  24.         {% endif %}
  25.         <meta property="product:price:amount"
  26.               content="{{ metaPrice.unitPrice|round(context.currency.itemRounding.decimals) }}"/>
  27.         <meta property="product:price:currency"
  28.               content="{{ context.currency.isoCode }}"/>
  29.     {% endif %}
  30.     <meta property="product:product_link"
  31.           content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  32.     <meta name="twitter:card"
  33.           content="product"/>
  34.     <meta name="twitter:site"
  35.           content="{{ config('core.basicInformation.shopName') }}"/>
  36.     <meta name="twitter:title"
  37.           content="{{ metaTitle }}"/>
  38.     <meta name="twitter:description"
  39.           content="{{ metaDescription }}"/>
  40.     <meta name="twitter:image"
  41.           content="{{ page.product.cover.media.url }}"/>
  42. {% endblock %}