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 ?> ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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>
?>
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>
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 |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| 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 |