Custom fields

  • Posts: 2
  • Thank you received: 0
  • Hikashop Essential
7 years 2 months ago #261081

Hi,
I need to create a CronJob with HikaShop to export orders in csv and send the file by email to a specific address.
But for some customer's reasons I need to use alias for columns (ex: order_number AS ORDNUM).
Which is the best way to follow to reach my goal?

Thank you and have a nice day

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
7 years 2 months ago #261085

Hi,

There is no setting to do that.
You can do an automatic export and have it attached to an email sent automatically to you periodically with the mass actions system.
But there is nothing to change the column names.
So either way, it will require some coding.
The simplest will be to directly modify the _exportCSV function of the file administrator/components/com_hikashop/classes/massaction.php and add some str_replace to something similar to change the column names.
Another would be to develop a plugin to do that whole process in the plugin, but that's a lot more work to put in.

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

  • Posts: 2
  • Thank you received: 0
  • Hikashop Essential
7 years 2 months ago #261140

Hi Nicolas,
I'll do as you suggested.
Thank you and have a nice day

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

Time to create page: 0.059 seconds
Powered by Kunena Forum