Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Help with moving 'Ask a Question' Tab content

Help with moving 'Ask a Question' Tab content 10 years 10 months ago #4779

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
Last Edit: 10 years 10 months ago by Andy Connell.
The administrator has disabled public write access.

Help with moving 'Ask a Question' Tab content 10 years 10 months ago #4795

Hi,

doesn't the 2nd snippet just pasted into the tab you want to use not work? It's just php to form a link..

Cheers
The administrator has disabled public write access.
Time to create page: 0.113 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo