osCmax v2.5 User Manual
Results 1 to 3 of 3

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

      
  1. #1
    New Member
    Join Date
    Jul 2006
    Posts
    5
    Rep Power
    0


    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

  2. #2
    Member
    Join Date
    Oct 2004
    Posts
    53
    Rep Power
    0


    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.

  3. #3
    New Member
    Join Date
    Jul 2006
    Posts
    5
    Rep Power
    0


    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

Similar Threads

  1. Easy Call for Price
    By michael_s in forum osCmax Projects Discussion
    Replies: 0
    Last Post: 12-31-2006, 06:58 AM
  2. Call For Price Problem
    By bkpie in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 07-27-2006, 05:04 PM
  3. Installing "Call for Price!" on osCMax v2.0
    By rgsat in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 09-26-2005, 09:07 PM
  4. Fixed price multiple currencies
    By Jummo in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 05-08-2004, 07:10 AM
  5. Has anyone seen a Call For Price mod?
    By carver6 in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 01-26-2004, 01:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •