Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    help question Edit Customer Account BUT Require Phone Problem

    I have disabled the telephone number field for customers account creation so they don't have to insert their phone no. But I can't edit the customer account without having to insert the phone no.

    How can I disable the require for telephone number when editing the customer's info?

    Thanks.

  2. #2

    Default Re: Edit Customer Account BUT Require Phone Problem

    Hi,
    Under Configuration > Minimum Values > Telephone Number clear the field so it's blank. That worked for me.

    My next problem is removing the "* Required" text next to the telephone input field...

    Cheers!

  3. #3

    Default Re: Edit Customer Account BUT Require Phone Problem

    My next problem is removing the "* Required" text next to the telephone input field...
    Figured it out...

    Around line 803 in admin/customers.php, change this:

    Code:
    echo zen_draw_input_field('customers_telephone', $cInfo->customers_telephone, zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', 15), true);
    to this:

    Code:
    echo zen_draw_input_field('customers_telephone', $cInfo->customers_telephone, zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', 15), false);

  4. #4
    Join Date
    Oct 2006
    Location
    At Home
    Posts
    370
    Plugin Contributions
    0

    Default Re: Edit Customer Account BUT Require Phone Problem

    Yes, I think it works for me too. But I can't get the recent customer's order address to change.

  5. #5
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Re: Edit Customer Account BUT Require Phone Problem

    The above still didnt work for me, so I commented out this code around line 457 (in customers.php);

    PHP Code:
     if (customers_telephone == "" || customers_telephone.length < <?php echo (int)ENTRY_TELEPHONE_MIN_LENGTH?>) {
        error_message = error_message + "<?php  echo JS_TELEPHONE?>";
        error = 1;
      }
    Donation made. Enjoy those donuts! :-)

  6. #6
    Join Date
    Sep 2009
    Location
    California
    Posts
    148
    Plugin Contributions
    0

    Have a Drink Re: Edit Customer Account BUT Require Phone Problem

    Quote Originally Posted by Scott_C View Post
    The above still didnt work for me, so I commented out this code around line 457 (in customers.php);

    PHP Code:
     if (customers_telephone == "" || customers_telephone.length < <?php echo (int)ENTRY_TELEPHONE_MIN_LENGTH?>) {
        error_message = error_message + "<?php  echo JS_TELEPHONE?>";
        error = 1;
      }
    Thanks Scott - just upgraded from .8a to .9h and that little jump caused the phone check to break. Some clients don't always format their name/address/etc. to Propercase and it's just a OCD thing... clean data and all. That phone check was a tad irksome.

    Thinking that there should be a switch in the Admin to control this one... Dr ?

  7. #7
    Join Date
    Jun 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Edit Customer Account BUT Require Phone Problem

    hi, i am not able to edit customer's details. Edit button is not working, how can i solve this issue.

    plz suggest me

  8. #8
    Join Date
    Jun 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Edit Customer Account BUT Require Phone Problem

    when i click on edit button cID is blank.....................

    why is this happening?? & how can i solve this.

 

 

Similar Threads

  1. v139h No phone number on customer account
    By BrokerT in forum Managing Customers and Orders
    Replies: 5
    Last Post: 30 Nov 2012, 07:52 AM
  2. require customer to confirm ne account by email link
    By bonnit in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Oct 2009, 01:41 PM
  3. Replies: 10
    Last Post: 1 Nov 2008, 11:52 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