GNA Posted March 15, 2004 Share Posted March 15, 2004 I'm sure this must have been asked before but I can't find the answer. Anyone know how I can get an entered price of 0.00 to show up as POA on the product screens ? Thanks G GNA Easy Populate Assistant Link to comment Share on other sites More sharing options...
cburd Posted March 15, 2004 Share Posted March 15, 2004 there is a contribution for this called Free Call for Price, You can edit the verbage to say what you want it too. Hope this helps you Link to comment Share on other sites More sharing options...
GNA Posted March 15, 2004 Author Share Posted March 15, 2004 Thanks Chris - Ill give it a try G GNA Easy Populate Assistant Link to comment Share on other sites More sharing options...
GNA Posted March 15, 2004 Author Share Posted March 15, 2004 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 GNA Easy Populate Assistant Link to comment Share on other sites More sharing options...
mark27uk3 Posted March 18, 2004 Share Posted March 18, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.