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

Call For Price Problem

This is a discussion on Call For Price Problem within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I have tried installing the Call For Price mod a few times and keep getting Parse error: parse error, unexpected ...

      
  1. #1
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default Call For Price Problem

    I have tried installing the Call For Price mod a few times and keep getting

    Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sterlin/public_html/includes/classes/currencies.php on line 91

    I followed the instructions what am I missing? Help

  2. #2
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default RE: Call For Price Problem

    OK I got that problem fixed by adding another } at the end in the currencies.php so now the site loads with call for price where it should be but now when you click on a product it has another error. I AM FRUSTRATED HELP!

    Parse error: parse error, unexpected T_ELSE in /home/sterlin/public_html/templates/fallback/content/product_info.tpl.php on line 200

    What is wrong with the code now in this easy call for price....EASY?

  3. #3
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default RE: Call For Price Problem

    Yea Solved..

    If you have problems with the updated call for price by jpf you need to change catalog/includes/classes/currencies.php -you need to add and extra bracket at the end } of the edit offered in the contribution

    The edit offered for catalog/templates/fallback/content/product_info.tpl.php did not work and gave a parse error so I used the original edit for this file found here
    http://www.oscommerce.com/community/contributions,3211

    I replaced the code <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

    with <!-- BEGIN EASY CALL FOR PRICE v1.0 -->
    <?php
    if ($product_info['products_price'] == CALL_FOR_PRICE_VALUE){
    ?>
    <td class="main" align="right"><a href="javascript:history.go(-1)"><?php echo tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>
    <?php
    } else {
    ?>
    <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
    <?php
    }
    ?>
    <!-- END EASY CALL FOR PRICE v1.0 -->

    All works wonderful so far. WHEW!

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


    Default RE: Call For Price Problem

    Great Fix. Thanks bkpie. Also thanks to nemail for directing me to this.
    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. Easy Call for Price v1: currencies.php, bug
    By wolfshaven in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 07-27-2006, 05:02 PM
  3. "call for price" question..
    By dwsjr in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-26-2005, 08:17 AM
  4. 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
  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
  •