I think the actual problem may be in the file:
plugins/content/hikashopsocial/hiskashopsocial.php - Line 261
In my configuration, I haven't setup the FB Admin ID. This returns the $html before the description tag is included. I commented out the description tag line and placed it before it returns when no FB Admin ID is found, it now renders the description properly.
...
$this->meta['property="og:site_name"']='<meta property="og:site_name" content="'.htmlspecialchars($siteName, ENT_COMPAT,'UTF-8').'"/> ';
// Moved the bellow line here to always include teh description.
$this->meta['property="og:description"']='<meta property="og:description" content="'.htmlspecialchars(strip_tags($product->product_description), ENT_COMPAT,'UTF-8').'"/> ';
if(!empty($plugin->params['admin'])){
$this->meta['property="fb:admins"']='<meta property="fb:admins" content="'.htmlspecialchars($plugin->params['admin'], ENT_COMPAT,'UTF-8').'" />'; }
else{
return $html;
}
// $this->meta['property="og:description"']='<meta property="og:description" content="'.htmlspecialchars(strip_tags($product->product_description), ENT_COMPAT,'UTF-8').'"/> ';
return $html;
I also had the following problem:
And I fixed it by modifying line 316 of the same file. It was always returning a blank URL because it was always finding a record in the DB.
$queryImage = 'SELECT * FROM '.hikashop_table('file').' WHERE file_ref_id='.$product_id.' AND file_type=\'product\' ORDER BY file_ordering ASC, file_id ASC';
$db->setQuery($queryImage);
$image = $db->loadObject();
// Commented the bellw line because it was alwasy returning an empty URL
//$imageUrl = '';
$imageUrl=JURI::base().$this->main_uploadFolder_url.$image->file_path; // this is the replacement line
if(empty($image)){
$queryImage = 'SELECT * FROM '.hikashop_table('file').' as a LEFT JOIN '.hikashop_table('product').' as b ON a.file_ref_id=b.product_id WHERE product_parent_id='.$product_id.' AND file_type=\'product\' ORDER BY file_ordering ASC, file_id ASC';
$db->setQuery($queryImage);
$image = $db->loadObject();
if(!empty($image))
$imageUrl=JURI::base().$this->main_uploadFolder_url.$image->file_path;
}
return $imageUrl;
Result:
Elliot, is this fine or is there do I have something wrong in my config?