Hi,
I have a custom tab which I created with your help a while ago, which displays a Text Custom Field of some relevant FAQ's for a product.
(We manually populate this for each individual product).
I want to remove the Virtuemart Ask a Question Tab from the template and add it as a link at the top of FAQ's Tab.
I know I can just comment out this code to stop the "Ask a question" showing in the tab itself;
<?php if (VmConfig::get('ask_question', 1) == 1) { ?>
<li><a href="javascript:void(0)" rel="#askquestion"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ASK_QUESTION'); ?></span></a></li>
<?php }?>
But can you provide me with any help on how I can reuse this code to create a link at the top of another tab?
This code is reused from approx line 350 where the Aska question shows next to the rating<?php // Ask a question about this product
if (VmConfig::get('ask_question', 1) == 1) { ?>
<a class="ProductDetailsAskQuestion" href="<?php echo $url ?>" <?php if (!($parameter == "quicklook")) { ?>rel="facebox" rev="iframe|550|900"<?php } ?> >
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>
<?php } ?>
Thanks in advance,
Andy