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 ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| Great Fix. Thanks bkpie. Also thanks to nemail for directing me to this. Wolf |
![]() |
| Thread Tools | |
| |
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 |
| Easy Call for Price v1: currencies.php, bug | wolfshaven | osCMax v2 Customization/Mods | 2 | 07-27-2006 05:02 PM |
| "call for price" question.. | dwsjr | osCMax v2 Customization/Mods | 0 | 11-26-2005 08:17 AM |
| Installing "Call for Price!" on osCMax v2.0 | rgsat | osCMax v2 Customization/Mods | 1 | 09-26-2005 09:07 PM |
| Has anyone seen a Call For Price mod? | carver6 | osCMax v1.7 General Mods Discussion | 2 | 01-26-2004 01:38 AM |