Skip to main content

Customise Order Export

13 years 6 months ago #102073 by sambob
Hi, I am wanting to customise my Order Export CVS; eliminating some fields from the exported file.

I am guessing that the it is the 'order/export.php' that needs to be edited (but not sure what to add.

If I wanted to, for example, remove 'user_created_ip' from the export, what code would I need to add?

If I could get the relevant code for one, I can work out the rest.

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

13 years 6 months ago #102205 by nicolas
Replied by nicolas on topic Customise Order Export
Hi,

You should add the line:
unset($first[array_search('user_created_ip',$first)]);
before:
$export->writeLine($first);

and the line:
unset($row->user_created_ip);
before:
$export->writeLine($row);

Please Log in or Create an account to join the conversation.

13 years 6 months ago #102217 by sambob
Replied by sambob on topic Customise Order Export
Thanks Nicolas.

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum