RE: Need help with attributes
Ajeh <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.general |
|---|---|
| Message-ID | <cd67346eb63bb5cb707c81e866082321@osCommerce-Forums> |
This message was sent from: General Support
http://forums.oscommerce.com/viewtopic.php?p=227715#227715
----------------------------------------------------------------
Change:
[code] function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} [/code]
To read:
[code]
function display_price($products_price, $products_tax, $quantity = 1) {
if ($products_price==0) {
return '';
} else {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
} [/code]
You will have to check if you need to change the function format in a similar manner.