Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

og:image for social media sharing

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-01-2017, 01:39 AM
 
olly olly is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 4
 

Default 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!
__________________
Xcart 5.2.15
Reply With Quote
  #2  
Old 04-02-2017, 10:48 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 04-02-2017, 10:54 PM
 
olly olly is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 4
 

Default 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?
__________________
Xcart 5.2.15
Reply With Quote
  #4  
Old 04-02-2017, 11:04 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: og:image for social media sharing

Do you have this module installed and enabled?
https://market.x-cart.com/addons/go-social.html
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 04-02-2017, 11:05 PM
 
olly olly is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 4
 

Default Re: og:image for social media sharing

Aha! No I don't. Activating that now.
__________________
Xcart 5.2.15
Reply With Quote
  #6  
Old 04-02-2017, 11:27 PM
 
olly olly is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 4
 

Default 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.
__________________
Xcart 5.2.15
Reply With Quote
  #7  
Old 04-03-2017, 09:59 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #8  
Old 04-03-2017, 10:49 PM
 
olly olly is offline
 

Newbie
  
Join Date: Apr 2017
Posts: 4
 

Default Re: og:image for social media sharing

Thanks. What do you think could be stopping it working on my site?
__________________
Xcart 5.2.15
Reply With Quote
  #9  
Old 04-04-2017, 12:32 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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/
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #10  
Old 12-11-2018, 08:41 AM
 
FactorInteractivo FactorInteractivo is offline
 

Advanced Member
  
Join Date: Oct 2007
Posts: 44
 

Default 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 ?
__________________
X-Carting since 2006
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:59 PM.

   

 
X-Cart forums © 2001-2020