Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Custom Field in Registration

Custom Field in Registration

Locked

Views: 3,575

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Nov 2009, 6:07 PM
#1
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Custom Field in Registration

I couldn't find anything concerning this in the search so, here goes.

I was wondering if there was a reasonably easy way to create a custom field in the registration process. The site for which I am an administrator, is a medical supply store. In order to target our email marketing campaigns more effectively, I'd like to add a field (dropdown) in the registration process that would enable the end user to let us know what type of doctor's office the end user happens to be a representative of. For example, OB/Gyn, Cardiology, Dentist, Etc...

I'm assuming that I'll have to make modifications to the database, and some PHP coding as well, at which I am a novice so...any help would be greatly appreciated.

12 Nov 2009, 7:01 PM
#3
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Re: Custom Field in Registration

Ah-ha! I knew I couldn't be the first person to inquire about this! I just didn't find that particular thread. Thanks!

12 Nov 2009, 8:47 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: Custom Field in Registration

Jd,
Your Welcome and please report back on your fix, so I and other Zenners who read this thread gain from the knowledge

8 Mar 2010, 4:30 AM
#5
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Custom Field in Registration

One easy way to add a custom field, is to make use of an existing field that you dont need.

For example, we dont use the fax field, so we renamed it the catalog and the admin to; How did you hear about us? - so that we can track where site visitors come from.

To change this, you need to change two language files;

includes/languages/english/YOUR_TEMPLATE/english.php
admin/includes/languages/english/YOUR_TEMPLATE/english.php

Do a search for 'Fax Number' - be careful to only change the second part, e.g;

define('ENTRY_FAX_NUMBER', 'CHANGE THIS PART');

Then go into your admin/customer details and turn on Fax - for the registration field.

The good thing about using the fax field (if you dont already need it) is that it wont show up in the customers address book or anywhere else that you'd need to make further changes to.

Summary: This is just a short and easy way to have a custom field, without making database changes. With the catch being that you have to have some spare fields to use. :smile:

8 Jul 2010, 7:47 PM
#6
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: Custom Field in Registration

hey! I tried out your method and it worked! However, I wasn't able to customize the way the information was input. Instead of using fax field, I used the birthday field since we fax a lot to our customers. How can I change the way information input for the birthday field? I looked for the mods in the add-on section and they seem a bit complicated for me.

Any help would be GREAT!!

THANKS

9 Jul 2010, 12:43 AM
#7
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Custom Field in Registration

Hi, you would have to go into phpMyAdmin and change the field type. Id suggest extreme caution there if you aren't familiar with databases as you can completely screw them up. :cool: