Jump to content

help to clean code in module to export orders to CSV


ezakimak

Recommended Posts

Hi,
I have posted a modified version of a module a found here (exportorders module) to work with ps1.4.0.17, but the final CSV is not clean, the content (CSV) is generated as expected but it also includes some html code at the beginning and at the end of the file, may someone here could help me (perhaps giving some tips) to clean up the code

this is the original post#60 with the file attached
http://www.prestashop.com/forums/viewthread/8424/P45/third_party_modules/module_to_export_orders


regards

Hugo

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

great work pozzo, your modify works in PS 1.4.3 as well. but can you help me with tab in BO? the tab doesn´t work for me :-/

 

OK, i found it, how to show tabs in BO.

 

PEAdminExportorders.php

 

edit line 6

 

private $module = 'pe_exportorders';

 

to

 

private $_module = 'pe_exportorders';

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...

yes I download this one and using it on prestashop 1.4.3 ... i´ve tried change it, but nothing. but now i have different issue. i´d like to export only specific invoice. the best issue is to have input in administration of this module and there just write id of specific invoice. can you help me?

Link to comment
Share on other sites

  • 1 month later...

Hey, I have installed module on 1.4.6.2 but having no luck with exporting orders...

 

Within the tab navigation, I just get the following message

 

"Tab file cannot be found."

 

I have replaced line 6 as suggested above but still no difference?!

Used a different version of the module and all is working now... Does anyone know how to add discount names/voucher codes to export list?

Link to comment
Share on other sites

  • 4 months later...

Someone knows how can I include Reference Number to have it in csv document?

 

Thank you, for advance!

----------------------------------------------------- edit->

I've solved it by myself!

 

That's what I did, for someone needs:

 

In pe_exportorder.php where is:

 

 

'r'=>array(

'n'=>'order_detail',

'f'=>array(

array(

'n'=>'product_name',

'l'=>'Product name'

),

array(

'n'=>'product_quantity',

'l'=>'Product Qty'

),

array(

'n'=>'product_price',

'l'=>'Product Price'

),

 

If you are interesting, you can add the property of product you need, my example:

 

 

array(

'n'=>'product_reference',

'l'=>'Product Reference'

),

Link to comment
Share on other sites

  • 3 years later...

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
×
×
  • Create New...