[Skip to main content](#vessel-content)

#   Jcomment form for each product disappears.

##

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

11 years 11 months ago -  11 years 11 months ago [\#179845](#179845) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  *[Jcomment form for each product disappears.](/forum/26-product-category-display/873048-jcomment-form-for-each-product-disappears#179845 "-- 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 -&gt; 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&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;show.php  Please note that the -&gt; sign indicates the flow of execution.  I found that Joomla 3.1.5 return the right values of $product&#95;id and $product&#95;name while Joomla 3.3.6 returns $product&#95;id = NULL and $product&#95;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 :( )")* was created by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")*

-- url of the page with the problem -- : [ www.thaioptics.com](http://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 -&gt; 3.3.6, my jcomment form for each product just disappears !

I have no idea what happened ![:(](/media/kunena/emoticons/22.png ":(") 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 -&gt; sign indicates the flow of execution.
Code:

&lt;div class="hikashop_external_comments" id="hikashop_external_comments" style="clear:both"&gt; &lt;?php -&gt;$config = &amp; hikashop_config(); -&gt;if ($config-&gt;get('comments_feature') == 'jcomments') { -&gt;$comments = HIKASHOP_ROOT . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php'; -&gt;if (file_exists($comments)) { -&gt;require_once ($comments); -&gt;if (hikashop_getCID('product_id')!=$this-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)){ $product_id = $this-&gt;element-&gt;main-&gt;product_id; $product_name = $this-&gt;element-&gt;main-&gt;product_name; }else{ -&gt;$product_id = $this-&gt;element-&gt;product_id; -&gt;$product_name = $this-&gt;element-&gt;product_name; } -&gt;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 ![:(](/media/kunena/emoticons/22.png ":(") )

Last edit: 11 years 11 months ago by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMwNDgtamNvbW1lbnQtZm9ybS1mb3ItZWFjaC1wcm9kdWN0LWRpc2FwcGVhcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

11 years 11 months ago -  11 years 11 months ago [\#179848](#179848) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Jcomment form for each product disappears.](/forum/26-product-category-display/873048-jcomment-form-for-each-product-disappears#179848 "-- 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 -&gt; 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&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;show.php  Please note that the -&gt; sign indicates the flow of execution.  I found that Joomla 3.1.5 return the right values of $product&#95;id and $product&#95;name while Joomla 3.3.6 returns $product&#95;id = NULL and $product&#95;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 :( )")*

Anyway, why is the coding area just a plain text ? It should be highlighted text.
I have tried code=php but it doesn't work.

Last edit: 11 years 11 months ago by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMwNDgtamNvbW1lbnQtZm9ybS1mb3ItZWFjaC1wcm9kdWN0LWRpc2FwcGVhcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#179944](#179944) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Jcomment form for each product disappears.](/forum/26-product-category-display/873048-jcomment-form-for-each-product-disappears#179944 "-- 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 -&gt; 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&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;show.php  Please note that the -&gt; sign indicates the flow of execution.  I found that Joomla 3.1.5 return the right values of $product&#95;id and $product&#95;name while Joomla 3.3.6 returns $product&#95;id = NULL and $product&#95;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 :( )")*

Hi,

Please try to replace: Code:

$this-&gt;params-&gt;set('show_price_weight', 0); ?&gt; &lt;div class="hikashop_submodules" id="hikashop_submodules" style="clear:both"&gt; &lt;?php if (!empty ($this-&gt;modules) &amp;&amp; is_array($this-&gt;modules)) { jimport('joomla.application.module.helper'); foreach ($this-&gt;modules as $module) { echo JModuleHelper :: renderModule($module); } } ?&gt; &lt;/div&gt; &lt;div class="hikashop_external_comments" id="hikashop_external_comments" style="clear:both"&gt; &lt;?php $config = &amp; hikashop_config(); if ($config-&gt;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-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)){ $product_id = $this-&gt;element-&gt;main-&gt;product_id; $product_name = $this-&gt;element-&gt;main-&gt;product_name; }else{ $product_id = $this-&gt;element-&gt;product_id; $product_name = $this-&gt;element-&gt;product_name; } echo JComments::showComments($product_id, 'com_hikashop', $product_name); } } elseif ($config-&gt;get('comments_feature') == 'jomcomment') { $comments = HIKASHOP_ROOT . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php'; if (file_exists($comments)) { require_once ($comments); if (hikashop_getCID('product_id')!=$this-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)) $product_id = $this-&gt;element-&gt;main-&gt;product_id; else $product_id = $this-&gt;element-&gt;product_id; echo jomcomment($product_id, 'com_hikashop'); } } ?&gt; &lt;/div&gt;&lt;?php } ?&gt; &lt;/div&gt;

By: Code:

$this-&gt;params-&gt;set('show_price_weight', 0); $this-&gt;product = $this-&gt;element; ?&gt; &lt;div class="hikashop_submodules" id="hikashop_submodules" style="clear:both"&gt; &lt;?php if (!empty ($this-&gt;modules) &amp;&amp; is_array($this-&gt;modules)) { jimport('joomla.application.module.helper'); foreach ($this-&gt;modules as $module) { echo JModuleHelper :: renderModule($module); } } ?&gt; &lt;/div&gt; &lt;div class="hikashop_external_comments" id="hikashop_external_comments" style="clear:both"&gt; &lt;?php $config = &amp; hikashop_config(); if ($config-&gt;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-&gt;product-&gt;product_id &amp;&amp; isset ($this-&gt;product-&gt;main-&gt;product_name)){ $product_id = $this-&gt;product-&gt;main-&gt;product_id; $product_name = $this-&gt;product-&gt;main-&gt;product_name; }else{ $product_id = $this-&gt;product-&gt;product_id; $product_name = $this-&gt;product-&gt;product_name; } echo JComments::showComments($product_id, 'com_hikashop', $product_name); } } elseif ($config-&gt;get('comments_feature') == 'jomcomment') { $comments = HIKASHOP_ROOT . 'plugins' . DS . 'content' . DS . 'jom_comment_bot.php'; if (file_exists($comments)) { require_once ($comments); if (hikashop_getCID('product_id')!=$this-&gt;product-&gt;product_id &amp;&amp; isset ($this-&gt;product-&gt;main-&gt;product_name)) $product_id = $this-&gt;product-&gt;main-&gt;product_id; else $product_id = $this-&gt;product-&gt;product_id; echo jomcomment($product_id, 'com_hikashop'); } } ?&gt; &lt;/div&gt;&lt;?php } ?&gt; &lt;/div&gt;

The following user(s) said Thank You: [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMwNDgtamNvbW1lbnQtZm9ybS1mb3ItZWFjaC1wcm9kdWN0LWRpc2FwcGVhcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

11 years 11 months ago [\#180051](#180051) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Jcomment form for each product disappears.](/forum/26-product-category-display/873048-jcomment-form-for-each-product-disappears#180051 "-- 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 -&gt; 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&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;show.php  Please note that the -&gt; sign indicates the flow of execution.  I found that Joomla 3.1.5 return the right values of $product&#95;id and $product&#95;name while Joomla 3.3.6 returns $product&#95;id = NULL and $product&#95;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 :( )")*

:woohoo: Wow ... it works ! Thank you so much :woohoo:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMwNDgtamNvbW1lbnQtZm9ybS1mb3ItZWFjaC1wcm9kdWN0LWRpc2FwcGVhcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

11 years 10 months ago [\#183239](#183239) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Jcomment form for each product disappears.](/forum/26-product-category-display/873048-jcomment-form-for-each-product-disappears#183239 "-- 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 -&gt; 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&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;show.php  Please note that the -&gt; sign indicates the flow of execution.  I found that Joomla 3.1.5 return the right values of $product&#95;id and $product&#95;name while Joomla 3.3.6 returns $product&#95;id = NULL and $product&#95;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 :( )")*

-- url of the page with the problem -- : [ www.thaioptics.com](http://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

Hello,
I really appreciate your help. Your solution works great to bring the Jcomment form back. However, I have found 2 more problems.

I enable Jcomment throughout my website ( under joomla articles and under products in Hikashop)

The Jcomment forms under all Joomla articles work perfectly. After users had submitted their comments, the Jcomment forms refreshed itself and displayed the comments immediately. After that, I got an email notification for all comments.

Unfortunately, the Jcomment forms under all Hikashop products have a weird behavior. It fails to refresh itself, so users cannot see their comments immediately. Users have to reload the page to see their comments and, more importantly, I don't get any Jcomment email notification, so I don't know my customers ask me a question.

Please feel free to test at [ www.thaioptics.com](http://www.thaioptics.com)

Best regards and Thank you very much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMwNDgtamNvbW1lbnQtZm9ybS1mb3ItZWFjaC1wcm9kdWN0LWRpc2FwcGVhcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

11 years 10 months ago [\#183262](#183262) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Jcomment form for each product disappears.](/forum/26-product-category-display/873048-jcomment-form-for-each-product-disappears#183262 "-- 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 -&gt; 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&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;show.php  Please note that the -&gt; sign indicates the flow of execution.  I found that Joomla 3.1.5 return the right values of $product&#95;id and $product&#95;name while Joomla 3.3.6 returns $product&#95;id = NULL and $product&#95;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 :( )")*

Hi,

The code of Xavier just loads the Jcomment interface under the product page. It's up to Jcomment itself to refresh itself if necessary and to send the email if necessary. Since we don't know how Jcomment works, we cannot help on these issues.
I would recommend to contact the Jcomment support for help on these questions.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMwNDgtamNvbW1lbnQtZm9ybS1mb3ItZWFjaC1wcm9kdWN0LWRpc2FwcGVhcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
