Make social buttons show product picture+details ?
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Make social buttons show product picture+details ?
Is it possible to make social buttons set OpenGraph properties with product details?
So they share product picture + details instead of general page details.
So they share product picture + details instead of general page details.
Re: Make social buttons show product picture+details ?
It's currently not possible to share details but you can add the URL to the product picture:joakim wrote:Is it possible to make social buttons set OpenGraph properties with product details?
So they share product picture + details instead of general page details.
https://aimeos.org/docs/Configuration/C ... l/facebook
What product details do you want to hand over?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Make social buttons show product picture+details ?
I would like to use product title as og:title, product description as og:description and product image as og:imageaimeos wrote:It's currently not possible to share details but you can add the URL to the product picture:joakim wrote:Is it possible to make social buttons set OpenGraph properties with product details?
So they share product picture + details instead of general page details.
https://aimeos.org/docs/Configuration/C ... l/facebook
What product details do you want to hand over?
Re: Make social buttons show product picture+details ?
The URL, product name and product image are already available as parameter for the URLs provided og:title and og:description can be handed over as URL GET parameters: https://aimeos.org/docs/Configuration/C ... l/facebookjoakim wrote:I would like to use product title as og:title, product description as og:description and product image as og:image
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Make social buttons show product picture+details ?
If you are using another tool suçh as "AddThis" or "ShareThis", you can add the following line in layouts/catalog/detail -- header-default.html to use og:imagejoakim wrote: I would like to use product title as og:title, product description as og:description and product image as og:image
<?php foreach( $this->detailProductItem->getRefItems( 'media', 'default', 'default' ) as $mediaItem ) : ?>
<meta property="og:image" content="http://www.YOURDOMAIN.com/<?php echo $this->content( $mediaItem->getUrl() ); ?>" />
<?php endforeach; ?>