X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   og:image for social media sharing (https://forum.x-cart.com/showthread.php?t=75157)

olly 04-01-2017 01:39 AM

og:image for social media sharing
 
Hi all,

Trying to find a simple way of creating a dynamic og:image for my Xcart store pages. For product X, we want a relevant image, another for product Y etc.

Easy to do a static one that's the same across the whole site (surprisingly even that's not a standard output of Xcart), but it's a dynamic one I'm after.

Anyone done this before or know of an easy way to do this?

Thanks!

qualiteam 04-02-2017 10:48 PM

Re: og:image for social media sharing
 
Actually, XC5 does populate the og:image meta tag with image created from the product picture - check this page: https://demostore.x-cart.com/dota-2-sniper-plush.html
And you can adjust the og: tags for a product (see the "Open Graph meta tags" field when editing a product).

Is this working for your site?

olly 04-02-2017 10:54 PM

Re: og:image for social media sharing
 
Strange. I don't have that feature: https://www.sturdrinks.eu/shop/goodness-green-apple.html?category_id=2

Do you know which version of Xcart 5 was it released in?

qualiteam 04-02-2017 11:04 PM

Re: og:image for social media sharing
 
Do you have this module installed and enabled?
https://market.x-cart.com/addons/go-social.html

olly 04-02-2017 11:05 PM

Re: og:image for social media sharing
 
Aha! No I don't. Activating that now.

olly 04-02-2017 11:27 PM

Re: og:image for social media sharing
 
That's fixed it on product pages but it's not adding any tags to category pages and the shop homepage. What could cause that? I've cleared the aggregation cache and widget cache with no effect.

qualiteam 04-03-2017 09:59 PM

Re: og:image for social media sharing
 
It should work - as far as I see, in the source code of the 5.2.x version of the module, there is the code that render Open Graph meta tags for categories and SimpleCMS pages: XLite\Module\CDev\GoSocial\Model\Category and XLite\Module\CDev\GoSocial\Model\Page

olly 04-03-2017 10:49 PM

Re: og:image for social media sharing
 
Thanks. What do you think could be stopping it working on my site?

qualiteam 04-04-2017 12:32 AM

Re: og:image for social media sharing
 
Unfortunately, I can't guess this. You need someone to check this on your server.
Did you contact our support staff? https://secure.x-cart.com/

FactorInteractivo 12-11-2018 08:41 AM

Re: og:image for social media sharing
 
Hi ! I have the same problem (it's not adding any tags to category pages and the shop homepage) but support says I have to update the product to 5.3, that they are not supporting 5.2 (even though its a bug). Is there any way to fix this ?


All times are GMT -8. The time now is 06:13 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.