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

#   how to add tabs on default view product page

##

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 6 months ago -  10 years 6 months ago [\#239767](#239767) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#239767 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")* was created by *[ronron](/forum/user/40399-ronron "View ronron's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : no errors

i want to display tabs on the default products page.
configuration is
Layout on product page &gt; Default.
take note that i dont want to remove the specifications column located on the right side of the product.

i just want to add tabs below the product.

1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column?
2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it.
3. what are the positions available for custom fields?
4. is it possible to remove custom fields inside the specifications tab?
5. how to replicate custom fields inside specifications tab?

[ ![Screenshot-defaultview.png](/forum/attachment/31333) ](/forum/attachment/31333 "...efaultview.png")

By the way

i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product

[ hikashop.com/forum/product-category-disp...t-customisation.html](https://hikashop.com/forum/product-category-display/867221-tabular-layout-customisation.html)

- [ ![Screenshot-defaultview.png](/forum/attachment/31333) ](/forum/attachment/31333 "...efaultview.png") [ ](/forum/attachment/31333?download=1 "...efaultview.png")

Last edit: 10 years 6 months ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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: 86561
- Thank you received: 14307
-
-

10 years 6 months ago [\#239792](#239792) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#239792 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

Then why not add the tabs in the description with such extension ?
[ extensions.joomla.org/extension/tabs](http://extensions.joomla.org/extension/tabs)
That way, you keep the specifications on the right side and you have your tabs done easily at the bottom.
Because adding the tabs system in the default view requires properly development. You need to be careful to put the correct HTML/PHP from the show_tabular view file but also the javascript which handles the tabs there.

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 6 months ago [\#239884](#239884) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#239884 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Thanks

I am aware of that extension but not a priority. Can you please help me by answering my questions?

Thanks so much

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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: 86561
- Thank you received: 14307
-
-

10 years 6 months ago [\#239894](#239894) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#239894 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

My answer was for a simpler solution for you since you apparently had a hard time doing that customization yourself.

1. You can copy the javascript and PHP/HTML relative to the tabs from the show_tabular to the show_default view file to get the tabs there: 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;?php echo JText::_('PRODUCT_DESCRIPTION');?&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;?php echo JText::_('SPECIFICATIONS');?&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;?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="hikashop_show_tabular_description"&gt; &lt;div id="hikashop_product_description_main" class="hikashop_product_description_main" itemprop="description"&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)) { //DISPLAY the manufacturer 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 //LAYOUT show_block_dimensions $this-&gt;setLayout('show_block_dimensions'); echo $this-&gt;loadTemplate(); if(!empty($this-&gt;fields)){ //LAYOUT show_block_custom_main $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="adminForm_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_vote_listing" data-votetype="product" class="hikashop_product_vote_listing"&gt; &lt;?php //Layout show the comment listing 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_vote_form" data-votetype="product" class="hikashop_product_vote_form"&gt; &lt;?php //Layout show the comment form 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; &lt;script type="text/javascript"&gt; if(typeof(hkjQuery) == "undefined") window.hkjQuery = window.jQuery; window.hikashop.ready( function(){ var selectedTab = hkjQuery( "#selected_tab" ).val(); hkjQuery("#hikashop_tabs_div").children("div").css("display","none"); hkjQuery("#"+selectedTab+"_li").addClass("hikashop_tabs_li_selected"); hkjQuery("#"+selectedTab).css("display","inherit"); hkjQuery("#hikashop_tabs_div .hikashop_tabs_ul li").click(function(){ var currentLi = hkjQuery(this).attr("id"); var currentDiv = currentLi.replace("_li",""); hkjQuery("#hikashop_tabs_div").children("div").css("display","none"); hkjQuery("#hikashop_tabs_div").children("form").children("div").css("display","none"); hkjQuery("#"+currentDiv).css("display","inherit"); hkjQuery(".hikashop_tabs_li_selected" ).removeClass("hikashop_tabs_li_selected"); hkjQuery("#"+currentLi).addClass("hikashop_tabs_li_selected"); }); }); &lt;/script&gt;

2. 4. 5. Then in the show_tabular view file, you can move the code: Code:

if(!empty($this-&gt;fields)){ $this-&gt;setLayout('show_block_custom_main'); echo $this-&gt;loadTemplate(); }

to the same position where you have it in the show_default view file.
3. There are no positioning options for custom fields.

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

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile")
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

10 years 6 months ago [\#239991](#239991) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  Replied by *[twscott](/forum/user/43011-twscott "View twscott's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#239991 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

1. I followed the steps but I got the following error message:
Notice: Undefined variable: hide_specs in ![D:](/angry.gif "D:")\wamp\www\workspace\purity\templates\purity_iii\html\com_hikashop\product\show_default.php on line 200

Notice: Undefined variable: status_vote in ![D:](/angry.gif "D:")\wamp\www\workspace\purity\templates\purity_iii\html\com_hikashop\product\show_default.php on line 203

2. If I apply the extension, can it be set as default ?

Thanks

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 6 months ago -  10 years 6 months ago [\#240036](#240036) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240036 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

i got it to work by copying the code. how do i tell custom fields to appear on the right side or appear on the tabs? Example i want company profile to appear on the tabs whilte minimum order quantity will appear on the right side below add to whish list.

another example is what if i want to add a custom field infront of the product title or hikashop_product_name_main, i know how to create the custom field but dont know how to change its location

Also how do i remove the custom fields from the specifications tab? or specifications. apparently all custom fields appear under specifications.

thanks

Last edit: 10 years 6 months ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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: 86561
- Thank you received: 14307
-
-

10 years 6 months ago [\#240043](#240043) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240043 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

@twscott:
1. turn off the "error reporting" setting of the Joomla configuration.
2. I'm sorry but I don't understand what you mean. What do you want to set as default ?

@ronron:
In that case, you need to customize the file "show_block_custom_main" with custom code to display the fields or not.
For example, you could add such line at the end:
&lt;?php $this-&gt;done_once = true; ?&gt;
and then, where the fields are displayed, you could add a condition att he beginning of the foreach:
if($fieldName== 'XXX' &amp;&amp; empty($this-&gt;done_once)) continue;
and that would skip the display of the field XXX in the right area, while:
if($fieldName== 'YYY' &amp;&amp; !empty($this-&gt;done_once)) continue;
would skip the display of the field YYY in the tab area.

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 6 months ago -  10 years 6 months ago [\#240250](#240250) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240250 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

hi

please clarify you said

> For example, you could add such line at the end:
> &lt;?php $this-&gt;done\_once = true; ?&gt;

where in block_custom_main should i add this file? tried adding it at the end of the file but nothing happened ? where should i add the code above?
Code:

&lt;span id="hikashop_product_custom_value_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_product_custom_value"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$value); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } $specifFields = ob_get_clean(); if($displayTitle){ ?&gt; &lt;!------- sample display field for contol ------&gt; &lt;?php $this-&gt;done_once = true; ?&gt; &lt;!------- end display field for control ------&gt; &lt;div id="hikashop_product_custom_info_main" class="hikashop_product_custom_info_main"&gt; &lt;h4&gt;&lt;?php echo JText::_('SPECIFICATIONS');?&gt;&lt;/h4&gt; &lt;table width="100%"&gt; &lt;?php echo $specifFields; ?&gt; &lt;/table&gt; &lt;/div&gt; &lt;?php }

again, you said

> and then, where the fields are displayed, you could add a condition att he beginning of the foreach:

i did not see any foreach on the default and tabular file. in my case im using the default file. i did not see any foreach. i saw this code to call the show_block_custom_main" but where to add the next codes below? can you please specify?
Code:

if($fieldName== 'XXX' &amp;&amp; empty($this-&gt;done_once)) continue; and that would skip the display of the field XXX in the right area, while: if($fieldName== 'YYY' &amp;&amp; !empty($this-&gt;done_once)) continue; would skip the display of the field YYY in the tab area.

for example i have 2 custom fields.
1. cutom_right &gt; should appear on the right
2. custom_taabular_not_in_pecifications&gt; should appear on tabular but not in specification.

can we use this as examples?
also what is the custom field name? is it the column name?

Last edit: 10 years 6 months ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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: 86561
- Thank you received: 14307
-
-

10 years 6 months ago [\#240252](#240252) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240252 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

1. The &lt;?php $this-&gt;done_once = true; ?&gt; line by itself won't change anything. You also need to other piece of code.

2. That's normal. I've only talked about the show_block_custom_main so it's in there that you need to add it.
And as I said, you need to add it just after the foreach in there. To more more clear, after this line:
foreach ($this-&gt;fields as $fieldName =&gt; $oneExtraField) {

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 5 months ago -  10 years 5 months ago [\#240335](#240335) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240335 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

this is working now.

my new problem is that i have two(2) 'specifications tab'. One on the right and the other on tabs. I tried to change it using joomla language overrrides but both of them gets changes. how do i change both of them? example on the right is 'Product Specs' and on the tabs is 'Product Details'?

thanks

Last edit: 10 years 5 months ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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: 86561
- Thank you received: 14307
-
-

10 years 5 months ago [\#240366](#240366) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240366 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

First, do as I said and put the $this-&gt;done_once = true; line at the end of the show_block_custom_main view file.
Then, you can change the code:
JText::_('SPECIFICATIONS')
to:
(@$this-&gt;done_once? 'Product Details' : 'Product Specs' )
in that same file.

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 5 months ago [\#240478](#240478) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240478 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

hi again.

what about the following fields? i want it only on the right side. i tried this codes. it doesn't work. these are not custom fields.

the codes below work on custom fields but not on the following fields.

if($fieldName== 'weight' &amp;&amp; !empty($this-&gt;done_once)) continue;
if($fieldName== 'width' &amp;&amp; !empty($this-&gt;done_once)) continue;
if($fieldName== 'brand' &amp;&amp; !empty($this-&gt;done_once)) continue;
if($fieldName== 'length' &amp;&amp; !empty($this-&gt;done_once)) continue;
if($fieldName== 'height' &amp;&amp; !empty($this-&gt;done_once)) continue;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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 5 months ago [\#240487](#240487) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how to add tabs on default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240487 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

If the fields are not custom fields they are not handle in the view "show_block_custom_main" (as Nicolas told you).
Please take a look at that documentation page and the image which explain which view is displaying which product element.
And you will see the view you're looking for just below the price.
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

Regards,

---

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

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 5 months ago -  10 years 5 months ago [\#240564](#240564) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#240564 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

hi i manage to customized this by commenting out the dimensions block.

thanks.

Last edit: 10 years 5 months ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago [\#245764](#245764) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#245764 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

hi guys

i did not make a new thread as my question is related to the custom fields i created.

i added variants to my product. Variants are ok as can be seen here

Part of the message is hidden for the guests. Please log in or register to see it.

The problem is that when clicking on the variants all custom codes that i hid appears.

BEFORE

[ ![Screenshot-before.png](/forum/attachment/32683) ](/forum/attachment/32683 "...hot-before.png")

AFTER

[ ![Screenshot-after.png](/forum/attachment/32684) ](/forum/attachment/32684 "...shot-after.png")

Can i add something to the existing codes?

thanks

- [ ![Screenshot-before.png](/forum/attachment/32683) ](/forum/attachment/32683 "...hot-before.png") [ ](/forum/attachment/32683?download=1 "...hot-before.png")
- [ ![Screenshot-after.png](/forum/attachment/32684) ](/forum/attachment/32684 "...shot-after.png") [ ](/forum/attachment/32684?download=1 "...shot-after.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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: 86561
- Thank you received: 14307
-
-

10 years 3 months ago [\#245780](#245780) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to add tabs default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#245780 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

This indicates a problem with your customization.
The variants HTML is added to the page in the "show" file of the view "product", so maybe you need to modify stuff there so that it works like in show_tabular ?

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

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 3 months ago [\#245947](#245947) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[how to add tabs default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#245947 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

its working now

but i realize that there is a difference in the codes this is from product / show.php
Code:

foreach ($this-&gt;fields as $fieldName =&gt; $oneExtraField) { if(empty($variant-&gt;$fieldName) &amp;&amp; !empty($this-&gt;element-&gt;main-&gt;$fieldName)){ $variant-&gt;$fieldName = $this-&gt;element-&gt;main-&gt;$fieldName; } if(!empty($variant-&gt;$fieldName)) $variant-&gt;$fieldName = trim($variant-&gt;$fieldName); if(!empty($variant-&gt;$fieldName) &#124;&#124; (isset($variant-&gt;$fieldName) &amp;&amp; $variant-&gt;$fieldName === '0')) { ?&gt;

the code from show_block_custom_main.php has '$value = '';' right after the bracket as seen below.
Code:

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

do i have to keep it or not?

thanks again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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: 86561
- Thank you received: 14307
-
-

10 years 3 months ago [\#245957](#245957) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to add tabs default view product page](/forum/26-product-category-display/884440-how-to-add-tabs-on-default-view-product-page#245957 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : no errors  i want to display tabs on the default products page. configuration is Layout on product page &gt; Default. take note that i dont want to remove the specifications column located on the right side of the product.  i just want to add tabs below the product.  1. how can i do this?how can i create tabs using the default layout?how can i move the position of the specifications column? 2. what if i use tabular view, how do i add custom fields to appear below add to cart? on jikashop backend you can add custom fields but no way to select where to display it. 3. what are the positions available for custom fields? 4. is it possible to remove custom fields inside the specifications tab? 5. how to replicate custom fields inside specifications tab?  By the way  i already tried this, by xavier but i cant make it work. all custom fields appear inside the specifications tab. i can create a new tab but its always empty. plus i want the specifications column located on the right side of the product    hikashop.com/forum/product-category-disp...t-customisation.html")*

Hi,

The line:
$value = '';
is there only to avoid a potential warning. You can ignore it and I would recommend to keep it there.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ0NDAtaG93LXRvLWFkZC10YWJzLW9uLWRlZmF1bHQtdmlldy1wcm9kdWN0LXBhZ2U/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.132 seconds

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