Skip to main content

Tabs on product page

More
14 years 3 months ago - 9 years 2 weeks ago #52260 by texomapoolguy
can anyone help me I am trying to put tabs on product page... goal is to get description...downloads...and related to render in tabs under product... downloaded nonumbers tabber.. get that i need to work with show under product and show_default .... don't get what to place where to accomplish my goal...

I get this:

Tabber works with tags:
Code:
{tab=Tab Title 1} Your text... {tab=Tab Title 2} Your text... {/ tabs}
Can do this:

You will have to edit the file "show_default" as I explained in order
to add the tabs tags in the different places to separate each element.
Then, in the file "show" of the view "product", you can replace the lines:
$this->setLayout($this->productlayout);
echo $this->loadTemplate();

by:
$this->setLayout($this->productlayout);
echo JHTML::_('content.prepare',$this->loadTemplate());

cant seem to understand where to place {tab=Tab Title 1} in the show_default and when im in show_default I see the description and files.. dont see how i would bring up the related to a tab...

see many hika sites with these tabs like i want so please someone help me out attached a pic showing what i wind up with..LOL

Last edit: 9 years 2 weeks ago by Jerome. Reason: [code] is nice

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

More
14 years 3 months ago - 9 years 2 weeks ago #52326 by nicolas
Replied by nicolas on topic Re: Tabs on product page
You need to add:
{tab=Tab Title 1}
just before:
<div id="hikashop_product_description_main" class="hikashop_product_description_main">

and:
{tab=Tab Title 2}
just before:
<?php
$this->setLayout('show_block_product_files');


and then, before the last:
</div>
of the file, you need to add:
{tab=Tab Title 3}
then, the code to display the modules under the product page
and finally the last tag:
{/ tabs}

You can find the piece of code to display the modules under the product page in the file "show" :
Code:
<div class="hikashop_submodules" id="hikashop_submodules" style="clear:both"> <?php if (!empty ($this->modules) && is_array($this->modules)) { jimport('joomla.application.module.helper'); foreach ($this->modules as $module) { echo JModuleHelper :: renderModule($module); } } ?> </div>
so remove it from there and add it as explained above in the show_default file.
Last edit: 9 years 2 weeks ago by Jerome.

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

More
14 years 3 months ago #52366 by texomapoolguy
you all are great thank you so much works perfectly

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

Time to create page: 0.156 seconds
Powered by Kunena Forum