- Posts: 312
- Thank you received: 19
Need the product “Description” out of the Tabs - Ready to overrides?
- Patrick Toulze
-
Topic Author
- Offline
- Elite Member
-
Less
More
3 years 5 months ago - 3 years 5 months ago #147357
by Patrick Toulze
Need the product “Description” out of the Tabs - Ready to overrides? was created by Patrick Toulze
Last edit: 3 years 5 months ago by Patrick Toulze.
Please Log in or Create an account to join the conversation.
- Giang Dinh Truong
-
- Offline
- Administrator
-
3 years 5 months ago #147386
by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Need the product “Description” out of the Tabs - Ready to overrides?
Hello Patrick,
Thank you for submitting the question here. Regarding your question: Yes, this requires to override to the layout of product details page: components/com_eshop/themes/default/views/product/default.php
You can read more about how to override a layout of EShop here: eshopdocs.joomservices.com/developer-gui...uts#customize-layout
I hope this is useful.
Sincerely, Giang
Thank you for submitting the question here. Regarding your question: Yes, this requires to override to the layout of product details page: components/com_eshop/themes/default/views/product/default.php
You can read more about how to override a layout of EShop here: eshopdocs.joomservices.com/developer-gui...uts#customize-layout
I hope this is useful.
Sincerely, Giang
Please Log in or Create an account to join the conversation.
- Patrick Toulze
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 312
- Thank you received: 19
3 years 5 months ago - 3 years 5 months ago #147421
by Patrick Toulze
Replied by Patrick Toulze on topic Need the product “Description” out of the Tabs - Ready to overrides?
Thanks Giang, I did it.....
I’m really thrill about that, it mean that I’m satisfied with the overall design of the eshop and now I can start to fill it up for the grand opening.
I’m a designer by trade and EXTREMELY DIFFICULT TO PLEASE....
This is more than helpful, it work perfectly.
SUGGESTION: I think you should add a settings to do exactly the sane thing directly in your component settings as it permit to build more friendly and beautiful pages for products that need a more substantial information
———————————————————————————————————————Product Description out of Tabs
Override —> YourTemplate > html > com_eshop > product > default.phpORIGINAL CODE starting around line 894
Graf custom code
• I add a div with a class on top of the tab (for css) that contain the php call for the description
• I change the original code for the description mark as the first “Active” tab
The only question is about this part of code in your original code:
I’m not sure if needed as my custom code seem to work OK?
— If needed, how to add for the “tab1-content” ?
——————————————————————————————————
This is how it look now. (The “Description” need to be formatted)
I’m really thrill about that, it mean that I’m satisfied with the overall design of the eshop and now I can start to fill it up for the grand opening.
I’m a designer by trade and EXTREMELY DIFFICULT TO PLEASE....
This is more than helpful, it work perfectly.
SUGGESTION: I think you should add a settings to do exactly the sane thing directly in your component settings as it permit to build more friendly and beautiful pages for products that need a more substantial information
———————————————————————————————————————Product Description out of Tabs
Override —> YourTemplate > html > com_eshop > product > default.phpORIGINAL CODE starting around line 894
Code:
<?php
}
?>
</div>
</div>
<div class="graf-description"> 123 </div>
<?php
echo JHtml::_($tabApiPrefix . 'startTabSet', 'product', array('active' => 'description'));
echo JHtml::_($tabApiPrefix . 'addTab', 'product', 'description', JText::_('ESHOP_DESCRIPTION', true));
echo $this->item->product_desc;
echo JHtml::_($tabApiPrefix . 'endTab');
if ($this->item->tab1_title != '' && $this->item->tab1_content != '')
{
echo JHtml::_($tabApiPrefix . 'addTab', 'product', 'tab1-content', $this->item->tab1_title);
echo $this->item->tab1_content;
echo JHtml::_($tabApiPrefix . 'endTab');
}
if ($this->item->tab2_title != '' && $this->item->tab2_content != '')
Graf custom code
• I add a div with a class on top of the tab (for css) that contain the php call for the description
• I change the original code for the description mark as the first “Active” tab
Code:
<?php
}
?>
</div>
</div>
<div class="graf-description"> <?php
echo $this->item->product_desc;
?></div>
<?php
echo JHtml::_($tabApiPrefix . 'startTabSet', 'product', array('active' => 'tab1-content'));
echo JHtml::_($tabApiPrefix . 'addTab', 'product', 'tab1-content', $this->item->tab1_title);
echo $this->item->tab1_content;
echo JHtml::_($tabApiPrefix . 'endTab');
if ($this->item->tab2_title != '' && $this->item->tab2_content != '')
{
echo JHtml::_($tabApiPrefix . 'addTab', 'product', 'tab2-content', $this->item->tab2_title);
The only question is about this part of code in your original code:
Code:
—> JText::_('ESHOP_DESCRIPTION', true));
— If needed, how to add for the “tab1-content” ?
——————————————————————————————————
This is how it look now. (The “Description” need to be formatted)
Last edit: 3 years 5 months ago by Patrick Toulze.
Please Log in or Create an account to join the conversation.
- Giang Dinh Truong
-
- Offline
- Administrator
-
3 years 5 months ago #147464
by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Need the product “Description” out of the Tabs - Ready to overrides?
Hello Patrick,
That's it. It's not too hard
I am glad that you could do it properly.
If you need any other helps, don't hesitate to let me know.
Sincerely, Giang
That's it. It's not too hard

If you need any other helps, don't hesitate to let me know.
Sincerely, Giang
Please Log in or Create an account to join the conversation.
- Patrick Toulze
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 312
- Thank you received: 19
3 years 5 months ago - 3 years 5 months ago #147480
by Patrick Toulze
Replied by Patrick Toulze on topic Need the product “Description” out of the Tabs - Ready to overrides?
Last edit: 3 years 5 months ago by Patrick Toulze.
Please Log in or Create an account to join the conversation.
- Patrick Toulze
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 312
- Thank you received: 19
3 years 5 months ago #147487
by Patrick Toulze
Replied by Patrick Toulze on topic Need the product “Description” out of the Tabs - Ready to overrides?
You can close the discussion Giang.
I did somewhat the same thing with the “Related Products” Tab that I did with the “Description” and it seem to work perfectly....
This is so great!
— I want to cleanup all that and finish my 2 sample products and upload the website on my test server to show to my client for approbation.
— Next fill up the store and finish that website (Many things left to do)
— You will see both Events Booking & Eshop in the same website
I will send you a link, you probably like the result.
I did somewhat the same thing with the “Related Products” Tab that I did with the “Description” and it seem to work perfectly....
This is so great!
— I want to cleanup all that and finish my 2 sample products and upload the website on my test server to show to my client for approbation.
— Next fill up the store and finish that website (Many things left to do)
— You will see both Events Booking & Eshop in the same website
I will send you a link, you probably like the result.
Please Log in or Create an account to join the conversation.
- Giang Dinh Truong
-
- Offline
- Administrator
-
3 years 5 months ago #147507
by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Need the product “Description” out of the Tabs - Ready to overrides?
That's OK Patrick!
If you need any other helps, don't hesitate to let me know.
Sincerely, Giang
If you need any other helps, don't hesitate to let me know.
Sincerely, Giang
Please Log in or Create an account to join the conversation.
Moderators: Giang Dinh Truong
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.