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)