Customise Order Export

  • Posts: 260
  • Thank you received: 25
11 years 6 months ago #102073

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.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 6 months ago #102205

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.

  • Posts: 260
  • Thank you received: 25
11 years 6 months ago #102217

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.058 seconds
Powered by Kunena Forum