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

#   Import from VM2 - Missing user addresses

##

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

Less More

- Posts: 171
- Thank you received: 9
-
-

10 years 9 months ago [\#230387](#230387) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230387 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")* was created by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Hi!

We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?

Thanks in advance,
PePe

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODIzODctaW1wb3J0LWZyb20tdm0yLW1pc3NpbmctdXNlci1hZGRyZXNzZXM/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
-
-

10 years 9 months ago [\#230516](#230516) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230516 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,

Do you have something in the hikashop_address table after the import ?
What is the value of the address_published column for the entries there ?
Do you have the tables virtuemart_states and virtuemart_countries with all the data filled there ?

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

10 years 9 months ago -  10 years 9 months ago [\#230518](#230518) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230518 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

> nicolas wrote: Hi,
>
> Do you have something in the hikashop\_address table after the import ?

No, it's totally empty.

> nicolas wrote: What is the value of the address\_published column for the entries there ?

No, as it's empty.

> nicolas wrote: Do you have the tables virtuemart\_states and virtuemart\_countries with all the data filled there ?

Yes, I have both.

*PS.: The VirtueMart version is: 2.6.6.*

Last edit: 10 years 9 months ago by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile").

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

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

Less More

- Posts: 153
- Thank you received: 12
-

10 years 9 months ago [\#230548](#230548) by [naizak](/forum/user/2680-naizak "View naizak's Profile")  Replied by *[naizak](/forum/user/2680-naizak "View naizak's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230548 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi all,
Sorry for my intrusion…
i think i have actually the same issue, i have all product imported as well the clients and commands but no details inside command, no address, nothing...just names and prices
J3 + Vm3

address_published : all
**hikashop\_address table : Empty**

**address\_published value : 1**

**tables virtuemart\_states and virtuemart\_countries : YES**

Thanks in advance
[ ![Sans&#95;titre-1.jpg](/forum/attachment/29623) ](/forum/attachment/29623 "Sans&#95;titre-1.jpg")

- [ ![Sans&#95;titre-1.jpg](/forum/attachment/29623) ](/forum/attachment/29623 "Sans&#95;titre-1.jpg") [ ](/forum/attachment/29623?download=1 "Sans&#95;titre-1.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODIzODctaW1wb3J0LWZyb20tdm0yLW1pc3NpbmctdXNlci1hZGRyZXNzZXM/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
-
-

10 years 9 months ago [\#230550](#230550) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230550 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,

After the line:
'WHERE vmui.virtuemart_user_id &gt; '.$this-&gt;options-&gt;last_vm_user.' ORDER BY vmui.virtuemart_user_id ASC;';
in the file administrator/components/com_hikashop/helpers/import/vm2.php, add the line:
echo $sql1; exit;
Then, run the import again. That should display at one point the MySQL query that is run by the import system to import the addresses from VM to HikaShop.
Then, run the query in your database which PHPMyAdmin after replacing the #__ by the actual table prefix of your website.
That should provide an error message explaining why it didn't work.

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

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

10 years 9 months ago [\#230596](#230596) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230596 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

> nicolas wrote: Hi,
>
> After the line:
> 'WHERE vmui.virtuemart\_user\_id &gt; '.$this-&gt;options-&gt;last\_vm\_user.' ORDER BY vmui.virtuemart\_user\_id ASC;';
> in the file administrator/components/com\_hikashop/helpers/import/vm2.php, add the line:
> echo $sql1; exit;
> Then, run the import again. That should display at one point the MySQL query that is run by the import system to import the addresses from VM to HikaShop.
> Then, run the query in your database which PHPMyAdmin after replacing the #\_\_ by the actual table prefix of your website.
> That should provide an error message explaining why it didn't work.

I've tried it out.

I've got this SQL command: Code:

INSERT IGNORE INTO &#96;#__hikashop_address&#96; (&#96;address_user_id&#96;,&#96;address_firstname&#96;,&#96;address_middle_name&#96;,&#96;address_lastname&#96;,&#96;address_company&#96;,&#96;address_street&#96;,&#96;address_post_code&#96;,&#96;address_city&#96;,&#96;address_telephone&#96;,&#96;address_telephone2&#96;,&#96;address_fax&#96;,&#96;address_state&#96;,&#96;address_country&#96;,&#96;address_published&#96;) SELECT hku.user_id,vmui.first_name,vmui.middle_name,vmui.last_name,vmui.company,CONCAT(vmui.address_1,' ',vmui.address_2),vmui.zip,vmui.city,vmui.phone_1,vmui.phone_2,vmui.fax,vms.state_3_code,vmc.country_3_code,4 FROM &#96;gomb_virtuemart_userinfos&#96; AS vmui INNER JOIN &#96;gomb_virtuemart_states&#96; vms ON vmui.virtuemart_state_id = vms.virtuemart_state_id INNER JOIN &#96;gomb_virtuemart_countries&#96; vmc ON vmui.virtuemart_country_id = vmc.virtuemart_country_id INNER JOIN &#96;#__hikashop_user&#96; AS hku ON vmui.virtuemart_user_id = hku.user_cms_id WHERE vmui.virtuemart_user_id &gt; 0 ORDER BY vmui.virtuemart_user_id ASC;

I've changed #__ to my table prefix, and then run the SQL in phpMyAdmin, but it's runned ok, saying 0 rows successfully added.
Prtscreen attached.

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

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

Less More

- Posts: 153
- Thank you received: 12
-

10 years 9 months ago -  10 years 9 months ago [\#230629](#230629) by [naizak](/forum/user/2680-naizak "View naizak's Profile")  Replied by *[naizak](/forum/user/2680-naizak "View naizak's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230629 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,
i did it and it works on j3 + vm3 , but i have nothing add in my command adress.
So i restart import , i had the insert message ....
So i deleted all and i imported back still no adresse in command at all ...
Thanks

- [ ![Sans&#95;titre-2.jpg](/forum/attachment/29635) ](/forum/attachment/29635 "Sans&#95;titre-2.jpg") [ ](/forum/attachment/29635?download=1 "Sans&#95;titre-2.jpg")

Last edit: 10 years 9 months ago by [naizak](/forum/user/2680-naizak "View naizak's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODIzODctaW1wb3J0LWZyb20tdm0yLW1pc3NpbmctdXNlci1hZGRyZXNzZXM/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
-
-

10 years 9 months ago [\#230630](#230630) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230630 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,

Interesting. So at least the database structure didn't change but there is a problem with the VM data or the HikaShop user synchronization.

The import of addresses supposes that the users have already been synched.
Can you check the hikashop_user table. Do you see all your Joomla users in there ?

Also, could you do some screenshots of the table virtuemart_userinfos so that we could see all the columns for a few rows ?

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

10 years 9 months ago [\#230683](#230683) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230683 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

> nicolas wrote: Hi,
>
> Interesting. So at least the database structure didn't change but there is a problem with the VM data or the HikaShop user synchronization.
>
> The import of addresses supposes that the users have already been synched.
> Can you check the hikashop\_user table. Do you see all your Joomla users in there ?

I think yes, all my users are there.

> nicolas wrote: Also, could you do some screenshots of the table virtuemart\_userinfos so that we could see all the columns for a few rows ?

Attached screenshots. If u need, I can PM access if you need. As I'm checkin' the vm_userinfo table, maybe could that be the problem that virtuemart_state_id and virtuemart_country_id are both 0 (empty)?

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

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

Less More

- Posts: 153
- Thank you received: 12
-

10 years 9 months ago -  10 years 9 months ago [\#230684](#230684) by [naizak](/forum/user/2680-naizak "View naizak's Profile")  Replied by *[naizak](/forum/user/2680-naizak "View naizak's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#230684 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,

**hikashop\_user** table /**\_users** have them all almost 600 user on both table

[ ![Sans&#95;titre-1&#95;2016-02-19.jpg](/forum/attachment/29648) ](/forum/attachment/29648 "...2016-02-19.jpg")

Thanks in advance

- [ ![Sans&#95;titre-1&#95;2016-02-19.jpg](/forum/attachment/29648) ](/forum/attachment/29648 "...2016-02-19.jpg") [ ](/forum/attachment/29648?download=1 "...2016-02-19.jpg")
- [ ![Sans&#95;titre-1&#95;2016-02-19-2.jpg](/forum/attachment/29649) ](/forum/attachment/29649 "...16-02-19-2.jpg") [ ](/forum/attachment/29649?download=1 "...16-02-19-2.jpg")

Last edit: 10 years 9 months ago by [naizak](/forum/user/2680-naizak "View naizak's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODIzODctaW1wb3J0LWZyb20tdm0yLW1pc3NpbmctdXNlci1hZGRyZXNzZXM/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
-
-

10 years 9 months ago [\#231363](#231363) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#231363 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,

I think that the problem is that the virtuemart_state_id and/or the virtuemart_country_id are empty in your virtuemart_userinfos tables.
Change the code:

"INNER JOIN &#96;".$this-&gt;vmprefix."virtuemart_states&#96; vms ON vmui.virtuemart_state_id = vms.virtuemart_state_id ".
"INNER JOIN &#96;".$this-&gt;vmprefix."virtuemart_countries&#96; vmc ON vmui.virtuemart_country_id = vmc.virtuemart_country_id ".
to:

"LEFT JOIN &#96;".$this-&gt;vmprefix."virtuemart_states&#96; vms ON vmui.virtuemart_state_id = vms.virtuemart_state_id ".
"LEFT JOIN &#96;".$this-&gt;vmprefix."virtuemart_countries&#96; vmc ON vmui.virtuemart_country_id = vmc.virtuemart_country_id ".

in the file administrator/components/com_hikashop/helpers/import/vm2.php and that should allow the import of addresses even without these columns filled in.

The following user(s) said Thank You: [naizak](/forum/user/2680-naizak "View naizak's Profile"), [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")

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

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

Less More

- Posts: 153
- Thank you received: 12
-

10 years 9 months ago -  10 years 9 months ago [\#231374](#231374) by [naizak](/forum/user/2680-naizak "View naizak's Profile")  Replied by *[naizak](/forum/user/2680-naizak "View naizak's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#231374 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,
thank you very much for help ,

i tryed both method
modifcation :

> "LEFT JOIN &#96;".$this-&gt;vmprefix."virtuemart\_states&#96; vms ON vmui.virtuemart\_state\_id = vms.virtuemart\_state\_id ".
> "LEFT JOIN &#96;".$this-&gt;vmprefix."virtuemart\_countries&#96; vmc ON vmui.virtuemart\_country\_id = vmc.virtuemart\_country\_id ".

So seems nothing new inside orders ,

So i tryed the first change :

> echo $sql1; exit;

i got :
INSERT IGNORE INTO &#96;#__hikashop_address&#96; (&#96;address_user_id&#96;,&#96;address_firstname&#96;,&#96;address_middle_name&#96;,&#96;address_lastname&#96;,&#96;address_company&#96;,&#96;address_street&#96;,&#96;address_post_code&#96;,&#96;address_city&#96;,&#96;address_telephone&#96;,&#96;address_telephone2&#96;,&#96;address_fax&#96;,&#96;address_state&#96;,&#96;address_country&#96;,&#96;address_published&#96;) SELECT hku.user_id,vmui.first_name,vmui.middle_name,vmui.last_name,vmui.company,CONCAT(vmui.address_1,’ ‘,vmui.address_2),vmui.zip,vmui.city,vmui.phone_1,vmui.phone_2,vmui.fax,vms.state_3_code,vmc.country_3_code,4 FROM &#96;agcqf_virtuemart_userinfos&#96; AS vmui LEFT JOIN &#96;agcqf_virtuemart_states&#96; vms ON vmui.virtuemart_state_id = vms.virtuemart_state_id LEFT JOIN &#96;agcqf_virtuemart_countries&#96; vmc ON vmui.virtuemart_country_id = vmc.virtuemart_country_id INNER JOIN &#96;#__hikashop_user&#96; AS hku ON vmui.virtuemart_user_id = hku.user_cms_id WHERE vmui.virtuemart_user_id &gt; 917 ORDER BY vmui.virtuemart_user_id ASC;

[ ![erruesql.jpg](/forum/attachment/29783) ](/forum/attachment/29783 "erruesql.jpg")

i execute it so give me a sql error : see image*...

Finaly the _hikashop_address table seems full.....

[ ![hikaadress.jpg](/forum/attachment/29785) ](/forum/attachment/29785 "hikaadress.jpg")

but nothing in back End * :blink:
[ ![hikacommandebackend.jpg](/forum/attachment/29784) ](/forum/attachment/29784 "...ndebackend.jpg")

Finaly and i didn't check this part before i find adress but not on main page off the clients that's normal ?

[ ![clicOrder.jpg](/forum/attachment/29787) ](/forum/attachment/29787 "clicOrder.jpg")

- [ ![erruesql.jpg](/forum/attachment/29783) ](/forum/attachment/29783 "erruesql.jpg") [ ](/forum/attachment/29783?download=1 "erruesql.jpg")
- [ ![hikacommandebackend.jpg](/forum/attachment/29784) ](/forum/attachment/29784 "...ndebackend.jpg") [ ](/forum/attachment/29784?download=1 "...ndebackend.jpg")
- [ ![hikaadress.jpg](/forum/attachment/29785) ](/forum/attachment/29785 "hikaadress.jpg") [ ](/forum/attachment/29785?download=1 "hikaadress.jpg")
- [ ![clicOrder.jpg](/forum/attachment/29787) ](/forum/attachment/29787 "clicOrder.jpg") [ ](/forum/attachment/29787?download=1 "clicOrder.jpg")

Last edit: 10 years 9 months ago by [naizak](/forum/user/2680-naizak "View naizak's Profile"). Reason: new element

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODIzODctaW1wb3J0LWZyb20tdm0yLW1pc3NpbmctdXNlci1hZGRyZXNzZXM/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
-
-

10 years 9 months ago [\#231375](#231375) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#231375 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,

The "disparité du jeton" error is an error of phpmyadmin. It's not linked to the MySQL query:
[ sourceforge.net/p/phpmyadmin/bugs/4387/](https://sourceforge.net/p/phpmyadmin/bugs/4387/)

The issue you have now is probably because of that in the query:
virtuemart_user_id &gt; 917
Since you already did an import before in that database, the import system is only importing new elements.
So you don't a change in the old orders you already had but it should be ok for the recent orders (that's the data you get in the hikashop_address table).
So it looks like it is indeed the solution.
The best might be to remove all the HikaShop tables from your database, run an install again, do the code modification, and then run the import.
That way, it will process all the data.

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

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

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

Less More

- Posts: 153
- Thank you received: 12
-

10 years 9 months ago [\#231454](#231454) by [naizak](/forum/user/2680-naizak "View naizak's Profile")  Replied by *[naizak](/forum/user/2680-naizak "View naizak's Profile")* on topic *["solved "Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#231454 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Hi,
Thanks you very much Monsieur Nicolas for help and final solution ![:)](/media/kunena/emoticons/3.png ":)")
Best Regards

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

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

Less More

- Posts: 171
- Thank you received: 9
-
-

10 years 9 months ago [\#232173](#232173) by [pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")  Replied by *[pepecortez](/forum/user/31475-pepecortez "View pepecortez's Profile")* on topic *["solved "Import from VM2 - Missing user addresses](/forum/37-import-export-csv-xls/882387-import-from-vm2-missing-user-addresses#232173 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi!  We have a VirtueMart2 webshop that we want to change to Hikashop. Import is worked almost perfectly the only problem I see currently that user address are not imported. Can anybody give me some advice how to solve that somehow?  Thanks in advance, PePe")*

Yeah, there are 2 parts in the code where it has to be changed.
I've removed the earlier hikashop tables from the database and then reinstalled the component, also then imported from VM, and now it seems totally OK.

Thanks for your help!

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

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