VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: encreplus on November 13, 2015, 18:11:14 PM

Title: Open Graph
Post by: encreplus on November 13, 2015, 18:11:14 PM
Good day

Is there a way to show prices and description of the product when using addthis facebook ?

Stefan

Title: Re: Open Graph
Post by: GJC Web Design on November 13, 2015, 21:14:20 PM
you need to add the og tags to your template  - research joomla  $document->addCustomTag
Title: Re: Open Graph
Post by: Jumbo! on November 24, 2015, 23:14:22 PM
You can use this FREE plugin - VM OG Meta Tag - https://www.virtueplanet.com/extensions/vm-og-meta-tag

It will automatically add all required Open Graph tags to your full site which includes products, categories and also Joomla articles.
Title: Re: Open Graph
Post by: encreplus on November 28, 2015, 15:20:01 PM
Quote from: Jumbo! on November 24, 2015, 23:14:22 PM
You can use this FREE plugin - VM OG Meta Tag - https://www.virtueplanet.com/extensions/vm-og-meta-tag

It will automatically add all required Open Graph tags to your full site which includes products, categories and also Joomla articles.

I already try this plugin ... but it dosent show the prices when send to google+, facebook, pin ...

Title: Re: Open Graph
Post by: Jumbo! on November 29, 2015, 08:33:33 AM
Open Graph has no relation with Google Search. You will need to use Schema Markups (http://schema.org) for the same in your layouts/designs. But Google+ will never display price in any shares.

Open Graph is specifically designed for Facebook. But Facebook also never display price in any shares. Open Graph price property is used by Facebook for a completely different purpose. It becomes useful if you sell your products on Facebook. They also have few other futuristic ideas. You can learn more about them searching Google or in Facebook developers portal.
Title: Re: Open Graph
Post by: john21wall on November 30, 2015, 12:35:36 PM
Thanks for the info on this free supplement in handy to me
Title: Re: Open Graph
Post by: encreplus on January 15, 2016, 21:37:50 PM
Quote from: Jumbo! on November 29, 2015, 08:33:33 AM
Open Graph has no relation with Google Search. You will need to use Schema Markups (http://schema.org) for the same in your layouts/designs. But Google+ will never display price in any shares.

Open Graph is specifically designed for Facebook. But Facebook also never display price in any shares. Open Graph price property is used by Facebook for a completely different purpose. It becomes useful if you sell your products on Facebook. They also have few other futuristic ideas. You can learn more about them searching Google or in Facebook developers portal.

Your previous version i was abble to change it and add the price code ... but your coding change in this new one so i cant change it ;((((
Title: Re: Open Graph
Post by: Jumbo! on January 17, 2016, 14:18:39 PM
Open graph Price property already existed in the plugin. You do not need to add it yourself.
Title: Re: Open Graph
Post by: encreplus on January 18, 2016, 04:32:05 AM
What i mean is that in your previous version i was abble to add the code and facebook, google+ and twitter was showing the price of the product ;) Now in your new version for vm3 i cANT ...

In your previous i have done this :

  $vmogmetatag_title = "\r\n" .'  <meta property="og:title" content="'.$vmogmetatag_title_instance.' '.number_format((float)$product->prices['salesPrice'], 2, '.', '').'"/>'. "\r\n" ;
Title: Re: Open Graph
Post by: encreplus on January 26, 2016, 05:43:48 AM
Jumbo!

Can you help ?