Zen Cart Logo
Forums / All Other Contributions/Addons / Export Shipping & Order Information

Export Shipping & Order Information

Views: 109,563

Results 1 to 20 of 538
14 Sep 2007, 5:56 PM
#1
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Export Shipping & Order Information

I'm using the "Export Shipping & Order Information" add-in
version 1.2.1, our finance and shipping people appreciate it!

Feature requests:

  • optionally split first & last name (columns)
  • reset the 'export' flag! based on date (and/or order number)

Bug fix requests:

  • if using all fields including 'export full product' info, the columns prior (such as comments and notes) must all be correctly quoted otherwise spurious commas and such in strings will not clearly indicate columns correct (and not import into excel easily).

  • if you can only select one of something, use radio buttons instead of checkboxes

16 Sep 2007, 11:51 PM
#2
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Export Shipping & Order Information

dhcernese:

I'm using the "Export Shipping & Order Information" add-in
version 1.2.1, our finance and shipping people appreciate it!

Feature requests:

  • optionally split first & last name (columns)
  • reset the 'export' flag! based on date (and/or order number)

I am working on the next release which already has a "date" feature in it so that may cover what you are looking for here. I'll look into the first and last name issue, but that seems like it would be something that could easily be combined on the side after export? In any event, I can look into it for the next release.

dhcernese:

Bug fix requests:

  • if using all fields including 'export full product' info, the columns prior (such as comments and notes) must all be correctly quoted otherwise spurious commas and such in strings will not clearly indicate columns correct (and not import into excel easily).

  • if you can only select one of something, use radio buttons instead of checkboxes

The first bug fix was already addressed in the most recent version (1.2.2).

The second isn't really a bug. Just a more user friendly option. I'll look into that with the next release as well.

Thanks!

Glad you like it. :)

17 Sep 2007, 1:32 PM
#3
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: Export Shipping & Order Information

econcepts:

I'll look into the first and last name issue, but that seems like it would be something that could easily be combined on the side after export?
Everyone here imports it into their excel. The shipping people use it as-is. The finance folks keep a "subscription" database where the first and last name are stored separately.. ..so they asked to split it, otherwise they have to edit each and every order by hand.

Thanks! I didn't know there was a more recent version, great! Yes, I agree the checkbox/radio thingy is not a 'bug'.. ..btw, I've had two people comment that they expected the export to live under "reports" rather than "tools", but makes no difference to me!

17 Sep 2007, 1:43 PM
#4
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: Export Shipping & Order Information

econcepts:

The first bug fix was already addressed in the most recent version (1.2.2).I just installed 1.2.2 and I think you forgot to update 'VERSION'. The export column 'bug' is fixed, it looks great now!

17 Sep 2007, 1:56 PM
#5
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: Export Shipping & Order Information

dhcernese:

I just installed 1.2.2 and I think you forgot to update 'VERSION'. The export column 'bug' is fixed, it looks great now!Oops, spoke too soon. It's better bug not completely correct.

I'll try to attach an example. Note my product notes have tricky characters in them from my securepay module.

18 Sep 2007, 4:59 PM
#6
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Export Shipping & Order Information

I see the cause. I'll put out a bug fix here for that. I have yet to see it come from others, but it looks like the info passed back to you in the note field (from your cc processor) contains some information that has characters (the quote) which push your data to the next cell.

Again, thanks for the heads up. I'll get this out in a bug fix. Thanks!

20 Sep 2007, 3:26 AM
#7
rbobzin avatar

rbobzin

Zen Follower

Join Date:
Mar 2007
Posts:
112
Plugin Contributions:
0

Re: Export Shipping & Order Information

Let me start by saying that this mod is a lifesaver! Have it working in 2 sites, and really couldn't have kept the clients happy without it.

