Hello, I have joomla 2.5.27 and VirtueMart 2.6.12.2 and I want to remove the link from "Call for price". I want the text but not to be clickable.
Any ideas? Thank you!
Edit components/com_virtuemart/views/productdetails/tmpl/default.php and use the edited file as a template override.
The relevant div is here:
<div class="ask-a-question">
<a class="ask-a-question" href="<?php echo $this->askquestion_url ?>" rel="nofollow" ><?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 $this->askquestion_url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>-->
</div>
Thank you for your reply and I am sorry for my ignorance.
What I have to do is delete the code you mention? I am deleting and I still get the link working.
Thank you.
if your deleting it and its still there either
1. your in the wrong file - are u using over rides?
2. you have some form of cache
I am not using any overrides. I just have a template for the virtuemart that I have uploaded and I am using. I find the file and I am deleting the lines but the Call for Price link still remains.
dear oh dear -
QuoteI just have a template for the virtuemart that I have uploaded and I am using.
QuoteI am not using any overrides.
one of those statements is incorrect - one means the other
have you looked in your_template/html/com_virtuemart..... i.e. your over rides?
I find the file
/public_html/templates/horme2/html/com_virtuemart/productdetails/default.php and I delete the above mentioned <div> that has to do with the ask-price but the link still works...
any ideas????
thanks
ask a q is not call for price -- which is it -- both mentioned here?
call for price is in default_showprices.php in the same folder as below
<a class="ask-a-question bold" href="<?php echo $this->askquestion_url ?>" rel="nofollow" ><?php echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>
Thanks a lot. I was looking at the wrong place. ;)