Portal Home > Knowledgebase > Articles Database > PHP script problem


PHP script problem




Posted by fxtrader777, 03-18-2007, 11:47 AM
Hello all, I have problem in this script function display_price($products_price,$products_tax,$quantity=1){ if(tep_session_is_registered('customer_id')){ return $this->format(tep_add_tax($products_price,$products_tax)*$quantity); }else{ return''; } } } ?> I want it to be changed into this: If product's price is 0(zero) then return ' '. The product which has price more than 0 must remain the same

Posted by horizon, 03-18-2007, 08:27 PM
Perhaps you're looking to achieve this:



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Htaccess and folders (Views: 804)

Language: