Skip to main content

Custom fields

More
9 years 7 months ago #261081 by arcnos
Custom fields was created by arcnos
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.

More
9 years 7 months ago #261085 by nicolas
Replied by nicolas on topic Custom fields
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.

More
9 years 7 months ago #261140 by arcnos
Replied by arcnos on topic Custom fields
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.181 seconds
Powered by Kunena Forum