Zen Cart Logo
Forums / Managing Customers and Orders / Electronic Submission of orders

Electronic Submission of orders

Locked

Views: 1,016

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Apr 2009, 2:45 PM
#1
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Electronic Submission of orders

I have been given the task of setting up a magazine subscription ecommerce site. The magazine fullfillment center my client will be using is requesting that we submit orders to them electronically via a .dat file. Below is the format that they want the data

1 ABCD00000000 0104501200001001000000012001N 2008121800000000000 0000000000ERIC UUTINEN 15720 HIDDEN LAKE CIRCLE CLERMONT FL 34711 0 OOOOOOOOOOOOOOOO

Does anyone have any idea how I can do this with zencart? thanks

Cindy

16 Apr 2009, 7:30 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Electronic Submission of orders

You would need a full definition of that dat file to get the information in that format ...

Then, is this a daily batch on the dat file or per order?

How is the dat file sent to them?

16 Apr 2009, 8:43 PM
#3
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: Electronic Submission of orders

Full definition of the dat file? Do you mean what each set of characters represents (date, customer, etc.)?

It would be a daily batch on the dat file and it would be sent via ftp to the fullfillment centers server.

16 Apr 2009, 9:25 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Electronic Submission of orders

Without the specs on the break down it is hard to guess just what you need to send, but more or less ... there is always a solution ...

You just need to break down each component and build the file ...

But that line you show is a bit vague as to what all they need per order per item ...

12 customers order 1 magazine each ...

12 customers order 1 or 3 magazines each ...

1 customer orders 1 magazine but 3 copies, 1 for the house, 1 for work and 1 for the car ...

17 Apr 2009, 2:16 AM
#5
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: Electronic Submission of orders

Ahh I see what you mean. I will ask more questions about the break downs. Thanks and I will probably be back.

17 Apr 2009, 4:27 AM
#6
wolfsz avatar

wolfsz

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
286
Plugin Contributions:
3

Re: Electronic Submission of orders

Hi there
typically a .dat file has one transaction per line. In your case I would think a line is a subscription of a customer to a mag.
What you need to get is what each position in a line stand form eg
1-10 customer code
11-19 order date
etc
then all you need todo is to create a SQL welect statement to extract the required information and export it to a file
This can be done using phpmyadmin.
If you get stuck with writing the select statement then post what you have come up with and I'm sure we can help you out. Note that you will need to run a join over zen_orders and zen_orders_products

17 Apr 2009, 1:28 PM
#7
creativeone avatar

creativeone

New Zenner

Join Date:
Mar 2005
Posts:
58
Plugin Contributions:
0

Re: Electronic Submission of orders

Yeah I think that is the hard part is trying to figure out the positions. I am attaching a zip file that they sent me with the layout of what they need. I just can't seem to get my head around this for some reason.

20 Apr 2009, 6:29 AM
#8
wolfsz avatar

wolfsz

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
286
Plugin Contributions:
3

Re: Electronic Submission of orders

Hi again
That looks pretty straight forward to me. What you need to do is:

  1. identify the fields you need to fill in
  2. work out the position these are in (1st to last position number)
  3. use filler for positions not used (wg blank or 0, check with client)
  4. write SQL seclect code to extract data and fills in filler positions
    or write a PHP script that writes to they file if you prefer