[Skip to main content](#vessel-content)

#   sequence columns of csv

##

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago [\#191375](#191375) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191375 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")* was created by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")*

-- url of the page with the problem -- : [ www.light-swing.com](http://www.light-swing.com)
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- Browser(s) name and version -- : latest IE, FF and Chrome

Hello,

I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.

Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed.
Where normally the line starts with shipping_address data and after that the shipping_address data it now starts with the billing_address data.
Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.

Ant way I can change the order ?

Kind regards, Wilfried

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

11 years 9 months ago [\#191392](#191392) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191392 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hi,

How did you configure your CSV export ?
Normally, the order of the columns in a CSV is irrelevant. For example, with the CSV import of HikaShop, you can order the columns any way you want and it will work the same. Is that what you're talking about ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago [\#191670](#191670) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  Replied by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191670 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

I agree that the order shouldn't be relevant but my client uses a packing company who reads the fileds in de csv in the order they are presented and they don't use the first line ![:-(](/media/kunena/emoticons/22.png ":-(")

kind regards Wilfried

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

11 years 9 months ago [\#191676](#191676) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191676 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hi,

So how did you configure your CSV export ?
Could you do a screenshot of the settings ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago [\#191715](#191715) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  Replied by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191715 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

I have sent you credentials for the test environment.

kind regards Wilfried

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#191767](#191767) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191767 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hi,

I have edited the file "administrator/components/com_hikashop/classes/massaction.php" function "organizeExportColumn()" in order to force the order of the addresses. Now the addresses columns are always starting by the billing one in the csv file.

You can reverse the order if you want, I added a comment in the code for that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago [\#191861](#191861) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  Replied by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191861 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Thanks Xavier.

I did some testing and billing address comes first all the time.
I changed the order of these two lines to get the shipping address first, or is that not what you mean?

// Reverse the order of these elements to have the shipping address first
if(!isset($action)) $action = array();
if(!isset($action)) $action = array();

Do I have to change something else to change the order?

Hope to hear from you.

Kind regards, Wilfried

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#191908](#191908) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191908 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hi,

I made the change directly on your website, to put the shipping_address first.
That should do the job, if not please tell me and I will do deeper checks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago -  11 years 9 months ago [\#191938](#191938) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  Replied by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191938 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hello Xavier,

Thanks for that. I'll test this later on.

Is it possible to tell me which part you have edited so that I can copy that part to the script on the production server?
Are can I copy that whole function to be sure, or have you edited parts outside that function?

This is also handy when a new version of Hikashop arrives.

Thanks in advance.

Kind regards Wilfried

Last edit: 11 years 9 months ago by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago -  11 years 9 months ago [\#191981](#191981) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  Replied by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#191981 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hello Xavier,

I am sorry, but I have tested it and billing is still the first one.
Can you have another look please?

You may also test it with the massaction "Export naar CSV (Every Hour)", it is all test.
It copies a file to /subdomains/test/media/com_hikashop/upload/confirmed_orders

Thx

Last edit: 11 years 9 months ago by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#192096](#192096) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#192096 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hi,

I will have a look at your issue tomorrow morning.
Sorry for the delay.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago [\#192097](#192097) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  Replied by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#192097 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

No Problem, Thx.

kind regards Wilfried

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#192180](#192180) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#192180 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Hi,

Problem solved, it was just a ridiculous mistake, I placed the code before the foreach instead of inside.
So it was trying to do a check on a not declared variable so was not taking in account the code.

The following user(s) said Thank You: [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")**
- [![wilfried's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35613.jpg)](/forum/user/35613-wilfried "View wilfried's Profile") Topic Author
- [ Offline](/forum/user/35613-wilfried)

Less More

- Posts: 75
- Thank you received: 1
-
-
-

11 years 9 months ago [\#192276](#192276) by [wilfried](/forum/user/35613-wilfried "View wilfried's Profile")  Replied by *[wilfried](/forum/user/35613-wilfried "View wilfried's Profile")* on topic *[sequence columns of csv](/forum/37-import-export-csv-xls/875107-sequence-columns-of-csv#192276 "-- url of the page with the problem -- :   www.light-swing.com  -- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : latest IE, FF and Chrome  Hello,  I have an hourly export from the order data of my orders. I transfer that csv to the packing company and they do the shipping for the client.  Yestarday we had a client who had a different shipping address then the billing address and then the sequence or order of the columns of the csv is also changed. Where normally the line starts with shipping&#95;address data and after that the shipping&#95;address data it now starts with the billing&#95;address data. Unfortunatly the packing company doesn't read the order fiields with the firts line with the fieldnames but they read the sequence and so when the shipping address is different then the billing address it is read the wrong way.  Ant way I can change the order ?  Kind regards, Wilfried")*

Thank you very much.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzUxMDctc2VxdWVuY2UtY29sdW1ucy1vZi1jc3Y/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.081 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
