Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default "Add customer via admin"

    I'm using 'add customers through admin' and want to turn off the 'required' for an address.

    All customers are created via admin, ie not self signing up and the address field isn't required at this stage.

    I tried changing the minimum values to 0 but that didn't do it.
    I tried editing the add_customer.php file but still nothing.

    Thanks in advance.

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    Quote Originally Posted by bigbadboy View Post
    I'm using 'add customers through admin' and want to turn off the 'required' for an address.

    All customers are created via admin, ie not self signing up and the address field isn't required at this stage.

    I tried changing the minimum values to 0 but that didn't do it.
    I tried editing the add_customer.php file but still nothing.

    Thanks in advance.
    B,
    ....... Developers Tool Kit

    The Developers Tool Kit in Admin/ Tools is a great help for tasks such as these.

    admin panel/ tools/ developers tool kit
    1. In the bottom box (left hand corner) enter in your distinctive Search wording.
    A. In you case I would search for *
    2. Click the drop down menu under All Files Look-ups: Choose: All Files-Catalog/Admin
    3. Click search, and WALA, you will find the files associated with this search.
    4. Open that file in a good text editor and change the Wording, or eliminate it leaving only the two single quotes ''.
    5. The two single quotes '' must always stay.

  3. #3
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    Thanks for the reply.
    This only produced a big list of files with * in.

    What I want to do is turn off the requirement for an address.
    The same way that, for example, you can -
    configuration > customer details - Date of Birth - set to 'false'.

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    Quote Originally Posted by bigbadboy View Post
    Thanks for the reply.
    This only produced a big list of files with * in.

    What I want to do is turn off the requirement for an address.
    The same way that, for example, you can -
    configuration > customer details - Date of Birth - set to 'false'.
    B,
    includes/ templates/ your_template_name/ templates/ tpl_modules_create_account.php
    1. Search for this:
    2. PHP Code:
      <label class="inputLabel" for="street-address"><?php echo ENTRY_STREET_ADDRESS?></label>
        <?php echo zen_draw_input_field('street_address'''zen_set_field_length(TABLE_ADDRESS_BOOK'entry_street_address''40') . ' id="street-address"') . (zen_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="alert">' ENTRY_STREET_ADDRESS_TEXT '</span>'''); ?>
      <br class="clearBoth" />
    3. Comment out the line
    I used the Developers Tool Kit and searched for ENTRY_STREET_ADDRESS_TEXT which I found when I searched for *
    1. your first search is not only the answer

  5. #5
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    Again, I don't think I am making this clear enough, sorry.

    I don't want to remove the field, I need the address fields to be accessible, just not a required element when signing up a new customer.

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    B,
    Boy I am having a bad morning here.. 2 in a row...

    I must need a break, or some coffee

  7. #7
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    We've something in common then as I am certainly having a bad day!

    Chin up, it could be worse.


  8. #8
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    Quote Originally Posted by bigbadboy View Post
    Again, I don't think I am making this clear enough, sorry.

    I don't want to remove the field, I need the address fields to be accessible, just not a required element when signing up a new customer.
    B,
    Please read:

    http://www.zen-cart.com/forum/showth...elete+required
    1. read all, but look at #19
    2. hope this helps

  9. #9
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: "Add customer via admin"

    Thanks again but this still doesn't sort it.
    It's totally correct in what it states, and thanks for pointing it out.

    The problem, I think is with the 'add customers via admin' contrib. It seems to use other files than the standard. I need to go through all the files associated with it and try and work it out from there.

 

 

Similar Threads

  1. Installing "Swap Images via Mouseover or Click" add-on
    By vojager in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jan 2011, 02:53 AM
  2. Getting "There were errors" using the Add Customer In Admin addon
    By Skeanie in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Sep 2009, 12:24 PM
  3. Replies: 2
    Last Post: 22 Aug 2009, 06:07 PM
  4. "add customer in admin" "Sign in as coustomer"
    By Astarkley in forum Customization from the Admin
    Replies: 0
    Last Post: 6 Sep 2008, 08:40 PM
  5. "Add customer via Admin" - remove fields
    By bigbadboy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 May 2008, 12:15 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
  •  
disjunctive-egg