Edit export order

  • Posts: 22
  • Thank you received: 0
10 years 4 months ago #162780

How do I change the column order of export to csv file where it is indicated address_state (shipping_address_state or billing_address_state) by changing the name in 2 or 3 characters (zone_code_3) instead of the full name?
Example "Milan" -> "MI"
Is there any option to moficare value? I see you in the "zone" the data is already present
Thank you!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 4 months ago #162784

Hi,

You can create a simple plugin based on the function "onBeforeOrderExport()" and edit the $rows data to replace the full name by the 2-3 desired characters.

Here is some documentation:
hikashop.com/support/support/documentati...#onBeforeOrderExport

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

Time to create page: 0.052 seconds
Powered by Kunena Forum