This is a discussion on Easy Call for Price v1: currencies.php, bug within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Ive tried using Easy Call for Price v1.0 by Tim Elam (aka Bigredman74) and the UPDATED FOR BTS and osCMax ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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... 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 |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Follow this link to find the solution: http://oscdox.com/index.php?name=PNp...asy+call+price It was posted by someone else who had the same problem. |
|
#3
| |||
| |||
| I cant belive I didnt find that in my 42 page search. Thank you so much, Wolf |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy Call for Price | michael_s | osCMax Projects Discussion | 0 | 12-31-2006 06:58 AM |
| Call For Price Problem | bkpie | osCMax v2 Customization/Mods | 3 | 07-27-2006 05:04 PM |
| Installing "Call for Price!" on osCMax v2.0 | rgsat | osCMax v2 Customization/Mods | 1 | 09-26-2005 09:07 PM |
| Fixed price multiple currencies | Jummo | osCMax v1.7 Discussion | 0 | 05-08-2004 07:10 AM |
| Has anyone seen a Call For Price mod? | carver6 | osCMax v1.7 General Mods Discussion | 2 | 01-26-2004 01:38 AM |