Forums / Managing Customers and Orders / How to send data out to a separate database (on same server) after an order is made?

How to send data out to a separate database (on same server) after an order is made?

Locked

Views: 635

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Jun 2010, 2:40 PM
#1
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

How to send data out to a separate database (on same server) after an order is made?

Zen cart version: 1.3.8a

We sell "Teacher Training", and every Teacher Training Class is a product.

What we want to do is, when they purchase a class, we want to send the user data (name, address, etc) as well as the class model number to a separate Database that we are creating.

What file do I have to edit in order to send out the information when the purchase is made?

One big caveat: We currently use Paypal Express Checkout and Linkpoint/Yourpay API for payment, and they are both set to "Authorize only". So basically, I want the zen cart to send out the data ONLY AFTER the order is "charged"... like when we finally capture the money.

Thanks so much in advance for the help

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

1 Jun 2010, 3:09 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to send data out to a separate database (on same server) after an order is made?

Check and see if everything you are looking for isn't controlled in the order.php class ...

Everything has to processes in there and if you need to add data from the order to another class you can obtain the data from in there ...

That and the checkout_process.php module should be able to be used for managing the information and gathering where you need it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Jun 2010, 3:19 PM
#3
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: How to send data out to a separate database (on same server) after an order is made?

Great, thanks for the direction Linda!

What gets processed when we hit "Capture" to capture the money, is it order.php as well? That's basically what I'm confused about right now.

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

1 Jun 2010, 10:29 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to send data out to a separate database (on same server) after an order is made?

It really depends on where you need to processes your code in relation to the order ...

For to processes after a Capture, look in the /admin/orders.php and if you search on:
doCapture

you will see the cases where this is run ... you can add more code before the redirect or within this case ...

You may find the other cases in that section of help also for you ...

Between those three files you should locate where and when you actually want to apply your changes to update your other table ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!