If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Create Account - modify existing fields or add extra fields?

Create Account - modify existing fields or add extra fields?

Locked

Started by sopretty on 31 Oct 2006, 2:38 AM · Views: 5,760

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Oct 2006, 2:38 AM
#1
sopretty avatar

sopretty

New Zenner

Join Date:
Jan 2006
Location:
Vancouver, BC
Posts:
45
Plugin Contributions:
0

Create Account - modify existing fields or add extra fields?

Hi there,

I've modified the fields on login page, changing the 'company' field in create account to ask for the customers 'occupation' instead. This seemed to be a good alternative to attempting to add a new field for this entry.

However, I have only changed the name of the field so the term company is still scattered thoughout the code (things like ACCOUNT_COMPANY == 'true' and ENTRY_COMPANY). No problem for the login fields and the admin area but it is used in other areas, like the customers address. So, their address might read:

Butcher, Baker, Candlestick Maker
First and Last Name
Address
City, Postal Code
State, Country

I've found code like this:

<address><?php echo zen_address_format($addresses['format_id'], $addresses['address'], true, ' ', '<br />'); ?></address>

but I can't figure out where the info is called up from and where I could go in to change it so it doesn't display the occupation (company) in any page where the customer would view their address.

Can anyone point me in the right direction? Or is this work around pointless and there is actually an easy way to add extra fields to the login so I could create a real 'occupation' field and put 'company' back as it was?

Thanks for any advice!

1 Nov 2006, 7:01 PM
#2
sopretty avatar

sopretty

New Zenner

Join Date:
Jan 2006
Location:
Vancouver, BC
Posts:
45
Plugin Contributions:
0

Re: Create Account - modify existing fields or add extra fields?

Ok, I think I found the answer here:
http://www.zen-cart.com/forum/showthread.php?t=29763
Very detailed instructions on how to add fields. I'll give it a shot!

10 Jul 2010, 5:57 AM
#3
rockstar728 avatar

rockstar728

New Zenner

Join Date:
May 2010
Posts:
1
Plugin Contributions:
0

Re: Create Account - modify existing fields or add extra fields?

Does anyone have updated information on how to add fields? The link above doesn't work anymore. Thanks!

10 Jul 2010, 6:48 AM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Create Account - modify existing fields or add extra fields?

**This add-on** will do just what you want to achieve. It is comprehensive and I am not sure if it is compatible with 1.3.9d. Check **this thread** for compatibility.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Jul 2010, 7:26 PM
#5
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Create Account - modify existing fields or add extra fields?

The mod above is very confusing, i'm not entirely sure it works.

I just recently released a brand new add-on that easily adds a new field. check it out!

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1694

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.