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

#   Add tab on product page

##

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

Less More

- Posts: 78
- Thank you received: 3
-
-
-
- [](http://www.webhelpus.com)
-

10 years 10 months ago [\#225560](#225560) by [webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")  Replied by *[webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225560 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Yep, that did the trick. Thank you. So how do I move the last two fields (the media fields) from the Specifications tab to the new tab? I only want those two in that tab and not appearing at all in the Specifications tab.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzEwNDMtYWRkLXRhYi1vbi1wcm9kdWN0LXBhZ2U/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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)
-

10 years 10 months ago [\#225592](#225592) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225592 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

You have to edit the view "product / show_block_custom_main" and in the foreach add a PHP check in order to not display the desired fields, a check like: Code:

// right after the foreach line if(in_array($fieldName,array('CUSTOM_FIELD1','CUSTOM_FIELD2')) continue;

That way it will not be displayed in the specification tab, and to display it in the new tab, you have to edit the view "product / show_tabular" and in the div add code like: Code:

echo $this-&gt;element-&gt;CUSTOM_FIELD1; echo $this-&gt;element-&gt;CUSTOM_FIELD2;

Where of course "CUSTOM_FIELD1" and "CUSTOM_FIELD2" must be replaced by the custom field column name.

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

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

Less More

- Posts: 78
- Thank you received: 3
-
-
-
- [](http://www.webhelpus.com)
-

10 years 10 months ago [\#225652](#225652) by [webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")  Replied by *[webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225652 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

I put this: Code:

if(in_array($fieldName,array('sm_preview','sm_media')) continue;

right after
Code:

foreach ($this-&gt;fields as $fieldName =&gt; $oneExtraField) {

and before (and after) Code:

$value = '';

and it broke the website.

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

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

Less More

- Posts: 78
- Thank you received: 3
-
-
-
- [](http://www.webhelpus.com)
-

10 years 10 months ago [\#225655](#225655) by [webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")  Replied by *[webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225655 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Also, one of those echo lines is suppose to be restricted by group. It new shows up. How do I make it only seen by certain groups?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 10 months ago [\#225653](#225653) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225653 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

If you have PHP errors ; please take a look at your PHP error log in order to have more details about your issue.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 78
- Thank you received: 3
-
-
-
- [](http://www.webhelpus.com)
-

10 years 10 months ago [\#225760](#225760) by [webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")  Replied by *[webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225760 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

After turning on all the error reporting this is what was reported:
Code:

Parse error: syntax error, unexpected 'continue' (T_CONTINUE) in /com_hikashop/product/show_tabular.php on line 33

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzEwNDMtYWRkLXRhYi1vbi1wcm9kdWN0LXBhZ2U/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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)
-

10 years 10 months ago [\#225772](#225772) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225772 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

My bad, there is a missing parentheses in the given code, you have to use this one instead: Code:

if(in_array($fieldName,array('sm_preview','sm_media'))) continue;

To restrict on a user group, you have to add check on the user like that: Code:

$user = JFactory::getUser(); $groups = isset($user-&gt;groups) ? $user-&gt;groups : array(); if(in_array('X',$groups)){ }

Where X is the group id you want to apply the restriction.

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

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

Less More

- Posts: 78
- Thank you received: 3
-
-
-
- [](http://www.webhelpus.com)
-

10 years 10 months ago [\#225838](#225838) by [webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")  Replied by *[webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225838 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Code:

if(in_array($fieldName,array('sm_preview','sm_media'))) continue;

It doesn't cause any errors, but it also doesn't remove the fields from the Specifications tab.
Code:

$user = JFactory::getUser(); $groups = isset($user-&gt;groups) ? $user-&gt;groups : array(); if(in_array('X',$groups)){ }

So how would you do multiple groups?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzEwNDMtYWRkLXRhYi1vbi1wcm9kdWN0LXBhZ2U/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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)
-

10 years 10 months ago [\#225867](#225867) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225867 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

1/ I just tried on my local to be sure, and the code: Code:

if(in_array($fieldName,array('sm_preview','sm_media'))) continue;

Added tight after the code: Code:

foreach ($this-&gt;fields as $fieldName =&gt; $oneExtraField) {

In the view:

> product / show\_block\_custom\_main

Correctly remove the display of the custom product fields from the specifications tab.

So please check that the name you use is the same than the table name in the custom field settings. Another thing, are we talking about custom product fields or custom item fields ? If it is custom item fields so the view to edit is:

> product / show\_block\_custom\_item

2/ To check if one of the user groups match to one of the set groups you can use the code: Code:

$user = JFactory::getUser(); $groups = isset($user-&gt;groups) ? $user-&gt;groups : array(); if(in_array(array('X','Y'),$groups)){ }

Please note that these modifications are customizations, and we generally don't support this kind of requests.
If you are not a developer, you can post your customization request in the commercial jobs section of this forum ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[EnerW](/forum/user/38634-enerw "View EnerW's Profile")**
- [![EnerW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38634-enerw "View EnerW's Profile")
- [ Offline](/forum/user/38634-enerw)

Less More

- Posts: 101
- Thank you received: 8
-
-

10 years 10 months ago [\#225943](#225943) by [EnerW](/forum/user/38634-enerw "View EnerW's Profile")  Replied by *[EnerW](/forum/user/38634-enerw "View EnerW's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225943 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

If you can live without the Hikashop standard Specification TAB you could just remove / suppress it in:

Display → Views → Select (the correct) Template → Select Product → show_tabular

and replace:

&lt;?php if($hide_specs == 0){ ?&gt;

by

&lt;?php if($hide_specs == 1){ ?&gt;

So just change 0 to 1 you should find this line of code twice around line 20 and 260

It's a better solution then the CSS hide option(s) since Hikashop will not display or send any unneeded information and an update will not break or overwrite it.

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

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

Less More

- Posts: 78
- Thank you received: 3
-
-
-
- [](http://www.webhelpus.com)
-

10 years 10 months ago [\#225945](#225945) by [webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")  Replied by *[webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225945 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

I appreciate all your help. So I got the first part working. The last two custom fields are not in the Specifications Tab. Thank you.

Last question on this subject.
What am I doing wrong? Code:

&lt;?php $user = JFactory::getUser(); $groups = isset($user-&gt;groups) ? $user-&gt;groups : array(); if(in_array(array('7','8','10','11'),$groups)){ echo $this-&gt;element-&gt;sm_media; } else {echo $this-&gt;element-&gt;sm_preview;}?&gt;

What I want it to do is if the group is one of the above listed, then it displays the sm_media field. If not, then do the sm_preview field. It's just displaying the the sm_preview field.

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

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile")
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

10 years 10 months ago [\#225958](#225958) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  Replied by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#225958 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

hi,
How do we put the related products in tabular?

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzEwNDMtYWRkLXRhYi1vbi1wcm9kdWN0LXBhZ2U/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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)
-

10 years 10 months ago [\#226035](#226035) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#226035 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

@webhelpus: What is the type of your custom fields ? If it is product custom fields, so using your code should be working.
If it is "Item" fields, so you need to use code as in the "show_block_custom_item" view to display the fields.

@aminweb: To display related products in a tab, you can edit the view "product / show_tabular" and add code like: Code:

&lt;?php echo JHTML::_('content.prepare','{loadposition XX}'); ?&gt;

The {loadposition XX} code is a Joomla feature, this allow to have a module in any content, so that way you can setup a related module and display it where you want. [ docs.joomla.org/How\_do\_you\_put\_a\_module\_inside\_an\_article%3F](https://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F)

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

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

Less More

- Posts: 78
- Thank you received: 3
-
-
-
- [](http://www.webhelpus.com)
-

10 years 10 months ago [\#226147](#226147) by [webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")  Replied by *[webhelpus](/forum/user/11328-webhelpus "View webhelpus's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#226147 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Both fields are Product custom fields. I've copied the code above and below so you can see where it is

Code:

&lt;li id="hikashop_show_tabular_comment_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;?php echo JText::_('PRODUCT_COMMENT');?&gt;&lt;/li&gt; &lt;li id="hikashop_show_tabular_new_comment_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;?php echo JText::_('PRODUCT_NEW_COMMENT');?&gt;&lt;/li&gt; &lt;?php } ?&gt; &lt;/ul&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomBegin)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomBegin); ?&gt; &lt;div class="hikashop_tabs_content" id="listen"&gt; &lt;?php $user = JFactory::getUser(); $groups = isset($user-&gt;groups) ? $user-&gt;groups : array(); if(in_array(array('7','8','10','11'),$groups)){ echo $this-&gt;element-&gt;sm_media; } else {echo $this-&gt;element-&gt;sm_preview;}?&gt; &lt;/div&gt; &lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_description"&gt; &lt;div id="hikashop_product_description_main" class="hikashop_product_description_main"&gt; &lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description)); ?&gt; &lt;/div&gt; &lt;span id="hikashop_product_url_main" class="hikashop_product_url_main"&gt; &lt;?php if (!empty ($this-&gt;element-&gt;product_url)) { echo JText :: sprintf('MANUFACTURER_URL', '&lt;a href="' . $this-&gt;element-&gt;product_url . '" target="_blank"&gt;' . $this-&gt;element-&gt;product_url . '&lt;/a&gt;'); } ?&gt; &lt;/span&gt; &lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzEwNDMtYWRkLXRhYi1vbi1wcm9kdWN0LXBhZ2U/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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)
-

10 years 10 months ago [\#226151](#226151) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#226151 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

So you will have to do some debug, you can use the "var_dump" PHP function for that.
This can help you so see the groups of your user and so why the if condition is not respected.
Code:

var_dump($groups); // to see the groups of the current user var_dump($this-&gt;element-&gt;sm_media); // to see the content of this variable var_dump($this-&gt;element-&gt;sm_preview);

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

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile")
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

10 years 9 months ago -  10 years 9 months ago [\#226516](#226516) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  Replied by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#226516 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

hi xavier,
when add Code:

&lt;?php echo JHTML::_('content.prepare','{loadposition XX}'); ?&gt;

in tab ,other tabs not show andd display error :

> Notice: Undefined property: stdClass::$product\_description in C:\\wamp\\www\\ponisha\\components\\com\_hikashop\\views\\product\\tmpl\\show\_tabular.php on line 262

this my show_tabular.php bottom part code : Code:

&lt;div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part show_tabular"&gt; &lt;div id="hikashop_tabs_div"&gt; &lt;ul class="hikashop_tabs_ul"&gt; &lt;li id="hikashop_show_tabular_description_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;a onclick="displayTab('hikashop_show_tabular_description');" href="javascript:void(0);"&gt;&lt;?php echo JText::_('PRODUCT_DESCRIPTION');?&gt;&lt;/a&gt;&lt;/li&gt; &lt;?php if($hide_specs == 0){ ?&gt; &lt;li id="hikashop_show_tabular_specification_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;a onclick="displayTab('hikashop_show_tabular_specification');" href="javascript:void(0);"&gt;&lt;?php echo JText::_('SPECIFICATIONS');?&gt;&lt;/a&gt;&lt;/li&gt; &lt;?php } if($status_vote == "comment" &#124;&#124; $status_vote == "two" &#124;&#124; $status_vote == "both" ){ ?&gt; &lt;li id="hikashop_show_tabular_comment_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;a onclick="displayTab('hikashop_show_tabular_comment');" href="javascript:void(0);"&gt;&lt;?php echo JText::_('PRODUCT_COMMENT');?&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="hikashop_show_tabular_new_comment_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;a onclick="displayTab('hikashop_show_tabular_new_comment');" href="javascript:void(0);"&gt;&lt;?php echo JText::_('PRODUCT_NEW_COMMENT');?&gt;&lt;/a&gt;&lt;/li&gt; &lt;?php } ?&gt; &lt;li id="hikashop_show_tabular_rahnema_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;a onclick="displayTab('hikashop_show_tabular_rahnema');" href="javascript:void(0);"&gt;&lt;?php echo JText::_('PRODUCT_RAHNEMA');?&gt;&lt;/a&gt;&lt;/li&gt; &lt;li id="hikashop_show_tabular_related_li" class="hikashop_tabs_li ui-corner-top"&gt;&lt;a onclick="displayTab('hikashop_show_tabular_related');" href="javascript:void(0);"&gt;&lt;?php echo JText::_('PRODUCT_RELATED');?&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomBegin)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomBegin); ?&gt; &lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_rahnema"&gt; &lt;div id="hikashop_product_rahnema_main" class="hikashop_product_rahnema_main"&gt; &lt;?php $this-&gt;setLayout('show_block_product_files'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_related"&gt; &lt;div id="hikashop_product_related_main" class="hikashop_product_related_main"&gt; &lt;?php echo JHTML::_('content.prepare','{loadposition related}'); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_description"&gt; &lt;div id="hikashop_product_description_main" class="hikashop_product_description_main"&gt; &lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description)); ?&gt; &lt;/div&gt; &lt;span id="hikashop_product_url_main" class="hikashop_product_url_main"&gt; &lt;?php if (!empty ($this-&gt;element-&gt;product_url)) { echo JText :: sprintf('MANUFACTURER_URL', '&lt;a href="' . $this-&gt;element-&gt;product_url . '" target="_blank"&gt;' . $this-&gt;element-&gt;product_url . '&lt;/a&gt;'); } ?&gt; &lt;/span&gt; &lt;/div&gt; &lt;?php if($hide_specs == 0){ ?&gt; &lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_specification"&gt; &lt;?php $this-&gt;setLayout('show_block_dimensions'); echo $this-&gt;loadTemplate(); if(!empty($this-&gt;fields)){ $this-&gt;setLayout('show_block_custom_main'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;/div&gt; &lt;?php } if($status_vote == "comment" &#124;&#124; $status_vote == "two" &#124;&#124; $status_vote == "both" ){ ?&gt; &lt;form action="&lt;?php echo hikashop_currentURL() ?&gt;" method="post" name="hikashop_comment_form" id="hikashop_comment_form"&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomMiddle)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomMiddle); ?&gt; &lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_comment"&gt; &lt;div id="hikashop_product_vote_listing" class="hikashop_product_vote_listing"&gt; &lt;?php echo $layout_vote_listing; ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hikashop_tabs_content" id="hikashop_show_tabular_new_comment"&gt; &lt;div id="hikashop_product_vote_form" class="hikashop_product_vote_form"&gt; &lt;?php echo $layout_vote_form; ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;?php } ?&gt; &lt;input type="hidden" name="selected_tab" id="selected_tab" value="hikashop_show_tabular_description"/&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;bottomEnd)) echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;bottomEnd); ?&gt; &lt;/div&gt; &lt;/div&gt;

---

other quest...!

how can I simillar description main duplication? means : i want two description main form =&gt; 1-description 2-other description
and show both in produst page

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

Last edit: 10 years 9 months ago by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzEwNDMtYWRkLXRhYi1vbi1wcm9kdWN0LXBhZ2U/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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)
-

10 years 9 months ago [\#226524](#226524) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#226524 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

To have two descriptions for one product, you can create a custom product field.
Then thanks to code like given in previous posts, you can display the desired descriptions where you want on the product page.

[ www.hikashop.com/support/documentation/4...shop-field-form.html](http://www.hikashop.com/support/documentation/42-hikashop-field-form.html)

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

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile")
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

10 years 9 months ago -  10 years 9 months ago [\#226624](#226624) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  Replied by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#226624 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

hi Xavier,
First, thank you for your efforts.
how can meta description form change to WYSIWYG editor? (It is essential)
and displaye in produact page tabullar, simiilar description,comment,...
Please explain in detail,very thanks

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

Last edit: 10 years 9 months ago by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 9 months ago [\#226636](#226636) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#226636 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

Hi,

If you have questions which are not related on "add tab on product page" (the title of that thread) ; please create a new thread.

Thanks for your understanding.

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile")
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

10 years 9 months ago [\#227051](#227051) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  Replied by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")* on topic *[Add tab on product page](/forum/26-product-category-display/871043-add-tab-on-product-page?start=40#227051 "-- HikaShop version -- : HikaShop &#91;1407241754&#93; -- Joomla version -- : 3.3.3  Hi all,  I would like to add 2 or 3 tabs right next the description tab. Can you help me ? What files should I change ?  Kind regards !")*

related post : [ www.hikashop.com/forum/product-category-...html?start=40#226035](http://www.hikashop.com/forum/product-category-display/871043-add-tab-on-product-page.html?start=40#226035)

when add code for show related product in tab,Don&#96;t worked Characterist variant
attach file : show_tabullar.php

*This attachment is hidden for guests.
Please log in or register to see it.*

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzEwNDMtYWRkLXRhYi1vbi1wcm9kdWN0LXBhZ2U/c3RhcnQ9NDAmdG1wbD1tYXJrZG93bg==) 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.108 seconds

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