How to add required Open Graph meta tags to support Pinterest Rich Pins

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 7 ans
By default nopCommerce is missing two required Open Graph meta tags to support Product Pins (Rich Pins) - og:product:price:amount and og:product:price:currency. To add these open /Views/Product/ProductTemplate.Simple.cshtml and /Views/Product/ProductTemplate.Grouped.cshtml and add the following two lines of code under the last Open Graph meta tag.

Html.AddHeadCustomParts("<meta property=\"og:product:price:amount\" content=\"" + Html.Encode(Model.ProductPrice.PriceValue) + "\" />");
Html.AddHeadCustomParts("<meta property=\"og:product:price:currency\" content=\"" + Html.Encode(Model.ProductPrice.CurrencyCode) + "\" />");
Il y a 3 ans
Hi, i need your help.
To automatically add articles from your website to the Facebook catalog, you must include the microdata tags in the Facebook pixel installation.
https://www.facebook.com/business/help/120325381656392?id=725943027795860
This is the specification for meta Tags.
The product must have
<meta property="og:title" content="Facebook T-Shirt">
<meta property="og:description" content="Unisex Facebook T-shirt, Small">
<meta property="og:url" content="https://example.org/facebook">
<meta property="og:image" content="https://example.org/facebook.jpg">
<meta property="product:brand" content="Facebook">
<meta property="product:availability" content="in stock">
<meta property="product:condition" content="new">
<meta property="product:price:amount" content="7.99">
<meta property="product:price:currency" content="USD">
<meta property="product:retailer_item_id" content="facebook_tshirt_001">
<meta property="product:item_group_id" content="fb_tshirts">
And a meta ID.
Thanks if you can show me how to add the meta.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.