Zen Cart Logo
Forums / Managing Customers and Orders / How to add information to customer registration page?

How to add information to customer registration page?

Locked

Views: 8,395

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
10 Mar 2008, 4:50 PM
#1
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

How to add information to customer registration page?

I really need for my customers to see some information on the page they register on -- info like how to enter who referred them, reassurance that if they subscribe to the newsletter they will always get a code to save money, a few other items. Ideally, this would be a HTML or text file that ZC would pull in to the registration page so I wouldn't have to mess with editing the .php file every time I want to make a change. I know I'm going to have to edit some .php file to implement this, but it's important enough to me that I'll force myself.

  1. What .php file do I need to edit?

  2. What can I put in, and where, to either pull in info from another file or show a text message near the top of the customer registration page, before they start filling in boxes?

10 Mar 2008, 5:11 PM
#2
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: How to add information to customer registration page?

You can go to your admin and choose Tools - Developers Tool Kit

At the same time look at your registration form and copy some text where you would want your customized text to appear.

Now go back to your Developers Tool Kit and paste the text in the Look-up in all files box and select All files Cat/Admin

do a search and you will see in what file the text is. You will have to edit that file with a editor and then upload back and put in a override folder.

I customized my log in pages as well, you can check them out. There is a mod How did you hear about us that adds the referral to the registration page.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=186

10 Mar 2008, 7:05 PM
#3
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: How to add information to customer registration page?

Thanks, Danilo! I've avoided the "developer's tool kit" because I'm not a developer. Not even close. But that little gadget let me add the info I wanted to the create-account page and the tell-a-friend page, I uploaded the changed files and they work great. I'd still rather pull in text from a plain text file, but this did work.

15 Apr 2008, 3:55 AM
#4
kgeoffrey avatar

kgeoffrey

New Zenner

Join Date:
Mar 2007
Posts:
22
Plugin Contributions:
0

Re: How to add information to customer registration page?

These are the files to edit.

CATALOG REGISTRATION PAGE

  • includes/templates/template_default/templates/tpl_modules_create_account.php

CATALOG REGISTRATION PAGE FORM SUBMIT

  • includes/modules/create_account.php

ADMIN - CUSTOMER DETAILS

  • admin/customers.php
15 Apr 2008, 3:58 AM
#5
haredo avatar

haredo

Totally Zenned

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

Re: How to add information to customer registration page?

mamasylvia:

I really need for my customers to see some information on the page they register on -- info like how to enter who referred them, reassurance that if they subscribe to the newsletter they will always get a code to save money, a few other items. Ideally, this would be a HTML or text file that ZC would pull in to the registration page so I wouldn't have to mess with editing the .php file every time I want to make a change. I know I'm going to have to edit some .php file to implement this, but it's important enough to me that I'll force myself.

  1. What .php file do I need to edit?

  2. What can I put in, and where, to either pull in info from another file or show a text message near the top of the customer registration page, before they start filling in boxes?

Easier yet there is a mod in the downloads section to take care of this:

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

15 Apr 2008, 1:58 PM
#6
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: How to add information to customer registration page?

Yea, but this mod has caused many people lots of headaches. Just adding a bit of text is easy enough without the mod. And no headaches.

27 Apr 2008, 5:55 AM
#7
jbraz avatar

jbraz

New Zenner

Join Date:
Mar 2007
Posts:
59
Plugin Contributions:
0

Re: How to add information to customer registration page?

kgeoffrey:

These are the files to edit.

CATALOG REGISTRATION PAGE

  • includes/templates/template_default/templates/tpl_modules_create_account.php

CATALOG REGISTRATION PAGE FORM SUBMIT

  • includes/modules/create_account.php

ADMIN - CUSTOMER DETAILS

  • admin/customers.php

I have a quick question about this... this sounds easy but am just wondering , if you add a field to the Registration form , is there no need to add a field for it in the DB ? Or does it create a field for it automatically ? In other words, how does the form know where to save this new info at in the DB ?
I need to add a field for customers to add their tax number but need it to save it in the customer recirds in the DB so would this work for that ?

Thanks !!

27 Apr 2008, 6:38 AM
#8
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: How to add information to customer registration page?

You will need to do ALL:

  1. Add the field into the form
  2. add field into db
  3. Add codes to validate fields, and enter that value into db
  4. add codes to display that field in admin
28 Apr 2008, 4:07 AM
#9
jbraz avatar

jbraz

New Zenner

Join Date:
Mar 2007
Posts:
59
Plugin Contributions:
0

Re: How to add information to customer registration page?

OK, I was afraid of that. :( More than my pea-brain can handle me thinks.
Thanks for the answer !

28 Apr 2008, 4:12 AM
#10
kgeoffrey avatar

kgeoffrey

New Zenner

Join Date:
Mar 2007
Posts:
22
Plugin Contributions:
0

Re: How to add information to customer registration page?

You'll need to add a field to the zen_customers table

My basic approach in editing the files and db was to duplicate all the occurences of the customers_referral input. If I recall, when I went to add the field to the registration form, I couldn't figure out the Zen language, so I just hard-coded the field (based on the source code of the live web page), but other than that, it was a straight search, duplicate, and replace the duplicate "customers_referral" with the name of the new field (plus editing any of the English according to my needs).

I hope that helps.

30 Jul 2010, 7:38 PM
#11
jackie_taferner avatar

jackie_taferner

Totally Zenned

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

Re: How to add information to customer registration page?

Hey guys, give this mod a shot!

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

EDIT: i just noticed you're looking to add TEXT, not a customer entered field (like the module above does).

All you need to do is open up includes/templates/YOURTEMPLATE/templates/tpl_modules_createaccount.php and add your text in that file. It will then appear on the create account page.