osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Defect: Edit/New Address (modules/address_book_details.php)

This is a discussion on Defect: Edit/New Address (modules/address_book_details.php) within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; when a user goes to update the addressbook after logging in (adding or editing addresses) they get an extra ?> ...


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-23-2006, 03:49 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Defect: Edit/New Address (modules/address_book_details.php)

when a user goes to update the addressbook after logging in (adding or editing addresses) they get an extra ?> showing up inside the inner table.

The code that is doing this is in includes/modules/address_book_details.php

Code:
<?php /* LINE CHANGED: MOD - Country-State Selector */
//          <td class="main"><?php echo tep_get_country_list('country', $entry['entry_country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
?>
That trailing ?> is being ignored because the ?> in the commented out line is getting read and processed as the closing ?> for the opening <?php in the LINE CHANGED: MOD line.

The quick fix is

Code:
<?php /* LINE CHANGED: MOD - Country-State Selector */
//          <td class="main"><?php echo tep_get_country_list('country', $entry['entry_country_id']) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
remove the ?>

Please note that this is VERY BAD coding style. It does get rid of the displayed ?> A better way to handle this is just to cut all the commented out from the module. This will lose the change history maintained in the file, but you can always create a backup of the file in the modules directory ( modules/__address_book_details.php) for historical purposes before cutting the lines.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
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
What's up with the hanging ?> on Edit Address Page Dubious osCMax v2 Installation issues 2 10-13-2006 10:19 AM
Payment Modules cannot edit johnkwok osCMax v2 Features Discussion 0 05-20-2006 03:14 PM
ot_loyalty_discount defect met00 osCMax v2 Features Discussion 1 03-06-2006 12:56 AM
customer cannot edit address battleaxe osCommerce 2.2 Modification Help 0 09-08-2005 04:27 AM
edit/delete customer address bug! cutxpaste osCommerce 2.2 Modification Help 2 11-13-2003 04:30 PM


All times are GMT -8. The time now is 02:10 AM.


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