Zen Cart Logo
Forums / Managing Customers and Orders / which file inserts customer info in DB?

which file inserts customer info in DB?

Locked

Views: 1,394

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 Feb 2010, 10:56 AM
#1
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

which file inserts customer info in DB?

I'd like to make some alterations to how the customer information is inserted into the database upon sign up - can anyone let me know where the file is that does this ?? - I've not been able to find it using the developers tool kit for some reason.

_thanks

9 Feb 2010, 11:18 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: which file inserts customer info in DB?

I'd like to make some alterations to how the customer information is inserted into the database upon sign up
Messing with the DB can cause trouble
What exactly is it you wish to alter?

9 Feb 2010, 11:34 AM
#3
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: which file inserts customer info in DB?

kobra:

Messing with the DB can cause trouble
What exactly is it you wish to alter?

Thanks Kobra - I have already created another table in the DB and I am looking to separate customers - so if they select for example 'writer' - their details will be inserted into the new table ('writers') rather than the 'customers' table..

_thanks

9 Feb 2010, 11:42 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: which file inserts customer info in DB?

I have already created another table in the DB and I am looking to separate customers - so if they select for example 'writer' - their details will be inserted into the new table ('writers') rather than the 'customers' table..
Best to run through a create account and a purchase as a writer as there is much code that pulls from the customer info table
You will need to create a "switch case" for every occurrence to insure that a writer's info is polled from the table you created

9 Feb 2010, 8:14 PM
#5
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: which file inserts customer info in DB?

thanks .... back to the original query I guess - which file is that in?? I still can't find it .. I was thinking this file: -

includes/modules/create_account.php

..but can't find it in there >> any help on this is really appreciated.

_thanks

9 Feb 2010, 9:04 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: which file inserts customer info in DB?

back to the original query I guess - which file is that in??
As I stated
KoBra:

You will need to create a "switch case" for every occurrence to insure that a writer's info is polled from the table you created
You can use the developers toolkit to search for instances of "customer" and you will see the many files that will require adding your writer table query to

https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

12 Feb 2010, 7:11 PM
#7
g_force avatar

g_force

Zen Follower

Join Date:
Feb 2009
Posts:
354
Plugin Contributions:
0

Re: which file inserts customer info in DB?

thanks Kobra > it was this coding which was the reason nothing was coming up with the developers tool kit for inserting into the 'customers' table :

zen_db_perform(TABLE_CUSTOMERS, $sql_data_array);

_thanks