Open Graph Tags To A Product Page

How and where can I add addition Open Graph Tags to a product page




Thanks

For example, you can use the My changes module and the following file:

design/themes/YOUR_THEME/templates/addons/my_changes/hooks/index/meta.post.tpl

with the following content:

{if $runtime.controller == 'products' && $runtime.mode == 'view'}
        ... YOUR CODE HERE ..
{/if}

Thanks for your help!

Thanks for your help!

Hi

Can tel exact code that must to execute there ?

Hi

Can tel exact code that must to execute there ?


For example,

{if $runtime.controller == 'products' && $runtime.mode == 'view'}



{if $product.main_pair.detailed}

{/if}
{/if}

(!) Not tested

I need to test this in future, thanks!

You are welcome! Not that Facebook provider in the Social buttons module add mentioned meta tags automatically