Answers.Body: <p>Right now, SEOmatic assumes an <code>og:</code> namespace for all OpenGraph tags, which clearly isn't correct. So you'd just need to add these tags yourself if you want to use them.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-04T15:00:51.480Z
Answers.LastActivityDate: 2017-11-04T15:00:51.480Z
Answers.UserDisplayName: andrew.welch
Body: <p>I would like to implement <a href="https://developers.pinterest.com/docs/rich-pins/products/?" rel="nofollow noreferrer">Pinterest Product Pin</a> for my products. I need to update og:xxx values. Here is how i done:</p>
  
  <pre><code>{% set og = seomaticMeta.og %}
  {% set og = og | merge({'type': "product", 'product:price:currency': "USD", 'product:price:amount': variant.price|number_format(2) }) %}
  {% set seomaticMeta = seomaticMeta | merge({'og': og}) %}
  </code></pre>
  
  <p>This adds new tags but the property of the meta tag should not include 'og:' in product related meta tag. So this outputs something like:</p>
  
  <pre><code>&lt;meta property="og:product:price:amount" content="300.00" /&gt;
  </code></pre>
  
  <p>but it should be something like this:</p>
  
  <pre><code>&lt;meta property="product:price:amount" content="300.00" /&gt;
  </code></pre>
  
  <p>How can i achieve this?</p>
  
Tags: <plugin-craftcommerce><plugin-seomatic>
Title: Edit meta property value in Open Graph meta tag
ThreadText: # Edit meta property value in Open Graph meta tag
  
  (Asked by: username_0 on 2017-11-04)
  
  I would like to implement [Pinterest Product Pin](https://developers.pinterest.com/docs/rich-pins/products/?) for my products. I need to update og:xxx values. Here is how i done:
  
  ```
  {% set og = seomaticMeta.og %}
  {% set og = og | merge({'type': "product", 'product:price:currency': "USD", 'product:price:amount': variant.price|number_format(2) }) %}
  {% set seomaticMeta = seomaticMeta | merge({'og': og}) %}
  
  ```
  
  This adds new tags but the property of the meta tag should not include 'og:' in product related meta tag. So this outputs something like:
  
  ```
  <meta property="og:product:price:amount" content="300.00" />
  
  ```
  
  but it should be something like this:
  
  ```
  <meta property="product:price:amount" content="300.00" />
  
  ```
  
  How can i achieve this?
  
  **Tags:** plugin-craftcommerce, plugin-seomatic
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-04. Score: 1
  
  Right now, SEOmatic assumes an `og:` namespace for all OpenGraph tags, which clearly isn't correct. So you'd just need to add these tags yourself if you want to use them.
  
  
  ---
  
  