osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Easy Call for Price v1: currencies.php, bug

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-27-2006, 09:35 AM
New Member
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wolfshaven
Default Easy Call for Price v1: currencies.php, bug

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
    }
Can anyone tell me what the error is? Im just not finding it.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-27-2006, 03:28 PM
Member
 
Join Date: Oct 2004
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nemail
Default RE: Easy Call for Price v1: currencies.php, bug

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-27-2006, 05:02 PM
New Member
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wolfshaven
Default RE: Easy Call for Price v1: currencies.php, bug

I cant belive I didnt find that in my 42 page search.
Thank you so much,
Wolf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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

Similar Threads

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


All times are GMT -8. The time now is 03:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax