Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default 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?
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

  2. #2
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default 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?ma...roducts_id=186
    Live and learn... the Zen way.

  3. #3
    Join Date
    Feb 2008
    Posts
    385
    Plugin Contributions
    0

    Default 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.
    [FONT="Times New Roman"]Sylvia
    PM at your own risk, I don't check in regularly!
    MamaSylvia.com My ZenCart tutorial
    [/FONT]

  4. #4
    Join Date
    Mar 2007
    Posts
    21
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: How to add information to customer registration page?

    Quote Originally Posted by mamasylvia View Post
    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?ma...roducts_id=587
    Mark
    Hare Do

  6. #6
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default 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.
    Live and learn... the Zen way.

  7. #7
    Join Date
    Mar 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: How to add information to customer registration page?

    Quote Originally Posted by kgeoffrey View Post
    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 !!

  8. #8
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default 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
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  9. #9
    Join Date
    Mar 2007
    Posts
    58
    Plugin Contributions
    0

    Default 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 !

  10. #10
    Join Date
    Mar 2007
    Posts
    21
    Plugin Contributions
    0

    Default 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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 5
    Last Post: 7 Dec 2013, 06:18 PM
  2. how to add mandatory Pictures and Fields to the customer registration form?
    By chava1106 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Jun 2012, 10:16 PM
  3. How do I add new form fields on the registration page?
    By RawKarat in forum General Questions
    Replies: 1
    Last Post: 13 Dec 2009, 10:49 PM
  4. add additional customer information in registration.
    By jibon in forum General Questions
    Replies: 0
    Last Post: 15 Oct 2009, 12:20 PM
  5. How to add form field to the shopper registration page?
    By erikcw in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 7 Oct 2009, 11:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR