Zen Cart Logo
Forums / Managing Customers and Orders / Company Name Field on Regsitration

Company Name Field on Regsitration

Views: 898

Results 1 to 10 of 10
19 Aug 2015, 17:59
#1
bobc avatar

bobc

New Zenner

Join Date:
Jun 2013
Location:
UK
Posts:
49
Plugin Contributions:
0

Company Name Field on Regsitration

Hi All,

I am hoping somebody can point me in the correct direction!

On the registration page (login page) there is a field for company name.

I need to change this to Course Title for the educational establishments the site will be for. I have managed to change the text on the page to read course title by editing the file /languages/English/myTemplate/English.php.

However, when a client enters a course title (e,g,) Animal Welfare and then completes all other fields correctly, the page returns with the message 'please enter a course title' and thus will not allow users to register! See image.

I guess this is because it is trying to post the information to a table in the SQL but I am damned if I can locate which one.

Can anybody help me out with this?

Many thanks in advance.

Bob

19 Aug 2015, 18:17
#2
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Company Name Field on Regsitration

Good morning

What do you have for minimum length of company name? configuration->minimum values ->company

lruskauff

19 Aug 2015, 18:24
#3
bobc avatar

bobc

New Zenner

Join Date:
Jun 2013
Location:
UK
Posts:
49
Plugin Contributions:
0

Re: Company Name Field on Regsitration

Minimum Value for company name in configuration is 1

19 Aug 2015, 19:42
#4
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Company Name Field on Regsitration

Did you make any other changes? You shouldn't have to mess with the database table if you only changed the text on the screeen. That information will be saved in the companyname field.

20 Aug 2015, 12:03
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Company Name Field on Regsitration

Another thing to check is whether your custom template has introduced the issue. Try temporarily changing back to the "Classic Green" template to see if the same error occurs.

20 Aug 2015, 19:06
#6
bobc avatar

bobc

New Zenner

Join Date:
Jun 2013
Location:
UK
Posts:
49
Plugin Contributions:
0

Re: Company Name Field on Regsitration

lat9:

Another thing to check is whether your custom template has introduced the issue. Try temporarily changing back to the "Classic Green" template to see if the same error occurs.

Thanks for the input everybody.

I cant see any other changes to the files in question and switched to Classic Green and attempted the steps as previously. It's worth noting, the classic green retuned the box to company name rather than course title and date of birth reverted to mm/dd/yyyy rather than what I have configured in the template I am using which is dd/mm/yyyy as it is written in the UK.

As you can see from the image even using the classic green I am asked to enter a company name (which I did at the outset) and also this is not flagged as a compulsory field!!

Attachment 15548

20 Aug 2015, 19:35
#7
bobc avatar

bobc

New Zenner

Join Date:
Jun 2013
Location:
UK
Posts:
49
Plugin Contributions:
0

Re: Company Name Field on Regsitration

As an added note, I am unable to find a companyname field which you mention in any of the SQL tables. I can however locate a entry_company field in the address_book table.

20 Aug 2015, 21:26
#8
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Company Name Field on Regsitration

Ok, so if classic green makes you input a value, then something got modified along the way. As for the text that you changed, you changed it in the other template file, not the classic green so we would expect it to change back. And sorry about the company name field, I was just speaking in general terms, not using the database name.

So are you using the current version of zencart? What plugins did you install? Can we see your site?

21 Aug 2015, 11:11
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Company Name Field on Regsitration

Since the minimum length (Configuration->Minimum Values->Company) for the company name is 1, it's a required field.

The (*) required indicators for the form need to be hand-edited, so you'll need to edit /includes/languages/YOUR_TEMPLATE/english.php to change

  define('ENTRY_COMPANY_TEXT', '');

to

  define('ENTRY_COMPANY_TEXT', '[B]*[/B]');

The value, when entered and validated, will be stored in the entry_company field of the customer's record in the address_booktable. That field is limited to 32 characters.

21 Aug 2015, 16:32
#10
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Company Name Field on Regsitration

lat9:

Since the minimum length (Configuration->Minimum Values->Company) for the company name is 1, it's a required field.

The (*) required indicators for the form need to be hand-edited, so you'll need to edit /includes/languages/YOUR_TEMPLATE/english.php to change

define('ENTRY_COMPANY_TEXT', '');

> 
> Yes but he said he is getting that message when customer enters a value in the field?
> 
> Lruskauff
> to
> ```
  define('ENTRY_COMPANY_TEXT', '[B]*[/B]');

The value, when entered and validated, will be stored in the entry_company field of the customer's record in the address_booktable. That field is limited to 32 characters.
Yes but he says he gets that message when customer enters a value in field,?