Help with PHP.. i bet its an easy fix...

Status
Not open for further replies.

Halchka99

Baseband Member
Messages
38
}

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
 
why do you have a assignment in the function declaration? "$quantity = 1" remove this and replace $quantity with 1 in tep_add_tax
 
Status
Not open for further replies.
Back
Top Bottom