Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Plugin Contributions

    Default validating custom field during account creation

    I have added a custom field to my create account page for a referral code. The field is manditory and produces an appropriate message. I also have a table in the database that I will store referral codes. I need the create account page to check and see if the referral code is correct based on the information stored in the db table.
    Any help would be appreciated.

  2. #2
    Join Date
    Jul 2009
    CA of USA
    Plugin Contributions

    Default Re: validating custom field during account creation

    1. Click on Configuration > Customer Details to access the common Customer Details screen.

    At the bottom of this page, you'll see 'Customers Referral Status', edit it.

    Customers Referral Code is created from
    0= Off
    1= 1st Discount Coupon Code used
    2= Customer can add during create account or edit if blank

    NOTE: Once the Customers Referral Code has been set it can only be changed in the Admin Customer


    When new user create account, it will submit its referral code to 'create_account.php' which is under '\includes\modules\' folder. In the create_account.php file, you can query one of your tables which stores the defined referral code to match the $_POST['customers_referral'], and validate it.
    Last edited by ruanchao; 31 Jul 2009 at 04:42 AM. Reason: make up some more details



Similar Threads

  1. Replies: 6
    Last Post: 6 Apr 2015, 08:42 PM
  2. Custom field to the New account creation.
    By vishva8kumara in forum Managing Customers and Orders
    Replies: 2
    Last Post: 5 Oct 2009, 10:17 PM
  3. Hide Telephone During Account Creation Issue
    By abhishek77 in forum General Questions
    Replies: 1
    Last Post: 5 May 2008, 12:30 PM


Posting Permissions

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