custom/plugins/SwagSocialShopping/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.     {{ parent() }}
  4.     {% if page.metaInformation.extensions.pinterest and page.metaInformation.extensions.pinterest.isPinterestSalesChannel %}
  5.         <meta property="product:price:amount"
  6.               content="{%- if page.product.calculatedPrices is not empty -%}
  7.                            {{ page.product.calculatedPrices.first.unitPrice|number_format(2, '.', '') }}
  8.                        {%- else -%}
  9.                            {{ page.product.calculatedPrice.unitPrice|number_format(2, '.', '') }}
  10.                        {%- endif -%}"/>
  11.         <meta property="product:price:currency"
  12.               content="{{ context.currency.isoCode }}"/>
  13.         <meta property="og:brand"
  14.               content="{{ page.product.manufacturer.translated.name }}"/>
  15.         <meta property="og:availability"
  16.               content="{{ page.metaInformation.extensions.pinterest.availability }}"/>
  17.     {% endif %}
  18. {% endblock %}