Open graph
The Flight framework provides components to generate Open Graph meta tags based on a product or page data.
OpenGraphProductData
import { OpenGraphProductData } from '@jetshop/core/components/OpenGraph'
Generates open graph meta tags for a product. Default fields generated
(can be overriden with the optionalFields
prop):
-
product:price:amount
- Taken from product'sprice
field -
product:original_price:amount
- Taken from product'spreviousPrice
field -
og:currency
- Taken from the currently selected channel -
product:availability
- Set to true if the product isbuyable
-
product:brand
- Used if the product has acustomField
with keybrand
-
product:category
- Used if the product has acanonicalCategory
OpenGraphGeneralPageData
import { OpenGraphGeneralPageData } from '@jetshop/core/components/OpenGraph'
Generates open graph meta tags for a page. Default fields generated from page data
(can be overriden with the optionalFields
prop):
-
og:title
-
og:description
-
og:url
-
og:image