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

#   Import from VM2

##

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

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

11 years 3 months ago -  11 years 3 months ago [\#211898](#211898) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  *[Import from VM2](/forum/37-import-export-csv-xls/878835-import-from-vm2#211898 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Firefox  Hi,  I did various imports from VM1 without any problem. Now i tried a VM2 import and have 2 difficulties. --Virtuemart Version: 2.6.10 --  1) When i import orders the field: address&#95;street is empty (both billing and shipping) This is not when i import users, only orders The vm2 database-field is called address&#95;1 in table &#95;virtuemart&#95;order&#95;userinfos  2) All dates (orders, products etc.) are 1970-01-01 00:33 The VM2 database-field is called created&#95;on and shows dates like 2012-06-28 18:52:2 (in VM1 it was a unix timestamp)  Can you help me to fix this? Kind regards, Jeroen")* was created by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Firefox

Hi,

I did various imports from VM1 without any problem.
Now i tried a VM2 import and have 2 difficulties.
--Virtuemart Version: 2.6.10 --

1) When i import orders the field: address_street is empty (both billing and shipping)
This is not when i import users, only orders
The vm2 database-field is called address_1 in table _virtuemart_order_userinfos

2) All dates (orders, products etc.) are 1970-01-01 00:33
The VM2 database-field is called created_on and shows dates like 2012-06-28 18:52:2
(in VM1 it was a unix timestamp)

Can you help me to fix this?
Kind regards,
Jeroen

Last edit: 11 years 3 months ago by [Joomill](/forum/user/33738-joomill "View Joomill's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84Nzg4MzUtaW1wb3J0LWZyb20tdm0yP3RtcGw9bWFya2Rvd24=) 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 3 months ago -  11 years 3 months ago [\#211959](#211959) 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](/forum/37-import-export-csv-xls/878835-import-from-vm2#211959 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Firefox  Hi,  I did various imports from VM1 without any problem. Now i tried a VM2 import and have 2 difficulties. --Virtuemart Version: 2.6.10 --  1) When i import orders the field: address&#95;street is empty (both billing and shipping) This is not when i import users, only orders The vm2 database-field is called address&#95;1 in table &#95;virtuemart&#95;order&#95;userinfos  2) All dates (orders, products etc.) are 1970-01-01 00:33 The VM2 database-field is called created&#95;on and shows dates like 2012-06-28 18:52:2 (in VM1 it was a unix timestamp)  Can you help me to fix this? Kind regards, Jeroen")*

Hi,

1. The address_1 field is already used for both addresses import.
This is the code for the user addresses import:
[ take.ms/lhbEx](http://take.ms/lhbEx)
This is the code for the order addresses import:
[ take.ms/9MR8E](http://take.ms/9MR8E)
You can find that in the file administrator/components/com_hikashop/helpers/import/vm2.php
As you can see, they both handle the address_1 and even address_2 fields of VM, and they do it with the same code so I'm surprised that it would work for the user but not the order. If it was for the whole addresses, I could understand but just that field not importing would be strange.

2. That's good to know.
Here is a new version of the vm2.php file that you can replace and which will handle the dates properly.

*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 11 years 3 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [Joomill](/forum/user/33738-joomill "View Joomill's Profile")

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

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

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

11 years 3 months ago [\#212043](#212043) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  Replied by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")* on topic *[Import from VM2](/forum/37-import-export-csv-xls/878835-import-from-vm2#212043 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Firefox  Hi,  I did various imports from VM1 without any problem. Now i tried a VM2 import and have 2 difficulties. --Virtuemart Version: 2.6.10 --  1) When i import orders the field: address&#95;street is empty (both billing and shipping) This is not when i import users, only orders The vm2 database-field is called address&#95;1 in table &#95;virtuemart&#95;order&#95;userinfos  2) All dates (orders, products etc.) are 1970-01-01 00:33 The VM2 database-field is called created&#95;on and shows dates like 2012-06-28 18:52:2 (in VM1 it was a unix timestamp)  Can you help me to fix this? Kind regards, Jeroen")*

Thank you so much for fixing the date-fields

I couldn't find the error for the address so i changed both lines (for user and order import) to:
'address_street' =&gt; 'vmui.address_1',

And it works now for us.
we don't use address_2 in VM, so we don't need to import it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84Nzg4MzUtaW1wb3J0LWZyb20tdm0yP3RtcGw9bWFya2Rvd24=) 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 3 months ago [\#212054](#212054) 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](/forum/37-import-export-csv-xls/878835-import-from-vm2#212054 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Firefox  Hi,  I did various imports from VM1 without any problem. Now i tried a VM2 import and have 2 difficulties. --Virtuemart Version: 2.6.10 --  1) When i import orders the field: address&#95;street is empty (both billing and shipping) This is not when i import users, only orders The vm2 database-field is called address&#95;1 in table &#95;virtuemart&#95;order&#95;userinfos  2) All dates (orders, products etc.) are 1970-01-01 00:33 The VM2 database-field is called created&#95;on and shows dates like 2012-06-28 18:52:2 (in VM1 it was a unix timestamp)  Can you help me to fix this? Kind regards, Jeroen")*

Hi,

Thank you for your feedback. We'll add the fix to the dates import with the next release of HikaShop.

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

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