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