Zen Cart Logo

EDI questions

Views: 751

Results 1 to 4 of 4
19 Jul 2012, 6:10 PM
#1
taerox avatar

taerox

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

EDI questions

First of all I hope this is the correct forum to post this in, I did not see a forum specifically for programming questions.

Currently my site is set up and working fine. I have created a desktop application (C#) which I can forward customers orders to my warehouse via a .dat file, this is becoming cumbersome as we are getting busier and busier each day. This file basically says what to ship and where to ship it to, plus what type of shipping method to use.

I would like automate this as soon as my customers pay... So when a customer makes a payment, immediately a file should be created containing billing, shipping, and order information.

I've been poking around in the includes/classes/ folder trying to figure out which file is presented after the order has been fully paid for, because at this point I want to send the order file to the warehouse.

Any advice is greatly appreciated!

19 Jul 2012, 6:18 PM
#2
kobra avatar

kobra

Black Belt

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

Re: EDI questions

admin/orders.php can capture when paid

Automation of processing can proceed from there

Zen-Venom Get Bitten

19 Jul 2012, 6:25 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: EDI questions

I would say you want to hook into /includes/classes/order.php, as this runs every time an order is placed. It already sends order info and e-mails to various places, and you should be able to add what you need building on the examples there.

19 Jul 2012, 8:29 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: EDI questions

Take a look at the "Send SMS on new order" plugin for an example of hooking into the completed order process.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.