Edit export options

  • Posts: 72
  • Thank you received: 0
11 years 8 months ago #92854

hi,

i'm using the export button to export my orders to a csv file so i can view in excel.

is there a way to edit which db fields are exported?

at the moment i'm having to manually delete a lot of columns in excel that i dont need every time i export.

i'd like it to just be order number, name, address and a few others.

thanks

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #92896

Hi,

I think that in your case, the best solution would be to directly import your database table (through phpmyadmin) in a CSV format.

Hope this will help you.

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

  • Posts: 72
  • Thank you received: 0
11 years 8 months ago #92927

thanks for the reply but that's not really what i'm looking at.

i'd like to customise what fields the 'export' button exports. i need it to be easy to use and not require me to use phpmyadmin.

where in the hikashop directory can i find the code for the 'export' button to see how it generates it's export? can i edit this?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #93041

Hi,

You can edit the view "order / export" to change the row content.
Then if you need more, the file "administrator/components/com_hikashop/views/order/view.html.php" function "export()" can be useful.
And the helper "spreadsheet" in "administrator/components/com_hikashop/helpers/spreadsheet.php" allow you more changes.

Be careful the two last files are HikaShop core file, so if you edit them you will lose your changes at each update.

The following user(s) said Thank You: daveturner101

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

Time to create page: 0.074 seconds
Powered by Kunena Forum