- Posts: 13
- Thank you received: 0
Social Plugin Facebook Share Desription
-- PHP version -- : 5
-- Browser(s) name and version -- : Trust Deal
Hi,
is it possible to change the Facebook Share Description, it retrives the product description, iwould like it to retrive the Meta Description in the Product.
Thank you
Please Log in or Create an account to join the conversation.
It requires to modify the plugin itself ; so it is possible but it's not recommended if you want to update HikaShop afterwards (because you will lost your modification with the update).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Thank you
Please Log in or Create an account to join the conversation.
So you have to edit the file "plugins/system/hikashopsocial/hikashopsocial.php" in the function "_addFacebookButton()" replace:
Please Log in or Create an account to join the conversation.
Thank you for the info.
i did what written before but no luck, everytime i press the share button it keeps retrieving the product description.
thank you
Please Log in or Create an account to join the conversation.
thank you
Please Log in or Create an account to join the conversation.
My bad, wrong modification, please revert back the code to:
Please Log in or Create an account to join the conversation.
i have done the changes and i cannot see the Meta description.
Please Log in or Create an account to join the conversation.
The previous code must work, but as I remember Facebook has a kind of cache, so the changes may take time to appear correctly. I will have a deeper look at the Facebook API.
Please Log in or Create an account to join the conversation.
the changes still haven't been done.
thank you
Please Log in or Create an account to join the conversation.
So if the changes has no effect, please try to disable the plugin and see if you still have the meta tag in the page content.
If it is, so it come from another plugin/component, that don't come from HikaShop.
Please Log in or Create an account to join the conversation.
I did what you written but no luck, I noticed in the plugin there are 2 hikashop social network plug, I enabled the system but nothing happens, I disable the content plugin and the social network goes away. I have attached an image so you can see.
thank you
Please Log in or Create an account to join the conversation.
Please disable the content plugin, and enable the system one with the indicated code changes.
Please Log in or Create an account to join the conversation.