-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.28
-- PHP version -- : 7.3.33
Hi,
I just published the System Hikashop Social Networks plugin and enabled the Open Graph meta tag. Other options are disabled.
The tags og:title, og:type, og:image, og:url and og:site_name are correct.
But og:description is incorrect. It doesnot show the product meta description, as if should.
It shows the entire product description.
I found a way to correct this on a local copy of the website by changing the file plugins/system/hikashopsocial/ hikashopsocial.php
Original line 470
$ret->description = $element->product_description;
Changed line
$ret->description = $element->product_meta_description;
After this hack og:description indeed shows the product meta description.
I'm just a PHP amateur so probably this hack is not the right way to handle the problem.
But for some reason without this hack the meta description is not used in og:description.
Please advise.
Udo