Need the product “Description” out of the Tabs - Ready to overrides?

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 5 months ago - 3 years 5 months ago #147357 by Patrick Toulze
I  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.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
3 years 5 months ago #147386 by Giang Dinh Truong
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

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

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 5 months ago - 3 years 5 months ago #147421 by Patrick Toulze
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
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));
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)
 
 
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
  • Administrator
More
3 years 5 months ago #147464 by Giang Dinh Truong
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

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

  • Patrick Toulze
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 5 months ago - 3 years 5 months ago #147480 by Patrick Toulze
Thanks Giang, I’m not a big php coder, I just do it by looking at your code...

I really like to do the same thing with the “Related Products” Tab as I don’t want them to be hidden in a tab.

I try many things, so far without success, I will probably need your help on this one...

 
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
  • Elite Member
More
3 years 5 months ago #147487 by Patrick Toulze
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.

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
3 years 5 months ago #147507 by Giang Dinh Truong
That's OK Patrick!

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