osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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



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

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-04-2005, 07:11 AM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 355
Thanks: 27
Thanked 40 Times in 38 Posts
Rep Power: 8
bkpie has a spectacular aura aboutbkpie has a spectacular aura aboutbkpie has a spectacular aura about
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-04-2005, 03:27 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 355
Thanks: 27
Thanked 40 Times in 38 Posts
Rep Power: 8
bkpie has a spectacular aura aboutbkpie has a spectacular aura aboutbkpie has a spectacular aura about
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-04-2005, 05:46 PM
osCMax Testing Team
 
Join Date: Sep 2004
Posts: 355
Thanks: 27
Thanked 40 Times in 38 Posts
Rep Power: 8
bkpie has a spectacular aura aboutbkpie has a spectacular aura aboutbkpie has a spectacular aura about
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-27-2006, 05:04 PM
New Member
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wolfshaven
Default RE: Call For Price Problem

Great Fix. Thanks bkpie. Also thanks to nemail for directing me to this.
Wolf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
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


All times are GMT -8. The time now is 05:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design