News:

Support the VirtueMart project and become a member

Main Menu

Remove link from call for price

Started by moonrat, January 22, 2015, 08:57:06 AM

Previous topic - Next topic

moonrat

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!

jenkinhill

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>

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

moonrat

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

moonrat

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.

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

moonrat

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

GJC Web Design

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>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

moonrat

Thanks a lot. I was looking at the wrong place. ;)