Post by bogdangergov1 » Wed Apr 24, 2019 6:47 pm

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>


Newbie

Posts

Joined
Mon May 29, 2017 5:48 pm

Post by DigitCart » 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>';

My Extensions / DigitCart


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by bogdangergov1 » Wed Apr 24, 2019 7:25 pm

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!!

Newbie

Posts

Joined
Mon May 29, 2017 5:48 pm
Who is online

Users browsing this forum: No registered users and 5 guests