Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Price on request


The_Dive_Master

Recommended Posts

In catalog/includes/classes/currencies.php, at the very end, change:

 

    function display_price($products_price, $products_tax, $quantity = 1) {
     return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
   }
 }

 

to:

 

    function display_price($products_price, $products_tax, $quantity = 1) {
  	 if($products_price == '0') {
     return 'Price on request - Please <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">contact us</a>';
   } else {  
     return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
      }
    }
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...