adding custom tabs to product page tabular layout

  • Posts: 25
  • Thank you received: 1
10 years 5 months ago #197715

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.37
-- Error-message(debug-mod must be tuned on) -- : -

Hi,
I want to add custom tabs to product page's layout. I created the tabs in show_tabular.php with empty content, I wonder if I can get the tab's content from an article or is there any other way to call the content from somewhere else.
I hope I'm clear with my question.
Thanks in advance.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #197721

Hi,

You could potentially call a module in the tab to get the module content.
Thanks to the {loadmodule XX} tag where XX is the id of the module:

<?php
	echo JHTML::_('content.prepare','{loadmodule XX}');
?>

The following user(s) said Thank You: nabukadnezar

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

  • Posts: 25
  • Thank you received: 1
10 years 5 months ago #198361

Thank you for your answer, somehow I couldn't achive with "loadmodule" but I tried "loadposition" and it worked.

<?php
          echo JHTML::_('content.prepare','{loadposition myposition}');
?>

Last edit: 10 years 5 months ago by Jerome. Reason: [code] is nice
The following user(s) said Thank You: Jerome

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

Time to create page: 0.064 seconds
Powered by Kunena Forum