Zen Cart Logo
Forums / General Questions / Where is the code that sends order data to the database?

Where is the code that sends order data to the database?

Views: 660

Results 1 to 2 of 2
15 May 2013, 2:50 PM
#1
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Where is the code that sends order data to the database?

I am looking for the code (SQL query) which sends the order data to the database (items, comments, delivery info, etc.). Where would I find this?

Thanks,
BParker

15 May 2013, 4:37 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Where is the code that sends order data to the database?

There are many parts of the code that trigger that, depending on what you're trying to do.
Your question implies that maybe you're planning to intercept the normal code and hack in some changes to what is stored, perhaps adding extra info to be stored. And while your first instinct appears to be that you intend to just hack the core code file to do it in the order.php class file, chances are you want to make your changes easier to manage through an upgrade, and thus you should be using notifier hooks to make your changes in custom observer class files that you add to the site.

So ... what exactly are you intending to do? What business problem are you really trying to solve?