Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    273
    Plugin Contributions
    0

    Default telephone required

    hello,

    how do i setup the shopping cart to require the customer to enter a phone number when ordering?

    (not the one required when registering.....but asking for a telephone number at the time of ordering)

    thanks,
    Ned

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: telephone required

    Its not a little task, but it is possible.

    You'll need to edit a couple of files, and the database structure. If you don't want to alter the database, then the easiest way is to add the telephone number to the customers comment.

    You'll need to add the telephone column to the orders table in the database. Then you'll need to add the box to the correct tempalte file. YOu can chose where you ask for it, but the file is tpl_checkout_xxxxxxxx_defualt.php, where the xxx is either payment, or shipping.

    Next you'll need to alter the orders.php class, found in includes/classes/orders.php. You need to read through, and pretty much copy the way in which $_SESSION['comments'] is stored.

    You may also need to alter the header.php file, found in includes/modules/pages/checkout_xxxxx/header.php so that the $_POST['telephone'] is stored as a session variable.

    Finally you will need to alter admin/orders.php to display your collected telephone number.

    I know its only a quick breakdown, but it should give you an idea of the work involved before you decide how to do this.

    Absolute

 

 

Similar Threads

  1. Customer telephone required?
    By tammyt in forum Customization from the Admin
    Replies: 13
    Last Post: 22 Oct 2010, 10:14 PM
  2. I need telephone number required
    By Invizix in forum Managing Customers and Orders
    Replies: 29
    Last Post: 23 Jun 2010, 03:39 PM
  3. telephone not required on signup
    By clydejones in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Feb 2008, 01:57 PM
  4. Address or telephone info not required
    By maxis in forum Managing Customers and Orders
    Replies: 0
    Last Post: 18 Jul 2007, 03:36 AM
  5. Telephone Not Required
    By StephenInThailand in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Jan 2007, 04:52 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