But (isn't there always a "but"), I have a couple problems:

  1. The only comments that are downloaded are the messages from Authorize.net, like "Credit Card payment. AUTH: xxxxxx. TransID: xxxxxxxxxx", but never the original comment input by the customer during checkout. Both comments are in the orders_status_history table, but only the 2nd gets exported. Anything I can do to get both, ideally in separate Excel cells?

  2. This is a little more weird - the first site only used one "Order Total" function (or module, or whatever it's called), so didn't discover this problem until I uploaded the second site. This 2nd site used 2 "order Total" whatevers - sub-total and total, and when I exported the orders, I got duplicates of each. That is, if I had 10 orders, the mod exported 20 lines, even though there were only 10 records in the orders table. When I deleted the "sub-total" records in the orders_total table, problem solved. Neither site needs anything more than just the total, so no sweat for now, but what about the next client who may need sub-total and tax?

BTW, I did change the admin->shipping_export.php file in 2 ways:

  • deleted the lines "AND ot.class = 'ot_shipping'" so I could export all orders
  • changed delivery_xxx to billing_xxx to see customers' billing info instead of shipping stuff
    I was very careful while makng these changes, then compared files (WinMerge) to make sure nothing else was accidently changed.

Site details: Zen Cart version 1.3.7.1, mod version 1.2.2, PHP 5 and MySQL 5. Also, we always export "1 product per row".

Any idea what I can do to fix these problems? Let me know if you would like access to either of the sites' admin areas.

Thanks!

21 Sep 2007, 1:25 AM
#8
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Export Shipping & Order Information

The comment issue I will look into. I do know that in past trials, the only way to get things working smoothly was to have the system export only the first comment (which is ideal anyhow as you would want to know if the customer had any special order instructions over knowing all the data that is passed back through your cc processor.)

In any event, why it is choosing the second set of comments I will have to look into.

I have been working on the next version of this mod based on user requests and various feedback and hope to have that out soon. I will address this issue in that release as well.

On your second point.

I've heard of a few things with others here and there with regard to the "ot" class. I am looking into that as well.

If I need access to either site, I'll let you know (I'll PM you). With the recent feedback, I am going to try to move up the release of the next version.

I'll keep you posted.

21 Sep 2007, 1:54 AM
#9
pattygale avatar

pattygale

New Zenner

Join Date:
Apr 2006
Posts:
61
Plugin Contributions:
0

Re: Export Shipping & Order Information

Hi Eric,

I did receive your email yesterday and replied back. I just wanted to make sure you received it. I know you are busy, but was just wondering if you had a chance to look at it yet.

Thanks!

23 Sep 2007, 4:58 PM
#10
pattygale avatar

pattygale

New Zenner

Join Date:
Apr 2006
Posts:
61
Plugin Contributions:
0

Re: Export Shipping & Order Information

Anyone????

26 Sep 2007, 1:14 PM
#11
rbobzin avatar

rbobzin

Zen Follower

Join Date:
Mar 2007
Posts:
112
Plugin Contributions:
0

Re: Export Shipping & Order Information

Don't know if this helps, but after installing Dr. Byte's AIM_UPDATE patch (to fix an "apostrophe in name" problem with Authorize.net transactions) in my test site, the correct (original) comment did indeed download for the test orders I placed. Maybe there's something in that new AIM file that changes the way the mod works?

10 Oct 2007, 7:47 PM
#12
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: Export Shipping & Order Information

econcepts:

I see the cause. I'll put out a bug fix here for that. I have yet to see it come from others, but it looks like the info passed back to you in the note field (from your cc processor) contains some information that has characters (the quote) which push your data to the next cell.

Again, thanks for the heads up. I'll get this out in a bug fix. Thanks!
Did you release a bug fix somewhere?
By the way, it doesn't appear to be caused by a quote. My cell in broken right in the middle of a string, one of many quoted strings.

12 Oct 2007, 9:32 PM
#13
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Export Shipping & Order Information

rbobzin:

Don't know if this helps, but after installing Dr. Byte's AIM_UPDATE patch (to fix an "apostrophe in name" problem with Authorize.net transactions) in my test site, the correct (original) comment did indeed download for the test orders I placed. Maybe there's something in that new AIM file that changes the way the mod works?

This doesn't actually change the export mod. It does address the issue though (which is the way apostrophes are handled).

12 Oct 2007, 9:34 PM
#14
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Export Shipping & Order Information

dhcernese:

Did you release a bug fix somewhere?
By the way, it doesn't appear to be caused by a quote. My cell in broken right in the middle of a string, one of many quoted strings.

No bug fix yet. I was working on a few projects here.

It is coming soon. From the sample files I got here with users that mention this problem (there are only a few), it is indeed due to the way the quoted strings are passed back by the processor.

27 Oct 2007, 8:45 PM
#15
vitalchip avatar

vitalchip

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Export Shipping & Order Information

I have an odd problem with this mod..

It was all working great last week, now it's not! When I go to the export page in admin, it shows orders to be exported but when I export them all I get is the headers.

I've tried exporting in test mode, csv only has headers, tried it for real, still only headers and the order is maked up as having been exported. It all seems fine except for the empty csv file.

I've tried re installing all of the original files, uninstalling the sql and then putting it back in.

Can anyone suggest something else to try?

Thanks.

28 Oct 2007, 1:12 AM
#16
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Export Shipping & Order Information

vitalchip:

I have an odd problem with this mod..

It was all working great last week, now it's not! When I go to the export page in admin, it shows orders to be exported but when I export them all I get is the headers.

I've tried exporting in test mode, csv only has headers, tried it for real, still only headers and the order is maked up as having been exported. It all seems fine except for the empty csv file.

I've tried re installing all of the original files, uninstalling the sql and then putting it back in.

Can anyone suggest something else to try?

Thanks.

Please address all questions on this mod to the original thread found at:

http://www.zen-cart.com/forum/showthread.php?t=65715

That question has been addressed in a number of posts one shown below for example.

http://www.zen-cart.com/forum/showpost.php?p=445165&postcount=94

28 Oct 2007, 8:28 PM
#17
vitalchip avatar

vitalchip

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Export Shipping & Order Information

Hi Eric, yes, I'd read the other thread and tried the suggestions but it still doesn't work.

It's quite odd because it used to. I made some changes to export_shipping.php before, to include some static text between the exported fields, even these don't show up, it's as if it's not actually assembling the export file.

I tried removing the while( !$order_details->EOF ) { and the closing bracket, just to see what happened.. it exported one instance of all the static text when that statement was removed.

here's what I changed things to:

$str_export = """ . $order_details->fields['delivery_name'] . """ .
","" . $order_details->fields['delivery_name'] . """ .
","" . $order_details->fields['delivery_name'] . """ .
","". $order_details->fields['delivery_street_address'] . """ .
","". $order_details->fields['delivery_suburb'] . """ .
","". " " . """ .
","". $order_details->fields['delivery_city'] . """ .
","". $order_details->fields['delivery_state'] . """ .
","". $order_details->fields['delivery_postcode'] . """ .
","". "GB" . """ .
","" . $order_details->fields['customers_telephone'] . """ .
","". " " . """ .
","" . $order_details->fields['customers_email_address'] . """ .
","". " " . """ .
","". "1" . """ .
","". " " . """ .
","". " " . """ .
","". " " . """ .
","". " " . """ .
","" . $order_details->fields['date_purchased'] . """ .
","". $order_details->fields['orders_id'] . """ .
","" . $order_details->fields['delivery_name'] . """ .
","". $order_details->fields['delivery_postcode'] . """ .
","". $order_details->fields['order_total'] . """ .
","". $order_details->fields['value'] . """;

as i say, if i remove the eof checking it will export the GB and the 1 etc, in the correct places but nothing from the database.

I don't know if any of that helps.

28 Oct 2007, 8:46 PM
#18
vitalchip avatar

vitalchip

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Export Shipping & Order Information

Ok, got it sorted, i'd failed to realise that there was more than one instance of

AND ot.class = 'ot_shipping' in the file shipping_export.php

I'd only deleted one. Now I have deleted them all I'm back in business,

Thanks Eric.

28 Oct 2007, 10:53 PM
#19
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Export Shipping & Order Information

Glad you got it working.

The new release I am finishing up here (1.2.3) will address that issue as well as some new features that others have requested.

19 Sep 2008, 2:45 PM
#20
japanophyle avatar

japanophyle

New Zenner

Join Date:
Apr 2005
Location:
Minnesota
Posts:
67
Plugin Contributions:
0

Re: Export Shipping & Order Information

I'm having a similar issue and was encouraged when I read this thread. However, you post from 2007 indicates you were about to release version 1.2.3 of this module, yet I cannot find it anywhere. Did it ever come out?:unsure:

I just installed the module today. I have ZenCart 1.3.7.1 running PHP 4.4.8. I could (and probably should) upgrade to ZC 1.3.8, but I would really like to take care of some business before doing so. Is it necessary to do so before trying to use this module?