Jump to content

Fields registrer user


voltagebr

Recommended Posts

Hello , I'm hard to remove or disable fields in the customer record.

I would like to remove the LAST NAME , for the user to enter the full name in a field only .

The other fields are related to the delivery address / billing , wanted to remove COMPANY, LAST NAME, CELL PHONE

I entered Tab  LOCATION > COUNTRIES and entered the BR to edit , but when I delete the list of fields they appear again.

 

Grateful!

post-790045-0-08535300-1463169776_thumb.jpg

post-790045-0-74545200-1463169777_thumb.jpg

Edited by voltagebr (see edit history)
Link to comment
Share on other sites

those fields are required fields, they will be validated and you get error if those data is not presented.

in order to bypass the validation, you will have modify the class definition to make it not required.

Here is example of /classes/Customer.php

    public static $definition = array(
        'table' => 'customer',
        'primary' => 'id_customer',
        'fields' => array(
            'secure_key' =>                array('type' => self::TYPE_STRING, 'validate' => 'isMd5', 'copy_post' => false),
            'lastname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32),
 
 
            'lastname' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isString', 'required' => false, 'size' => 32),
 

 

after the change, then you can try to hide the fields you do not want.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...