Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Help with PHP.. i bet its an easy fix...
Closed Thread
Old 08-07-2006, 06:48 PM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 38

Halchka99

Send a message via AIM to Halchka99 Send a message via Yahoo to Halchka99
Default Help with PHP.. i bet its an easy fix...

}

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


guys you see anything wrong with this?

i get an error saying:

Warning: Missing argument 2 for display_price() in /home/.hortense/j17d85m/domain_name.com/includes/classes/currencies.php on line 71
Halchka99 is offline  
Old 08-08-2006, 10:08 AM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

why do you have a assignment in the function declaration? "$quantity = 1" remove this and replace $quantity with 1 in tep_add_tax
office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On