More tabs on product page

  • Posts: 122
  • Thank you received: 4
  • Hikashop Business
6 years 7 months ago #277855

Hi
There is a tap who say description on product page and and you can see the text you type on the product inside hikashop. If you type weight and dimension you get another tap called specifikation. How can I type more information in specifikation than only weight and dimension???
How can I make more taps where I can type information???
Thank you very much in advance.
Best regards
Peter

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 7 months ago #277863

Hello,

I guess that you're talking about "tabs" and not "taps".
www.hikashop.com/forum/product-category-...on-product-page.html

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 122
  • Thank you received: 4
  • Hikashop Business
6 years 7 months ago #277918

Hi Jerome
Thanks for you reply.
Yes tabs:-)
I found this yesteday, but you cannot expect all people know where you put this code???
Is it possible to show with a photo where to find this place???
Thank you very much in advance.
Best regards
Peter

Please Log in or Create an account to join the conversation.

  • Posts: 81484
  • Thank you received: 13062
  • MODERATOR
6 years 7 months ago #277926

Hi,

On the thread there, there is a link to our documentation page which explains where to edit view files and how to find the view file you want to edit. And on that thread, we even tell you directly that it's the file "show_tabular" that you want to edit.
www.hikashop.com/support/support/documen...ize-the-display.html

Please Log in or Create an account to join the conversation.

  • Posts: 122
  • Thank you received: 4
  • Hikashop Business
6 years 7 months ago #278548

Hi Nicolas

Thank you very much.

I need you to be more specific.
product / show tabular.php
In what line number I put what???

And where I write the text I need to write inside the tab?

When you are not specific we use too much time. I have used 5 hours search where and what. And in thi end, I am not sure and I´m afraid to change things. I can see other people also had problems.

I really do not understand why this is not included in the setup that you can choose 1 to 5 custom tabs. You have so many settings why not this?

Hope you can help so I can continue:-)
Best regards
Peter

Please Log in or Create an account to join the conversation.

  • Posts: 81484
  • Thank you received: 13062
  • MODERATOR
6 years 7 months ago #278550

Hi,

There is no setting for this because the plan in the future is to augment the view edition with templating so that you would be able to easily edit the layout with tags without having to edit the PHP.
Settings are nice, but as you say we already have too many settings. The goal is not to add more settings, but make the interface better so that less settings are necessary to be able to do more things. That's what we've been working on for some time in some areas like the cart and the checkout, but we still have work in other areas like this one.
Another issue is that people want different things. We actually already have a new tab added automatically for custom product fields. It's just that they all go in the same tab. Some people might want different custom fields in different tabs and some together in some tabs, or a mix of both. Making something generic but flexible is really complex, and it adds complexity.

Besides, the modification to do for what you want is really not that complex. Our FAQ ( www.hikashop.com/support/documentation/106-faq.html#layo ) explains:

How to add a tab in the tabular view ?
You have to edit the view "product / show_tabular" via the menu Display > Views and add an entry like:

<li id="hikashop_show_tabular_custom_li" class="hikashop_tabs_li ui-corner-top">
    <a onclick="displayTab('hikashop_show_tabular_custom');" href="javascript:void(0);">
        <?php echo JText::_('YOUR_TAB_NAME');?>
    </a>
</li>
In the < ul class="hikashop_tabs_ul"> element. Then, add a div with content after the "ul" thanks to:
<div class="hikashop_tabs_content" id="hikashop_show_tabular_custom">
<!-- Your div content -->
</div>

So all that is left is to replace <!-- Your div content --> by: <?php echo $this->element->XXX; ?> where XXX is the column name of your custom product field, and you'll have a new tab with content you can add in the products when you edit them thanks to the custom field.

Please Log in or Create an account to join the conversation.

  • Posts: 122
  • Thank you received: 4
  • Hikashop Business
6 years 7 months ago #278574

Hi Nicolas
Ok, thanks for the explanation.
I do not know what you mean with the last part. It seems like I have to put the code in after "thanks to"?
I cannot find "thanks to" ??
I can find this on line 215 <ul class = "hikashop_tabs_ul">
Which line should I put this code on ????
<div class = "hikashop_tabs_content" id = "hikashop_show_tabular_custom">
<! - Your div content ->
</ Div>
Best regards
Peter

Please Log in or Create an account to join the conversation.

  • Posts: 81484
  • Thank you received: 13062
  • MODERATOR
6 years 7 months ago #278634

Hi,

What that sentence means is that you need to add the code

<div class="hikashop_tabs_content" id="hikashop_show_tabular_custom">
<!-- Your div content -->
</div>
right after
< ul class="hikashop_tabs_ul">

Please Log in or Create an account to join the conversation.

  • Posts: 122
  • Thank you received: 4
  • Hikashop Business
6 years 6 months ago #278772

Hi Nicolas
When I have put all you said it look like in the photo when I click on the new tabs????
See photo.
BR.
Peter

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 4502
  • Thank you received: 610
  • MODERATOR
6 years 6 months ago #278783

Hello,

There must be an error, without an Url link with your custom that will be hard to see where where is trouble.
You have to know that in order to custom HikaShop view you have to know html & php, we can only guide you, the rest is up to you.

Regards

Last edit: 6 years 6 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum