Jump to content

adding custom fields in B.O


Ray UK

Recommended Posts

Im trying to add some custom fields in the custom profile.

We sell ecigs so need to age check customers.

One of these fields will be to say PASS or FAIL, and maybe the other will have a date that they were checked.

I have managed to add the field in the db, show the FAIL or PASS on the customers list, and orders list.

I have the field showing on the edit customer page, but i cannot get the field in the edit customer page to show the value PASS or FAIL.

The field in the db is agecheck and is text

In the AdminCustomersController.php i have this code which shows the value in the customer list.

'agecheck' => array(
                'badge_success' => true,
				'title' => $this->trans('18?', array(), 'Admin.Global')
            ),

customerlist.jpg.6072cd0a090811b45c621813ca417293.jpg

And this code shows the field on the customer edit screen

array(
                    'type' => 'text',
                    'label' => $this->trans('Age Verified?', array(), 'Admin.Global'),
                    'name' => 'agecheck',
                    'required' => false,
                    'col' => '1',
                    'hint' => $this->trans('Is this customer verified as 18 or over?', array(), 'Admin.Global', 'Admin.Notifications.Info').' Type PASS or FAIL'
                ),

editcustomerpage.jpg.3d380d5b16fc07f2586851a0820c0f13.jpg

but it doesnt show the value, and any value I enter does not get saved.

Link to comment
Share on other sites

  • 2 weeks later...

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...