Page 1 of 1

VQMOD text "call for price" go to URL contact page

Posted: Wed Apr 24, 2019 6:47 pm
by bogdangergov1
Please help me
I want "call for price" to be an active link to the contact page

Code: Select all

<modification>
    <id>Price Free For Zero Amount</id>
      <version>1.0</version>
		   <vqmver>2.1.7</vqmver>
       <author>#</author>		

<file name="system/library/currency.php">
    <operation>
			<search position="before"><![CDATA[$string = '';]]></search>
			<add><![CDATA[
      if ($format && (float)$value == 0) {
			return 'call for price' ;
		  }
   ]]></add>
	</operation>
</file>		

</modification>


Re: VQMOD text "call for price" go to URL contact page

Posted: Wed Apr 24, 2019 7:05 pm
by DigitCart
Hi
instead of:
return 'call for price' ;

use this:
return '<a href="http://your-site.com/contact-page">call for price</a>';

Re: VQMOD text "call for price" go to URL contact page

Posted: Wed Apr 24, 2019 7:25 pm
by bogdangergov1
DigitCart wrote:
Wed Apr 24, 2019 7:05 pm
Hi
instead of:
return 'call for price' ;

use this:
return '<a href="http://your-site.com/contact-page">call for price</a>';
Thanks!!