Different tabs on different product pages

  • Posts: 9
  • Thank you received: 0
  • Hikashop Business
8 years 2 weeks ago #270570

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.2

I have my site in tabular layout. I would like to have different tabs on different pages (both the number of tabs and the titles of the tabs). Is this possible?

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 2 weeks ago #270573

Hello,

Without knowing how you want to determine the number of tabs and the content ; it will be very difficult to give you a precise answer.
But, what is sure is that you need to perform a view override for the view "product / show_tabular" and add some code in order to display your different tabs depending the product (the "page").

www.hikashop.com/support/documentation/1...-display.html#layout

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: 9
  • Thank you received: 0
  • Hikashop Business
8 years 2 weeks ago #270642

I want the flexibility for them to be different. For example one may have Description, Specification and Video, another may have Description Specification and Downloads. I want this to vary in both number of tabs and name for all products (for example, not all products have a video so I don't want an empty Video tab on those pages).

I have edited the 'product/show_tabular' layout but a tab appears on all product pages. Ideally I would like it to show all the possible tabs in the back end but they only appear on the front end if any text is written in those boxes. Is this possible?

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

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 2 weeks ago #270643

Hi,

It sure is possible since you can write the custom code you want.
Supposing that your data is stored in custom fields of the table "product", you must be using such code to display the content in the extra tabs:
<?php echo $this->element->XXX; ?>
where XXX is the column name of the custom field.
So you can just check whether that variable is empty or not when you're displaying the title of your tab.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum