-- url of the page with the problem -- :
www.thaioptics.com
-- HikaShop version -- : Business 2.1.3
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.30
-- Browser(s) name and version -- : Firefox 33.0
After I upgraded my Joomla 3.1.5 -> 3.3.6, my jcomment form for each product just disappears !
I have no idea what happened
so I try to debug the Joomla 3.1.5 comparing to Joomla 3.3.6
I found that the problem comes from components\com_hikashop\views\product\tmpl\show.php
Please note that the -> sign indicates the flow of execution.
<div class="hikashop_external_comments" id="hikashop_external_comments" style="clear:both">
<?php
->$config = & hikashop_config();
->if ($config->get('comments_feature') == 'jcomments') {
->$comments = HIKASHOP_ROOT . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php';
->if (file_exists($comments)) {
->require_once ($comments);
->if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name)){
$product_id = $this->element->main->product_id;
$product_name = $this->element->main->product_name;
}else{
->$product_id = $this->element->product_id;
->$product_name = $this->element->product_name;
}
->echo JComments::showComments($product_id, 'com_hikashop', $product_name);
}
}
I found that Joomla 3.1.5 return the right values of $product_id and $product_name while Joomla 3.3.6 returns $product_id = NULL and $product_name = NULL
I think this is the root cause. How do I fix it ? or please correct me if my investigation is wrong. Thank you
( Now, I cannot upgrade to the latest Hikashop Business Version

)