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

#   Make Komento comments as a tab ?

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 5 months ago [\#270727](#270727) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Make Komento comments as a tab ?](/forum/30-integrations/890483-make-komento-comments-as-a-tab#270727 "-- HikaShop version -- : 3.1.0  Hi I want to ask komento comments to appear as a tab on the product page (show&#95;tabular.php). I found the code to show the comments now, the goal is to put it on the tab. How can I do it?")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

-- HikaShop version -- : 3.1.0

Hi I want to ask komento comments to appear as a tab on the product page (show_tabular.php). I found the code to show the comments now, the goal is to put it on the tab. How can I do it?
Code:

&lt;div class="hikashop_external_comments" id="hikashop_external_comments" style="clear:both"&gt; &lt;?php if($this-&gt;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($this-&gt;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'); } } elseif($this-&gt;config-&gt;get('comments_feature') == 'komento') { $comments = HIKASHOP_ROOT . 'components' . DS . 'com_komento' . DS . 'bootstrap.php'; if(file_exists($comments)) { require_once ($comments); echo KT::commentify('com_hikashop', $this-&gt;product, array('params' =&gt; '')); } } ?&gt; &lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy84OTA0ODMtbWFrZS1rb21lbnRvLWNvbW1lbnRzLWFzLWEtdGFiP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

9 years 5 months ago [\#270759](#270759) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Make Komento comments as a tab ?](/forum/30-integrations/890483-make-komento-comments-as-a-tab#270759 "-- HikaShop version -- : 3.1.0  Hi I want to ask komento comments to appear as a tab on the product page (show&#95;tabular.php). I found the code to show the comments now, the goal is to put it on the tab. How can I do it?")*

Hi,

Our FAQ has documentation on how to add extra tabs to the tabular layout of the product page:
[ www.hikashop.com/support/documentation/106-faq.html#layo](https://www.hikashop.com/support/documentation/106-faq.html#layo)
So do that and move the code in the content of the tab and that should do it.

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy84OTA0ODMtbWFrZS1rb21lbnRvLWNvbW1lbnRzLWFzLWEtdGFiP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 5 months ago -  9 years 5 months ago [\#270814](#270814) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Make Komento comments as a tab ?](/forum/30-integrations/890483-make-komento-comments-as-a-tab#270814 "-- HikaShop version -- : 3.1.0  Hi I want to ask komento comments to appear as a tab on the product page (show&#95;tabular.php). I found the code to show the comments now, the goal is to put it on the tab. How can I do it?")*

Hi I made the tab it works but Komento does not show up. Note: Komento works under the submodules.
[ ![ScreenShot06-01-17at09.29PM.PNG](/forum/attachment/38405) ](/forum/attachment/38405 "...7at09.29PM.PNG")

Once the code is placed, nothing appears
[ ![ScreenShot06-01-17at09.30PM.PNG](/forum/attachment/38406) ](/forum/attachment/38406 "...7at09.30PM.PNG")

Code Code:

&lt;li id="hikashop_show_tabular_external_comments_li" class="hikashop_tabs_li ui-corner-top"&gt; &lt;?php echo JText::_('PRODUCT_COMMENT');?&gt; &lt;/li&gt;

Code:

&lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_external_comments"&gt; &lt;?php if($this-&gt;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($this-&gt;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'); } } elseif($this-&gt;config-&gt;get('comments_feature') == 'komento') { $comments = HIKASHOP_ROOT . 'components' . DS . 'com_komento' . DS . 'bootstrap.php'; if(file_exists($comments)) { require_once ($comments); echo KT::commentify('com_hikashop', $this-&gt;product, array('params' =&gt; '')); } } ?&gt; &lt;/div&gt;

- [ ![ScreenShot06-01-17at09.29PM.PNG](/forum/attachment/38405) ](/forum/attachment/38405 "...7at09.29PM.PNG") [ ](/forum/attachment/38405?download=1 "...7at09.29PM.PNG")
- [ ![ScreenShot06-01-17at09.30PM.PNG](/forum/attachment/38406) ](/forum/attachment/38406 "...7at09.30PM.PNG") [ ](/forum/attachment/38406?download=1 "...7at09.30PM.PNG")

Last edit: 9 years 5 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy84OTA0ODMtbWFrZS1rb21lbnRvLWNvbW1lbnRzLWFzLWEtdGFiP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

9 years 5 months ago [\#270819](#270819) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Make Komento comments as a tab ?](/forum/30-integrations/890483-make-komento-comments-as-a-tab#270819 "-- HikaShop version -- : 3.1.0  Hi I want to ask komento comments to appear as a tab on the product page (show&#95;tabular.php). I found the code to show the comments now, the goal is to put it on the tab. How can I do it?")*

Try to replace $this-&gt;product by $this-&gt;element in that code.

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy84OTA0ODMtbWFrZS1rb21lbnRvLWNvbW1lbnRzLWFzLWEtdGFiP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 5 months ago [\#270849](#270849) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Make Komento comments as a tab ?](/forum/30-integrations/890483-make-komento-comments-as-a-tab#270849 "-- HikaShop version -- : 3.1.0  Hi I want to ask komento comments to appear as a tab on the product page (show&#95;tabular.php). I found the code to show the comments now, the goal is to put it on the tab. How can I do it?")*

Thanks, everything is fine now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy84OTA0ODMtbWFrZS1rb21lbnRvLWNvbW1lbnRzLWFzLWEtdGFiP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.083 seconds

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