Hello
You can just adapt CSV, but it requires a bit of programming.
Please, visit https://docs.algolplus.com/algol_order_export/sample-addons/
Download and install CSV plugin ( via >Plugins>Add New>Upload)
Go back to export – you should mark checkbox at bottom (just above buttons)
Use FileZilla to edit file /wp-content/plugins/woe-custom-csv/woe-custom-csv.php
thanks, Alex Prokaev
Thread Starter
Zibi
(@adwans)
Okeh, I read your documentation, so far so good. But there is a question, is it possible to add some line with specific values into csv file? I now, it is not good for excel importing, but I need the line in the very beginning of export file (for accounting programme). For example:
[INFO]
“version”,1,1,,,$DATE-NOW,0,0,1
[HEADER]
“AA,1,0,0,”some tekst”, $value_from _woocommerce, 0,0,1,”blah”
[ORDER]
AND THERE LINES GO …
this is epp file, edi ++, for accounting. [INFO] and [HEADER] goes once only. Is it possible with hooks?
-
This reply was modified 2 years, 6 months ago by
Zibi.
Hello
please, modify body of
public function format($custom_output, $handle, $data, $delimiter, $linebreak, $enclosure, $is_header) {
and use fwrite() or fputcsv() to add necessary lines.
I think you should hire programmer, he can contact us directly via https://algolplus.freshdesk.com/
thanks, Alex
Thread Starter
Zibi
(@adwans)
Thaks, Alex for fast reply and for your help. And there is also “woe-custom-csv.php” containing format function to write to $handle – great, I will try. Could you give a suggestion where “woe-custom-csv.php” should be put finally?
PS. I like coding, really. 🙂
Please, visit https://docs.algolplus.com/algol_order_export/sample-addons/
Download ZIP file
Install ZIP file via >Plugins>Add New>Upload
my results https://snipboard.io/NEOK6p.jpg
Go to export and you will see https://snipboard.io/u46Ieq.jpg
Use FileZilla to edit file /wp-content/plugins/woe-custom-csv/woe-custom-csv.php