Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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)

  3. #3
    Join Date
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default Re: Company name vs Customer name at registration

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

    sanji

  4. #4
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

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

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.php
    So 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.php
    four 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)

 

 

Similar Threads

  1. v154 Company Name after Customer Name Support
    By dw08gm in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 Aug 2015, 07:08 AM
  2. v151 Company Name after Customer Name (instead of before)
    By dw08gm in forum General Questions
    Replies: 3
    Last Post: 8 Oct 2014, 11:42 AM
  3. Company Name in registration - question
    By pwoens in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 20 Sep 2008, 12:43 PM
  4. Customer Registration Form, Company name Field
    By ArekM in forum Managing Customers and Orders
    Replies: 1
    Last Post: 16 Nov 2007, 07:04 PM
  5. Making the company name 'required' in registration
    By pilot in forum Managing Customers and Orders
    Replies: 5
    Last Post: 20 Jul 2006, 07:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg