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

#   Country and State recording in My SQL

##

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

7 years 5 months ago [\#307745](#307745) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307745 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")* was created by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")*

-- url of the page with the problem -- : draganfly.co.uk
-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.0

Hello Fab Hikashop

My customers are having their country and states saved in the mysql database with extra info, for example :

country_United_Arab_Emirates_221

How can I stop this?

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTc2OTgtY291bnRyeS1hbmQtc3RhdGUtcmVjb3JkaW5nLWluLW15LXNxbD90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

7 years 5 months ago [\#307750](#307750) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307750 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")*

Hi,

What is saved in the addres_country column of the hikashop_address table is indeed something like that, which is the namekey of the zone. If you look in the hikashop_zone table, you can see the namekey there.
Then, the namekey is automatically converted to the name of the country when the system is displaying the address.
Changing that to save something else than the zone_namekey would be quite complex as the system hasn't been made to use something else (like the zone ID or the zone name).
Even payment plugins or shipping plugins expect the address_country to contain a zone namekey. If you change that to something else, then payment/shipping plugins might not work properly.
So I would recommend against it.

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

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

7 years 5 months ago [\#307794](#307794) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307794 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")*

HI

Thanks for that, the issue I have is that when I export the orders it puts "country_FRANCE_441" for the customers address and it looks awful. It doesn't link it to the hikashop_zones table.

Mmmmm Thoughts.

Cheers

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTc2OTgtY291bnRyeS1hbmQtc3RhdGUtcmVjb3JkaW5nLWluLW15LXNxbD90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

7 years 5 months ago [\#307796](#307796) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307796 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")*

Hi,

That's not what I have on my end. When I click on the "export" button of the orders listing in the backend, the billing_address_country, billing_address_state, shipping_address_country and shipping_address_state columns all contain the zone name and not the namekey as it is converted automatically. The only case when it doesn't happen is when the zone has been deleted in which case you get the namekey.

But maybe we're talking about something else ? Or maybe you have a bug in the orders listing export on your website ?

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

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

7 years 5 months ago [\#307841](#307841) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307841 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")*

HI

I am using CSV export as otherwise I have to click on each of the orders I wish to export and might export some twice. It didn't use to happen, I have some customers that have just "Norway" in the database.

Cheers

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTc2OTgtY291bnRyeS1hbmQtc3RhdGUtcmVjb3JkaW5nLWluLW15LXNxbD90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

7 years 5 months ago [\#307843](#307843) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307843 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")*

Hi,

I'm not sure what you mean with your sentence "I am using CSV export as otherwise I have to click on each of the orders I wish to export and might export some twice". Do you mean that you use the "export" button of the orders listing ? Or do you use something else ?
If you have just "norway" in the database for the address_country column, it could mean that this is the namekey for the zone of the norway country in the hikashop_zone table.

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

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

7 years 5 months ago [\#307905](#307905) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307905 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")*

Hello

I do not use the hikashop orders section to download the orders I use an extension called CSV export. This will download the ones that I have not already downloaded so I can import them into my system. In the country box, I have some older customers where it still says just "norway" whereas new customers it says "Country_norway_123"

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTc2OTgtY291bnRyeS1hbmQtc3RhdGUtcmVjb3JkaW5nLWluLW15LXNxbD90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

7 years 5 months ago [\#307906](#307906) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Country and State recording in My SQL](/forum/33-customers/897698-country-and-state-recording-in-my-sql#307906 "-- url of the page with the problem -- : draganfly.co.uk -- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.0  Hello Fab Hikashop  My customers are having their country and states saved in the mysql database with extra info, for example :  country&#95;United&#95;Arab&#95;Emirates&#95;221  How can I stop this?  Cheers Iain")*

Hi,

Then you need to check with the support of that extension so that they can properly convert the country / state namekey into the name when the export is running.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTc2OTgtY291bnRyeS1hbmQtc3RhdGUtcmVjb3JkaW5nLWluLW15LXNxbD90bXBsPW1hcmtkb3du) 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.077 seconds

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