Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create an account fields


allk-9

Recommended Posts

Hi All,

 

Still trying to figure out a way to delete/modify the "create an account" fields. I tried changing the following lines in application_top, but there was no effect.

 

// Control what fields of the customer table are used

define('ACCOUNT_GENDER', 'false');

define('ACCOUNT_DOB', 'false');

define('ACCOUNT_COMPANY', 'false');

define('ACCOUNT_SUBURB', 'true');

define('ACCOUNT_STATE', 'true');

 

If there is no way to change/remove certain fields, is this something I should submit to have worked on??? <_<

Link to comment
Share on other sites

I am trying to remove certain fields from the create an account screen. Namely: GENDER, DOB, and COMPANY. I left City and State as true. But it looks like this just changed what tables are "used." How and for what I am not sure...

 

However, what I would like to do is remove those fields from the actual create an account screen so that customers don't have to see/fill them in.

 

// Control what fields of the customer table are used

define('ACCOUNT_GENDER', 'false');

define('ACCOUNT_DOB', 'false');

define('ACCOUNT_COMPANY', 'false');

define('ACCOUNT_SUBURB', 'true');

define('ACCOUNT_STATE', 'true');

 

I hope this makes more sense.

Link to comment
Share on other sites

  • 2 weeks later...

Did you ever find an answer to your question? I need to add some fields and delete some fields but I don't even know how to do what you were talking about. What file or ADMIN screen are you working in?

 

Joe Dunn

Link to comment
Share on other sites

Not sure if this is what you want exactly but in

 

catalog/create_account.php,

 

look for:

 

          <tr>

            <td class="main"><?php echo ENTRY_GENDER; ?></td>

            <td class="main"><?php echo tep_draw_radio_field('gender', 'm', $male) . '  ' . MALE . '  ' . tep_draw_radio_field('gender', 'f', $female) . '  ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td>

          </tr>

around line 37

 

and/or:

          <tr>

            <td class="main"><?php echo ENTRY_COMPANY; ?></td>

            <td class="main"><?php echo tep_draw_input_field('company', $entry['entry_company']) . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>

          </tr>

around line 58

 

and try deleting that code. backup the files first just in case...I've never done it but I don't see why it wouldn't work.

 

you'd want to find the same code in modules/address_book_details.php and delete it as well.

Link to comment
Share on other sites

I would not mind deleting a couple of the fields. However, the key thing I need to do is add fields that customers must fill in. These fields are unique to my application. I need my customers to fill out a mini application then pay for their fees to a convention.

 

Does anyone have any idea how to add fields to the account creation screen?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...