Zen Cart Logo
Forums / Managing Customers and Orders / How to remove address from Customer registration?

How to remove address from Customer registration?

Locked

Views: 3,633

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Feb 2009, 1:34 PM
#1
memerson avatar

memerson

New Zenner

Join Date:
Jan 2009
Posts:
24
Plugin Contributions:
0

How to remove address from Customer registration?

Hi

I am configuring the Customer Registration form in the Admin section via the Configuration->Customer Details panel but there are some fields which cannot be turned off. For my customer registration form I only want the following:

First and last name
Email address
Password (and confirm)
Newsletter subscribe

However, the Customer Details panel only allows you to remove such fields as Fax, State, Second line of Address and DOB etc. rather than the whole address and telephone number. Is there any other way of removing these fields?

Thank you
Michael

9 Feb 2009, 2:30 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How to remove address from Customer registration?

There are no switches for turning these off, you would have to change the source code, both the templates that include them and the code that validates the inputs in both the users' broswers and back on your server. You will likely run into problems elsewhere too, since other parts of the code, sometimes want to know parts of the customers address. I vaguely remember removing the country field for a client, but then having to hard-code it back in (out of sight) as Zen Cart objected to it being unset.

All this is up for grabs with the major release of Zen Cart planned for after 2.0.0, when the checkout is the focus and I understand that this encompass account creation.

6 Oct 2010, 6:17 PM
#3
richardh avatar

richardh

New Zenner

Join Date:
Jul 2008
Location:
Whitley Bay, England
Posts:
29
Plugin Contributions:
0

Re: How to remove address from Customer registration?

I would like to do what Memerson desribed, is it possible to do this yet with the new zen cart release?

21 Oct 2010, 10:39 PM
#4
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: How to remove address from Customer registration?

I would also like to remove Telephone number from being a mandatory input on Customer account creation. You can set the minimum value to zero in Minimum Values, and that releases the customer from having to enter it, but since the little red asterisk remains on the sign-up page, the customer won't know that it's no longer required. Maybe a solution? Or have to wait for 2.0? Thanks.

22 Oct 2010, 2:25 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to remove address from Customer registration?

Using your templates and overrides you can customize the english.php where the define for that is set ...

Search the file for phone and you will see where it is set to:

  define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

change that to:

  define('ENTRY_TELEPHONE_NUMBER_TEXT', '');