Hola , Usuario |
| Registro
Recordar mi cuenta ¿Ha olvidado la contraseña ?
Site Map Mapa de sitio Contact us Contacte con nosotros
PrestaShop
  602 Usuarios en línea
Forum  >  English Forum  >  Third party modules  >  Thread

1 of 3
1
Post Reply
New Topic
Module to Export Orders

offline
Posted: 01 December 2008 04:53 PM   [ Ignore ]
Senior Member
RankRankRank

Messages :

  • total: 335
  • last 7 days: 2
Joined: 2008-12-01

Hello

I am new to PrestaShop, it is the best open source shopping cart I have seen. Comes with many of the features you need.
I was looking for a module to export orders in csv format. I could not find one here, so I made a simple module myself.

There were a few other people looking for something like this. I have attached the module. Just extract it and put it in your modules folder. And set the folder write permissions.

After you install it you can generate a csv file in the configure page.

Updates:
Now the page automatically redirects to download the report.
It no longer requires write permission, and does not store the order data in a file.
Tested on 1.2.

There is also a commercial pro version available with filters. You can see it here:
http://www.bvkyazilim.com/cart/prestashop-modules/19-export-orders-pro.html

File Attachments
exportorders.zip  (File Size: 3KB - Downloads: 1866)
exportorders_2.0.zip  (File Size: 6KB - Downloads: 509)
 Signature 

BVK Software Professional web & application development and Commercial PrestaShop Modules

