Forums / Managing Customers and Orders / Company name vs Customer name at registration

Company name vs Customer name at registration

Locked

Started by sanji on 27 Jan 2008, 12:33 AM · Views: 2,568

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
27 Jan 2008, 12:33 AM
#1
sanji avatar

sanji

Zen Follower

Join Date:
Jan 2005
Posts:
138
Plugin Contributions:
0

Company name vs Customer name at registration

Hello,

Upon reregistration, the customer has to enter his name and, if willing to do so, his company's name.

Is there a way to have only the company's name OR the customer's name required for the registration? Some companies don't want to have a specific name written on the bills, only the name of the company is enough...

Thanks,

sanji

27 Jan 2008, 12:37 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Company name vs Customer name at registration

Are you using any payment modules that process credit cards?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

27 Jan 2008, 2:48 AM
#3
sanji avatar

sanji

Zen Follower

Join Date:
Jan 2005
Posts:
138
Plugin Contributions:
0

Re: Company name vs Customer name at registration

No Kuroi, I do not use any credit card on that shop.

sanji

28 Jan 2008, 1:21 AM
#4
wolfsz avatar

wolfsz

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
286
Plugin Contributions:
3

Re: Company name vs Customer name at registration

Hi there
In that case it seems that it might be easiest to remove the comany name in admin and then rename the name field to the company name in the language file. However as soon as you do this you will have people asking for a person's name to be entered. So the other alternative would be to make the surname field not compulsary.

Wolf Skafte-Zauss
http://e-commerce-pros.com
Tools for E-commerce Professionals

28 Jan 2008, 9:57 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Company name vs Customer name at registration

I'm working from memory, but I believe that the only fields that Zen Cart absolutely requires are email address, password and country id. Most anything else can be turned off, if not by switches, then by tweaking forms and their associated validation and database writing. So since you won't need the customer name for payment modules, you should be able to do this, though obviously a lot of testing would be needed.

The forms that require addresses are:

  • tpl_account_edit_default.php
  • tpl_modules_address_book_details.php
  • tpl_modules_checkout_new_address.php
  • tpl_modules_create_account.phpSo these may need changes to remove the required asterisks and indicate what is now required.

The results are validated by:

  • modules/pages/account_edit/header_php
  • modules/pages/account_edit/jscript_form_check.php
  • modules/pages/address_book_process/header_php.php
  • modules/pages/address_book_process/jscript_main.php
  • modules/checkout_new_address.php
  • modules/pages/checkout_payment_address/jscript_main.php
  • modules/pages/checkout_shipping_address/jscript_main.php
  • modules/create_account.php amd
  • modules/pages/create_account/jscript_form_check.phpfour of which (the non-jscript files) also update the database. So these files would need to be changed to apply your new condition and allow for the possibility of empty fields.

You may also want to take this a step further and adjust admin/invoice.php and admin/packingslip.php. And you will probably need to tweak to admin/orders.php to display a company name when you don't have a personal name.

This should cover most of the changes, though there will probably be some odds and ends that I've missed. Please post back here to let us know what they are.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)