Zen Cart Logo
Forums / All Other Contributions/Addons / "Add customer via admin"

"Add customer via admin"

Locked

Views: 1,524

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 May 2008, 12:24 PM
#1
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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

8 May 2008, 1:52 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: "Add customer via admin"

bigbadboy:

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.
8 May 2008, 2:00 PM
#3
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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

8 May 2008, 2:13 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: "Add customer via admin"

bigbadboy:

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:

<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 lineI 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:smile:
8 May 2008, 2:30 PM
#5
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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.

8 May 2008, 2:33 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

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:smile:

8 May 2008, 2:35 PM
#7
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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.

:smile:

8 May 2008, 3:02 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: "Add customer via admin"

bigbadboy:

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/showthread.php?t=83331&highlight=Create+Account%2C+delete+required

  1. read all, but look at #19
  2. hope this helps
8 May 2008, 3:37 PM
#9
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

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.