Commercial PrestaShop Modules Available:
CSV Order Export, Product Feature Comparison Module, Canonical SEO Module - Prevent Duplicate Content, Events Module, Save My Cart Module, Forum Module

 
offline
Posted: 01 December 2008 07:22 PM   [ Ignore ]   [ # 1 ]
Regular
RankRank

Messages :

  • total: 87
  • last 7 days: 0
Joined: 2008-08-24

Great works fine! thx

 
offline
Posted: 01 December 2008 07:59 PM   [ Ignore ]   [ # 2 ]
Newcomer
Rank

Messages :

  • total: 5
  • last 7 days: 0
Joined: 2008-12-01

Hi great work, can you add more fields as notice that the product id is not included

But still excellent work.

Are you also available for other custom modules design ?

grin
 
offline
Posted: 01 December 2008 08:00 PM   [ Ignore ]   [ # 3 ]
Partner
RankRankRankRankRank

Messages :

  • total: 2087
  • last 7 days: 6
Joined: 2007-12-22

I tried this module on V1.1 beta3 but nothing happens when “generate report” is clicked (some or all fields checked).

 
offline
Posted: 01 December 2008 08:53 PM   [ Ignore ]   [ # 4 ]
Newcomer
Rank

Messages :

  • total: 5
  • last 7 days: 0
Joined: 2008-12-01

The report is generated in the exportorders module in the modules directory called orders.csv wink

 
offline
Posted: 02 December 2008 12:07 AM   [ Ignore ]   [ # 5 ]
Partner
RankRankRankRankRank

Messages :

  • total: 2087
  • last 7 days: 6
Joined: 2007-12-22

OK I found it

 
offline
Posted: 02 December 2008 04:43 AM   [ Ignore ]   [ # 6 ]
Senior Member
RankRankRank

Messages :

  • total: 335
  • last 7 days: 2
Joined: 2008-12-01

onlinebeautydirect - 01 December 2008 07:59 PM
Hi great work, can you add more fields as notice that the product id is not included

But still excellent work.

Are you also available for other custom modules design ?

grin

Thanks.

I may do some changes soon. But each order may contain multiple products, so there is not a straight way of including product id. Anyone has any good ideas?

Actually, developed this for a client, I am a full time PHP developer. You can just pm me for custom design.

 Signature 

BVK Software Professional web & application development and Commercial PrestaShop Modules

Commercial PrestaShop Modules Available:
CSV Order Export, Product Feature Comparison Module, Canonical SEO Module - Prevent Duplicate Content, Events Module, Save My Cart Module, Forum Module

 
offline
Posted: 02 December 2008 04:44 AM   [ Ignore ]   [ # 7 ]
Senior Member
RankRankRank

Messages :

  • total: 335
  • last 7 days: 2
Joined: 2008-12-01
jolvil - 01 December 2008 08:00 PM
I tried this module on V1.1 beta3 but nothing happens when “generate report” is clicked (some or all fields checked).

There is also a link below the generate report button after you first click on it. The link goes to the last generated file.

 Signature 

BVK Software Professional web & application development and Commercial PrestaShop Modules

Commercial PrestaShop Modules Available:
CSV Order Export, Product Feature Comparison Module, Canonical SEO Module - Prevent Duplicate Content, Events Module, Save My Cart Module, Forum Module

 
offline
Posted: 02 December 2008 11:23 AM   [ Ignore ]   [ # 8 ]
Partner
RankRankRankRankRank

Messages :

  • total: 2087
  • last 7 days: 6
Joined: 2007-12-22

This csv includes all orders from begining of shop, is there a way to filter and have orders of a period, like a month?

 
offline
Posted: 02 December 2008 12:06 PM   [ Ignore ]   [ # 9 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 781
  • last 7 days: 0
Joined: 2008-08-03

I’ve been working on a similar one, and came across the same issue with orders containing multiple items. It’s a pity that stock control programs don’t use xml….

Paul

 Signature 

Free Prestashop modules and developer resources

follow me on Twitter for news and updates.

Latest Free Prestashop Module updates:
* GoogleBase 0.6.3.1 Hotfix <- didn’t fix what is was intended to. :(
* The Ultimate Prestashop Module and Theme Development Tool

My French is terrible, so feel free to laugh when I attempt to post en français.

 
offline
Posted: 03 December 2008 07:12 PM   [ Ignore ]   [ # 10 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 612
  • last 7 days: 2
Joined: 2008-07-26

I also started working on a similar module, but instead of saving it I tried to send it as an attachement to the header, but I kind of got strange results.. I also want to include the possibility to export customers, products and categories in the module.

the problem with orders is as pointed out that each order may have multiple products.. so it kind of depends on the import tool that is to be used how to handle this..

maybe a look at this may help? http://www.oscommerce.com/community/contributions,4728

 Signature 

http://www.prestaworks.com Modules and themes for prestashop.
E-butik med prestashop inkl hosting och gratis installation.

 
offline
Posted: 05 December 2008 08:56 AM   [ Ignore ]   [ # 11 ]
Regular
RankRank

Messages :

  • total: 52
  • last 7 days: 0
Joined: 2008-08-14

I installed this module successfully and it kinda works. What doesn’t is the resulting CSV file.
Not sure if it’s an UTF problem, but some characters come out garbled (accents and stuff like º or ª).

Also, on many cases, cell contents come out of place. I have a first part on and address in the Delivery Address field, then a 2nd half of the same address filled in Invoice address (so both Addresses are in a way wrongly displayed). Some Address parts also show up on Payment field, most everything is out of place later on and I’m not sure what went wrong.

Has anyone experienced this as well?

Also, as with many export modules, it’s all nice to have an CSV export, I don’t deny it, it comes in handy. But what about imports?

One limitation I find with the DB Backup under Tools is that… well… you backup everything. You’re given a choice to Import different kinds of entities but you don’t really have an automated way to export them, which is a shame cuz if you want to manipulate data to fix or edit some entries, you’ll just end up going back to phpmyadmin and start wasting time again.

I’m not complaining, it’s just an observation.

And when we import products, why does it have to match Product ID? If I use CSV to update info (after an export), wouldn’t it make more sense to match an EAN or product reference instead? Otherwise… we’ll get duplicates if we don’t make sure we got the right ID.

 
offline
Posted: 07 December 2008 03:20 PM   [ Ignore ]   [ # 12 ]
Regular
RankRank

Messages :

  • total: 51
  • last 7 days: 0
Joined: 2008-05-15

Hello:

I installed the module on a test server and it worked fine. I then installed the module on a production server at GoDaddy and the module will not produce a download. It does produce the file but only on the server and not as a popup that I can download. So I figured I would download the file directly via FTP. However, when I open the file in Calc (alternative to Excel) it doesn’t open as it should. I’ve tried using different encodings to see if that was the issue but to no avail. Can someone guide me on what to do? Thank you!

 
offline
Posted: 07 December 2008 04:26 PM   [ Ignore ]   [ # 13 ]
Senior Member
RankRankRank

Messages :

  • total: 335
  • last 7 days: 2
Joined: 2008-12-01

This module is not a priority for me at the moment. But I may add a date filter in the next week or so. Errors need analyzing and I can’t spare the time now, I need to prioritize my clients first.

If the generated file does not open in Excel or Calc, try opening it in notepad first. There might be some characters used in product names and such that may make the file invalid.

I have also posted an update to start the file download automatically, displaying the file download popup.

 Signature 

BVK Software Professional web & application development and Commercial PrestaShop Modules

Commercial PrestaShop Modules Available:
CSV Order Export, Product Feature Comparison Module, Canonical SEO Module - Prevent Duplicate Content, Events Module, Save My Cart Module, Forum Module

 
offline
Posted: 07 December 2008 05:44 PM   [ Ignore ]   [ # 14 ]
Regular
RankRank

Messages :

  • total: 51
  • last 7 days: 0
Joined: 2008-05-15

That’s awesome! But where is the update? I’ve figured out how to modify your script for other db tables. However, I’m still unclear on making it download automatically. Thank you!

 
offline
Posted: 07 December 2008 05:47 PM   [ Ignore ]   [ # 15 ]
Senior Member
RankRankRank

Messages :

  • total: 335
  • last 7 days: 2
Joined: 2008-12-01

I replaced the original file. You just need to download again.

To download automatically:

Tools::redirect('url');

 Signature 

BVK Software Professional web & application development and Commercial PrestaShop Modules

Commercial PrestaShop Modules Available:
CSV Order Export, Product Feature Comparison Module, Canonical SEO Module - Prevent Duplicate Content, Events Module, Save My Cart Module, Forum Module

 
 
1 of 3
1
Fast Reply
New Topic