osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Extra fields in Customer Account

This is a discussion on Extra fields in Customer Account within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, Im wondering if anyone can help me add 3 extra fields in the customer account area. I want to ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-05-2002, 09:08 PM
Lurker
 
Join Date: Nov 2002
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cralyn
Default Extra fields in Customer Account

Hi,
Im wondering if anyone can help me add 3 extra fields in the customer account area.
I want to add the following:
Bike/ATV Make
Model
Year

I have got the extra fields in place and viewable. They also work on input from admin area. I am getting the following error message when attempting to either creat or edit an account as a customer. Could someone explain what it means and how to overcome it.

1054 - Unknown column 'entry_bike_make' in 'field list'

update address_book set entry_street_address = '56 Brickworks Road', entry_firstname = 'Craig', entry_lastname = 'Harrison', entry_postcode = '4503', entry_city = 'Kallangur', entry_country_id = '13', entry_bike_make = 'kawasaki', entry_bike_model = 'GPX 250', entry_bike_year = '1991', entry_gender = 'm', entry_suburb = '', entry_zone_id = '0', entry_state = 'Queensland' where customers_id = '2' and address_book_id = '1'

[TEP STOP]


Thanks
Craig
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-19-2002, 04:35 PM
Member
 
Join Date: Oct 2002
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stan
Default

Looks to me as if the entry_bike_make field doesn't exist in the address_book table of your catalog database. Are you sure that you added the new fields to the database structure?

-- stan c",)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-21-2002, 01:04 PM
Active Member
 
Join Date: Nov 2002
Location: Sydney
Posts: 124
Thanks: 10
Thanked 0 Times in 0 Posts
Rep Power: 6
ozstar is on a distinguished road
Default How does one do this?

How does one 'add' new fields to the dbase as I too am interested in what he wants to do!

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-21-2002, 04:00 PM
Member
 
Join Date: Oct 2002
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stan
Default

Well, I tend to use PhpMyAdmin, which makes it easy to administer databases over the web. Keep in mind that it is possible to mess up your OS Commerce when tinkering with the database, so a good measure of caution is warranted.

There are a lot of utility functions and what not, so adding fields often necessitates changes in several other areas. Not too sure what is required for adding fields to the customer off-hand...



-- stan c",)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-27-2002, 11:47 AM
Anonymous
Guest
 
Posts: n/a
Default The MySql Query

If you want to edit the tables (and I would stress a lot of caution too), and you have the mysql program (downloadable on www.mysql.com) here's the query to use to add new fields:

ALTER TABLE tablename ADD COLUMN newfield VARCHAR(X) DEFAULT '' NOT NULL;

tablename in this case would be customers
newfield can be whatever you want. You could have it customers_bike
VARCHAR(X) is the type of field you are creating. It can be CHAR, INT, and many other things.
DEFAULT '' is the default information in the field. If INT is used this can be a number (usually 0).
NOT NULL is just that.

Again be cautious when changing fields.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-23-2004, 03:45 AM
Lurker
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vermeerr
Default

Can someone explain what the process is for adding customized fields? Or does someone know a good howto on the net?

Thanx in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-26-2004, 09:20 AM
Member
 
Join Date: Oct 2003
Location: The Antelope Valley in SoCal
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
In-Overtime
Default

I also would like to add additional fields to the "create_account.php" page.

After installing an SSL cert, I need to set up a credit application for customers wishing to finance a vehicle, and I would rather tie it into the catalog database instead of going outside the directory, tieing it into the Customer Account for future reference.

If someone could put together a contribution (H'mm, maybe using something like the "Addtional pages" contribution) that would be awesome!

BTW - Additional Pages Contrib is at
http://www.oscdox.com/modules.php?op...%20New%20Boxes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Does osCMax have the product extra fields contr. installed? orbitroderick osCMax v2 Features Discussion 1 08-24-2006 06:42 PM
Create an Account - How to Re-Order Fields ? Lobotaman osCMax v1.7 Discussion 2 04-11-2005 10:15 AM
How to add extra fields on products! anil osCMax v1.7 Discussion 4 03-26-2005 12:07 PM
problem while adding extra fields developer_x osCommerce 2.2 Modification Help 2 11-27-2004 10:32 PM
Prroduct Extra Fields v1.3 Problem davec69 osCMax v1.7 Discussion 0 10-13-2004 12:07 PM


All times are GMT -8. The time now is 11:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax