Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help! Where can this code be found...


osc_printer

Recommended Posts

Posted

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');

Posted

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)

Posted

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.

Posted

You can add that line into application_top.php and it will work

 

Matti

Posted

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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...