VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: moonrat on January 22, 2015, 08:57:06 AM

Title: Remove link from call for price
Post by: moonrat on January 22, 2015, 08:57:06 AM
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!
Title: Re: Remove link from call for price
Post by: jenkinhill on January 22, 2015, 10:59:33 AM
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>

Title: Re: Remove link from call for price
Post by: moonrat on January 22, 2015, 12:33:44 PM
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.
Title: Re: Remove link from call for price
Post by: GJC Web Design on January 23, 2015, 00:40:54 AM
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
Title: Re: Remove link from call for price
Post by: moonrat on January 23, 2015, 09:20:51 AM
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.
Title: Re: Remove link from call for price
Post by: GJC Web Design on January 23, 2015, 10:58:29 AM
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?
Title: Re: Remove link from call for price
Post by: moonrat on January 26, 2015, 11:59:18 AM
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
Title: Re: Remove link from call for price
Post by: GJC Web Design on January 26, 2015, 22:31:20 PM
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>
Title: Re: Remove link from call for price
Post by: moonrat on January 29, 2015, 18:11:35 PM
Thanks a lot. I was looking at the wrong place. ;)