Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

?0 = P.O.A.


GNA

Recommended Posts

Free Call for Price was so complex and seemed overkill.

 

Found a topic in the forum that worked so well with a minor chance to currencies.php

 

Change this:

 

function display_price($products_price, $products_tax, $quantity = 1) {

    return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);

  }

 

to this:

 

function display_price($products_price, $products_tax, $quantity = 1) {

    if ($products_price > 0){

      return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);

    }else{

      return "Call for price!";

    }

  }

 

I changed the "call for price" to "POA" and it works like a dream.

 

If you get errors with this add another } at the end of the script.

 

G

Link to comment
Share on other sites

Hi,

 

I have made the above changes to my currencies.php file and I added an extra } to the end of the file but I still get a parse error.

 

Any ideas why?

 

Thanx

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...