News:

Support the VirtueMart project and become a member

Main Menu

How to link "call for price" button to contact page

Started by cdh992, August 06, 2014, 11:58:15 AM

Previous topic - Next topic

cdh992

Hi, when I leave the price on a product empty I get a button 'call for price' which links to an ask a question form on a separate page. I want to link the button to my contact page instead. Can anyone help me with this please?

Greatly appreciate any help!

Thanks

I am woking in joomla 2.5.22 and virtuemart 2.6.6


cdh992

I am woking in joomla 2.5.22 and virtuemart 2.6.6

Thanks

GJC Web Design

you need to add some logic in your default_addtocart.php over ride to show the link you want

around the if (!( VmConfig::get('askprice', 0) and empty($tmpPrice) ) ) {  statement
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

cdh992

Thanks for the reply... I have just tried your suggestion but I still can't get it to link. Please bear with me as I am a beginner, this is the link I have placed around the statement:

   <a href="http://newsite2.g2fdev.com/index.php/contact-us2"><?php
         } else {
            $tmpPrice = (float) $this->product->prices['costPrice'];
         if (!( VmConfig::get('askprice', 0) and empty($tmpPrice) ) ) {
               ?></a>

Is that right as it doesn't seem to work.

Thanks

cdh992

Solved it!  :D  Had to link it from default_showprices.php.