osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Bugfix 85-checkout_shipping_address checkout_payment_address

This is a discussion on Bugfix 85-checkout_shipping_address checkout_payment_address within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; As Michael says: "The attached file fixes this problem for both checkout_shipping_address and checkout_payment_address. There was a misplaced brace in ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-06-2005, 03:49 PM
Member
 
Join Date: Jul 2005
Posts: 91
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
kenlyle
Default Bugfix 85-checkout_shipping_address checkout_payment_address

As Michael says: "The attached file fixes this problem for both checkout_shipping_address and checkout_payment_address. There was a misplaced brace in the code.

The file to edit is /catalog/includes/modules/checkout_new_address.php"


I couldn't get the fix file from the BugTracker, so here is the fixed code regarding the state field:

<?php
if (ACCOUNT_STATE == 'true') {
?>
<tr>
<td class="main"><?php echo ENTRY_STATE; ?></td>
<td class="main">
<?php
// BOF: MOD - Country-State Selector
$zones_array = array();
$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = " . $country . " order by zone_name");
while ($zones_values = tep_db_fetch_array($zones_query)) {
$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); }
if (count($zones_array) > 0) {
echo tep_draw_pull_down_menu('state', $zones_array);
} else {
echo tep_draw_input_field('state');
}
// EOF: MOD - Country-State Selector

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;
?>
</td>
</tr>
<?php
}
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-05-2006, 07:56 AM
Lurker
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ishigami
Default RE: Bugfix 85-checkout_shipping_address checkout_payment_add

Thank you. This is great.
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
Error on Checkout_shipping_address page Christy osCMax v2 Installation issues 0 12-18-2005 08:46 AM
Categories.php bugfix for larger stores gamefreak7 osCMax v2 Installation issues 0 08-05-2005 09:32 PM
catalog/checkout_shipping_address.php isn't loading gheffron osCMax v1.7 Discussion 0 05-13-2004 11:35 AM
[BugFix] v1.5 Category Descriptions Bug michael_s osCMax v1.7 Discussion 0 09-25-2003 10:50 PM
[BugFix]Change Currenices From product_info.php failing michael_s osCMax v1.7 Discussion 0 09-06-2003 11:55 AM


All times are GMT -8. The time now is 09:56 PM.


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