osc_printer Posted April 17, 2004 Posted April 17, 2004 Was looking for this in admin/includes/application_top.php help! does this look familar to anyone? define('ACCOUNT_GENDER', 'false'); define('ACCOUNT_DOB', 'false'); define('ACCOUNT_COMPANY', 'true'); define('ACCOUNT_SUBURB', 'false'); define('ACCOUNT_STATE', 'true');
AlanR Posted April 17, 2004 Posted April 17, 2004 I think those are from an older version than MS2. Those fields can be turned on and off in admin in MS2 Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
osc_printer Posted April 17, 2004 Author Posted April 17, 2004 Thanks Alan, so they do not exist. Okay, well in this case where I am installing a mod to add an ACCT number. And it asks me to add: ******In catalog/application_top.php********* Around line 141 find this: // Control what fields of the customer table are used define('ACCOUNT_GENDER', 'false'); define('ACCOUNT_DOB', 'false'); define('ACCOUNT_COMPANY', 'true'); define('ACCOUNT_SUBURB', 'false'); define('ACCOUNT_STATE', 'true'); ADD this line: define('ACCOUNT_ACCT', 'true'); Got the mod working okay from the admin side without it. But the customer edit part isn't working yet. Just wondering if you knew any more about this one.
rseigel Posted April 17, 2004 Posted April 17, 2004 It doesn't matter where you add it. Add it anywhere. Be brave. Pick a spot and run with it. :huh:
Guest Posted April 17, 2004 Posted April 17, 2004 You can add that line into application_top.php and it will work Matti
osc_printer Posted April 17, 2004 Author Posted April 17, 2004 Thanks! Tried adding it, but it doesn't show in the Customer Details yet.
rseigel Posted April 17, 2004 Posted April 17, 2004 Then you haven't installed it correctly. Reread the instructions. It's also possible that this mod is too old and won't work with your version of OSC.
osc_printer Posted April 17, 2004 Author Posted April 17, 2004 You are probably right since it dates back to 2003. http://www.oscommerce.com/community/contri...+account+number It is actually working and the account number, which I am using for as a Resale Tax ID, works to the point where it can be added or editted in the admin. After carefully working it into the create_account.php. It's not showing up. <?php if (ACCOUNT_ACCT == 'true') { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="formAreaTitle"><?php echo CATEGORY_ACCT; ?></td> </tr> <tr> <td class="formArea"><table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_ACCT; ?></td> <td class="main"><?php echo tep_draw_input_field('acct') . ' ' . (tep_not_null(ENTRY_ACCT_TEXT) ? '<span class="inputRequirement">' . ENTRY_ACCT_TEXT . '</span>': ''); ?></td> </tr> </table></td> </tr> <?php } ?> Very close. maybe someone can help me over the hump on this 7 hour adventure into OSC.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.