Jump to content

.CSV export module


CTDAN
 Share

Recommended Posts

I'm currently struggling writting a module that is responsible for exporting a .CSV which contains specific infomation on an order. So far I've managed to extract the data I want from the database and create a .CSV file, this is fine. As I want this process automated I'll need this function to run once the e-mail notification has been sent to the customer (or something similar that triggers it). How would I go about doing this??

I've been reading into classes and functions of Prestashop so far but there seems to be very little documentation for it and hardly any tutorials for module creation (i've already read the 5 or 6 tutorials there are floating about) which makes it very hard.
Would anyone have any ideas of where to start about doing something like this? Any infomation about passing order details into my module class or anything would be very helpful!

Any advice or pointing in the right direction is much appreicated!

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 2 weeks later...

Hi,
I would be looking at just the export module side of things,

i.e... on a products state e.g "Preparation in progress" <- all orders contained are exported in CSV

QTY
Product Ref
Full Name
Street Add 1
Street Add 2
City
Post code
Phone Number
E-mail


Version 1.1.0.5

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More