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'spricefieldproduct:original_price:amount- Taken from product'spreviousPricefieldog:currency- Taken from the currently selected channelproduct:availability- Set to true if the product isbuyableproduct:brand- Used if the product has acustomFieldwith keybrandproduct: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:titleog:descriptionog:urlog:image