Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 59
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I Make certain Customer Registration fields optional?

    There are also the settings in the Configuration ... Minimum Values ... related to the Customer Details ...

    When 0 does not work on a non-required field, then use blank, as in nothing filled in for the length, just leave it blank ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #22
    Join Date
    Jul 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    I just installed this to relaunch my clipart site soon. I am also having this same problem. I have made the minimum values blank and also have them all set to 0 or false under customer details. And it still is asking for too many details.

    To alter the file, would I just open it up in a text editor? How would I save it to make sure it gets saved still as the php file? I know html and can find my way around some other code also. Just not sure how to make sure that the file gets saved in the right format once the changes are made.

    Thanks.

  3. #23
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I Make certain Customer Registration fields optional?

    What do you want to REMOVE?

    What do you want to make OPTIONAL?

    NOTE: do not confuse the appearance of the * Required as meaning it did not work as that is just text that then needs to be updated in the language files so that it does not show on optional fields ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #24
    Join Date
    Jul 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    Can someone please tell me what exactly need to modified in the following three files to completely disable some of the fields? I'm not very comfortable with random deletions of code! I have already disabled everything I can in the admin tool.

    modules/[your mod]/create_account.php
    modules/pages/create_account/jscript_form_check.php
    templates/[your mod]/templates/tpl_modules_create_account.php

  5. #25
    Join Date
    Jul 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    Nevermind. I did everything Ajeh said to do and it worked. The fields are no longer required and my customers can create an account with minimal personal information. Thought i contribute by summarizing everything.
    To change the fields to blank: Go to Admin-Configurations-Minimum Values, change the settings to blank, NOT 0.
    To get raid of the * by the fields: Go to includes/languages/english.php, starting at line 180, leave the '*' in mandatory fields (defined by you) and change all others to ''.

  6. #26
    Join Date
    Jan 2009
    Location
    Charlottesville, VA
    Posts
    51
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    I also found the "Zip code must be at least 0 characters" message a bit confusing, but setting the field to blank in the Minimum Values admin panel did the trick. I decided to try this setting for the State field length as well, which worked as far as making the field optional - but it had the side effect of causing a JavaScript error, disabling the client side form validation. It's best to just leave the State setting as 0 to make it optional. Quirky :)

    I think my take home here is, "If zero works, leave it alone." If it ain't broke...

    Thanks to all for contributing to the discussion.

  7. #27
    Join Date
    Jan 2007
    Posts
    169
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    Quote Originally Posted by karl19 View Post
    We've managed to make "State" no required when signing up, that wasn't an issue, but we're having trouble in the admin. We're using the dual pricing module as we've got a couple of customers who are resellers and to update their status we need to open their account in admin and change them to reseller status.

    However, when doing this, we get told state is required and we can't update the details. We've set state under "minimum values" to blank (as per Ajeh's suggestion) but we're still told state is empty and required in admin.

    Is there anything else one can do?
    Since you are in the Zencart admin, just type "unknown" for the state.

  8. #28
    Join Date
    Jan 2007
    Posts
    169
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    Quote Originally Posted by karl19 View Post
    We've managed to make "State" no required when signing up, that wasn't an issue, but we're having trouble in the admin. We're using the dual pricing module as we've got a couple of customers who are resellers and to update their status we need to open their account in admin and change them to reseller status.

    However, when doing this, we get told state is required and we can't update the details. We've set state under "minimum values" to blank (as per Ajeh's suggestion) but we're still told state is empty and required in admin.

    Is there anything else one can do?
    Or if you don't feel like just filling it in the state with a dummy value (such as "unknown"), you will have to remove the Javascript validation checks, the PHP backend checks, and optionally remove the display of the red alert text saying "required". This three are described in steps 3, 4, and 5 of the tutorial linked here. All code change happens in /admin/customers.php and when that is done, you will be able to update customer details in admin without filling out everything.

  9. #29
    Join Date
    Nov 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    Thanks Spidersilk,
    I tried your solution and it worked so good, I was able to set all of the lines that i did not need to non-mandatory. Thanks again

  10. #30
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: How can I Make certain Customer Registration fields optional?

    Quote Originally Posted by Ajeh View Post
    You could also do this by just changing the settings in the Minimum Values for the Telephone number or Post Code to blank, not 0, but blank as in edit and make the input box blank and hit update ...

    Then, change the language file for the Required for the field(s) to be '' vs '*' and you will not see the red asterisk ...
    Which Language file are you referring to?

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. v150 How to make registration Salutation field optional?
    By scott_ease in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jul 2016, 03:11 AM
  2. making customer registration optional
    By nicubila in forum Managing Customers and Orders
    Replies: 1
    Last Post: 12 Aug 2009, 12:13 PM
  3. How can I make certain create-account fields NOT required?
    By spiralmedia in forum Managing Customers and Orders
    Replies: 4
    Last Post: 9 Mar 2009, 08:45 PM
  4. Making registration fields optional
    By nickbowers in forum Managing Customers and Orders
    Replies: 3
    Last Post: 16 Mar 2008, 02:34 AM

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