Ive tried using Easy Call for Price v1.0 by Tim Elam (aka Bigredman74) and the UPDATED FOR BTS and osCMax 2.0 RC1/RC2 by jpf (in the downloads section on oscdox)
Both versions give me the error...
Parse error: parse error, unexpected ';', expecting T_FUNCTION in catalog\includes\classes\currencies.php on line 91.
the code is suposed to be...
Can anyone tell me what the error is? Im just not finding it.Code:FIND: function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } REPLACE WITH: function display_price($products_price, $products_tax, $quantity = 1) { // BOF: MOD - EASY CALL FOR PRICE v1.0 // return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); define ('CALL_FOR_PRICE_VALUE', 0); // If you sell products for $0.00 and want to display "Call for Price!" for other products, set their price and the CALL_FOR_PRICE_VALUE to -1. if ($products_price > CALL_FOR_PRICE_VALUE){ return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } else { define ('TEXT_CALL_FOR_PRICE', 'TEXT_CALL_FOR_PRICE'); // You can set CALL_FOR_PRICE_TEXT to anything you want. Its style is determined by the page it is displayed on. Changes made here will be visible throughout your site. return TEXT_CALL_FOR_PRICE; // BOF: MOD - EASY CALL FOR PRICE v1.0 }
If it helps Im running this from my home on windows xp with apache, php, and mysql.
Once I have it all set up Ill be porting it to a linux server.
Thanks for any help you can give me,
Wolf





LinkBack URL
About LinkBacks






Bookmarks