Brian,
You could pull the country codes from the table in the database but a change to the current query would need to be made to allow for that. The reason the current country name was used is for shipping purposes.
In my next release I'll also look at including the country code as an option as well.
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Just uploaded a new version of the contribution to the zen cart downloads section. This is version 1.2.4 and includes a bug fix as well as a small new addition (per request).
Version 1.2.4 Features:
Bugfix:
Corrected issue with the Order Export button not showing up on some users machines.
New Option:
Added option to export ISO country codes. Both 2 character and 3 character codes were added.
IMPORTANT NOTE:
This version addresses the bug problem some users experienced with the order export button not showing up.
A post was put into this thread a few back that suggested users alter the code around line 550 or so of the "shipping_export.php" file in order to get the button to show.
There is a native problem with doing this that will NEGATIVELY affect the export file itself if you choose "order status" as part of the export file.
By making that change one would likely cause a conflict with another variable in the program of the same name and in doing so, wipe out the ability to actually be able to export the order status as a separate field in your final file.
This new release 1.2.4 corrects that issue using another method.
It is advised that you upgrade to the newest 1.2.4 to make sure the program works as intended.
Enjoy!
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
It takes the zen cart team a little time to get it up so it may not be up yet.
If you want it now and don't want to wait, you can get it from here:
http://www.zencartoptimization.com/downloads/
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Thank you so much!!!!
I just saw you post... (I don't know why I didn't recieve a notification, because I'm subscribed to this thread.) Anyway, thanks for the great work, and very very quick support!![]()
I feel quite ashamed now, but I have another question...
Is it easy to built an option in it to disable state being exported?
Same for country (otherwise you have 2 times the country defined, if you use the ISO codes).
If it's much work, you don't have time, or anything, I will just delete those functions.
Thanks in advance!!!![]()
After some trial and error I managed to the above done.
But, when I was processing some orders, I found out that the company wasn't exported.
So, I looked at the code, and at some places delivery_company wasn't grabbed from the database.
I've added some entries, and now should it be fine.
Maybe handy to check and then include in some new version?
In the attachment is what shipping_export.php should look like in my opinion. (this is without my personal changes)
I'll take look at this Brian. I have never had anyone mention the company not being exported. Did this happen after you made some alterations or was this something you noticed before you made alterations?
I certainly can look at the code and if there is reason to include a patch for the company in a new version I will.
Let me know the answer to that portion about what circumstances you noticed the company not being exported so I can look into it.
Thanks!
Last edited by econcepts; 11 Aug 2009 at 01:36 PM. Reason: clarification
Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information
Bookmarks