Hi,
It is just my mistake that i didn't think about it, YES. you must have the "Ask a Question" option ENABLED. Otherwise, you wouldn't give the permission to your Virtuemart to send email through the frontend.
"Ask for price" is just another version of "Ask a question". Because it is an "asking question" about the product.
So basically they are the same exact thing.
As far as I understood, you want to disable "ask a question" links, but you want to keep "Ask for price". Am i right?
First of all, in your VM Configuration, enable the "Ask a question" option.And have it always enabled.
Then (by coding changes) manually disable all the links for "ask a question". So actually you will be disabling this option from your website, but the "ask for price" will be there (in case the price is ZERO)
Just follow my steps one by one to disable the "ask a question" links (one at the right-top, and the other one that is located in the footer TAB section)
First of all; Open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php
1- Find this line (line 327th):
<?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 } ?>
Remove it completely.
(this would eliminate the "ask a question" link that is located at top-right side)
2- Find this Line (765th line)
<?php if (VmConfig::get('ask_question', 1) == 1) { ?>
<li><a href="#" rel="askquestion"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ASK_QUESTION'); ?></span></a></li>
<?php }?>
and
Find this Line (866th line)
<?php if (VmConfig::get('ask_question', 1) == 1) { ?>
<div id="askquestion" class="tabcontent">
<?php echo $this->loadTemplate('askquestionform'); ?>
</div>
<?php } ?>
Remove them completely. This will eliminate the "ask a question" form that is located in the TAB section in the footer.
So by these changes, you will have only 1 "ask a question" link which will be the "Ask for Price".
About the mail you have received. Our VM Template has no influence on the email layouts, that email was generated by your original Virtuemart. But you can edit it by looking at this file:
ROOt/components/com_virtuemart/views/askquestion/tmpl/mail_html_question.php
But this is the core PHP file of Virtuemart, so once you make some changes on it, your changes will be retrieved once you update your Virtuemart. BE AWARE OF THIS FACT. And if you don't have any experience on PHP, i would recommend you not to touch it though.
And finally about going back to VM2.0.14, just don't do it now. IF everything works just fine with your Virtuemart stick with yours. But in the future don't install the pre-release version, and don't just install the new version of Virtuemart in your live server (not even the official releases). I would suggest you to install your website in a TEST server for running tests, because i am seeing you have purchased our VM Template with "single domain + No future update" license, which means, if our VM Template fails to work in some section with VM2.0.16 and we update our VM Template, you won't be eligible to receive the update. VM Developer sometimes play things around and change some variable which affects templates, therefore our VM Template fails to work in some section and an update become a necessity. We usually do these update in 2 days after a new version of Virtuemart officially launched. But only the developer license owners who bought our VM Template with developer license are eligible to receive those updates from us. You have bought our VM Template as "Fully compatible with Virtuemart 2.0.14".. I can't guarantee you that it would work with VM2.0.16, it might though, i just don't know.. because I really don't know what is going to change in VM2.0.16.. understand my point?
Regards.
Forum Support.