- Posts: 4
- Thank you received: 0
Add Tabbed pane in the product detail page!
I am using nonumber's tabber plugin for desining the tabbed description product detail page.But i don't know how to add this tab's tag and also don't exactly which template to modify.
Please help to to find template for product detail page. And please help me to add this tabber code in the page.
{tab=Tab Title 1}
Your text...
{tab=Tab Title 2}
Your text...
{/tabs}
Please Log in or Create an account to join the conversation.
You can add it directly in the description of your products.
Please Log in or Create an account to join the conversation.
the problem is where my client is zero in computer science. So, he don't want to see any code in the text area! any other options?
it's possible to create custom fields for product detail page. by the i can create fields for each tabs! is it?
Please Log in or Create an account to join the conversation.
It is possible to add custom field in the product page?
Please Log in or Create an account to join the conversation.
You will have to create custom fields of the table "product". That will allow your user to enter the text of each tab in a textarea for each product.
Then, you would have to edit the file "show_default" of the view "product" via the menu Display->Views in order to display the fields in the tabs:
{tab=Tab Title 1}
<?php ehco $this->element->custom_field_1; ?>
{tab=Tab Title 2}
<?php ehco $this->element->custom_field_2; ?>
{/tabs}
where custom_field_1 and custom_field_2 are the column names of the fields.
Finally, you will have to edit the file "show" of the view "product" and change the code:
$this->setLayout($this->productlayout);
echo $this->loadTemplate();
to:
$this->setLayout($this->productlayout);
echo JHTML::_('content.prepare',$this->loadTemplate());
so that the tab plugin can replace the tab tags into real tabs.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 3
Just one more question to make it perfect for me:
It's there a way to put the product vote/comments inside a Tab?
Please Log in or Create an account to join the conversation.
Since the post of protorob, we added a real tab view in HikaShop using jQuery and including the vote & comments.
To try it, you have to use the option "Layout on product page" and set it to "tabular".
Else you can edit the view "product / show_default" and add "{tab=Tab Title 3}" before the vote&comment part of the view and use the tag "{/tags}" after the comment part.
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 3
Please Log in or Create an account to join the conversation.
You changed the display ?
Maybe you have broke the html, so jQuery cannot manage it correctly to display the tabs.
Or you have maybe a Javascript error or a conflict between jQuery and Mootools, try to install the jQuery easy plugin, which can be found on the JED: extensions.joomla.org
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 3
I don't recall changing anything on the HTML, and this the display I got after installing jQuery Easy, before I didn't get any display at all.
Just in case I have change something on the HTML, which file I have to look for and, if you know which lines you think may be broken.
Jose
Please Log in or Create an account to join the conversation.
Can you check if jQuery is loaded in the page ?
You should find it in the source code of the page, the library needed is "jquery-ui-1.8.22.custom.min.js"
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 3
But were the code mention tabs it only shows like this :
Please Log in or Create an account to join the conversation.
The JavaScript seems to be ok, so the problem should come from the CSS, try to add:
Please Log in or Create an account to join the conversation.
- Posts: 32
- Thank you received: 3
Let you know if I find any other problems.
Thanks Jose
Please Log in or Create an account to join the conversation.
my project ibaby.com.ua
Please Log in or Create an account to join the conversation.