Web Hosting Talk







View Full Version : oscommerce adding fields at account creation page


Onture
02-14-2004, 11:45 AM
Has anyone successfully add custom fields to the customer sign up page? I couldn't find much info on their forum/contribution page.

Any help appreciated.

sadcox66
02-17-2004, 08:17 PM
Actually there is an example in the osCommerce Wiki on
how to modify the sequence of text entry boxes when excepting
customer account information.

I guess you just need to add a field in your database and
replicate the code in /catalog/account.php

oletom
02-18-2004, 11:56 AM
Just use these in your script :eek:

What ever your form uses to pass info to the script like:
$in{'req-name'}
$in{'req-email'}
$in{'req-address'}
$in{'WHATEVER'}

Then look for something in your script like:
open (FILE, ">>YourDataBase.db"); then you sould see something like:
$in{'req-name'}|$in{'req-email'}|$in{'req-address'}||\n";