If you want to add tab you need to go to html/com_virtuemart/productdetails and edit default.php file.
Here find:
- Code: Select all
// Ask a question about this product
if (VmConfig::get('ask_question', 1) == '1') { ?>
<div class="ask-a-question">
<a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>
<!--<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>-->
</div>
<?php }
?>
remove it than find:
- Code: Select all
<ul id="gkProductTabs">
<li class="gkProductTabActive"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span></li>
<li><span><?php echo JText::_('COM_VIRTUEMART_REVIEWS') ?></span></li>
</ul>
and change to:
- Code: Select all
<ul id="gkProductTabs">
<li class="gkProductTabActive"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span></li>
<li><span><?php echo JText::_('COM_VIRTUEMART_REVIEWS') ?></span></li>
if (VmConfig::get('ask_question', 1) == '1') { ?>
<li><span>
<a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>
<!--<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>-->
</span></li>
<?php }
?>
</ul>
This will let you have it in tab but still it will be popup. But how to change it to regular form please ask on VM community forum. Becasue this is extra customization and we don't support it.