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

#   Import VM Order from guest problem

##

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

Less More

- Posts: 209
- Thank you received: 14
-
-
-
- [](http://www.r2h.nl)
-

10 years 5 months ago [\#244299](#244299) by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")  *[Import VM Order from guest problem](/forum/37-import-export-csv-xls/885323-import-vm-order-from-guest-problem#244299 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.9 -- Browser(s) name and version -- : FF  I tried to import from Virtuemart. All import parts work like the should exept for the order import. I noticed tha my client disabled User registration so all checkouts are guest checkouts. When I do an import no order are getting imported except for the a couple of old test orders in which a test user created an account up front.  When I look in the database table: #&#95;virtuemart&#95;orders the virtuemart&#95;user&#95;id and created&#95;by table are set as 0. When I change this 0 value to a existing user account ID this order gets imported.  I also noticed that the billing and shipping address are not being imported and are left blank.  I hope you guys can fix this!")* was created by *[Rixters](/forum/user/28762-rixters "View Rixters's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7.0.9
-- Browser(s) name and version -- : FF

I tried to import from Virtuemart. All import parts work like the should exept for the order import. I noticed tha my client disabled User registration so all checkouts are guest checkouts. When I do an import no order are getting imported except for the a couple of old test orders in which a test user created an account up front.

When I look in the database table: #_virtuemart_orders the *virtuemart\_user\_id* and *created\_by* table are set as 0. When I change this 0 value to a existing user account ID this order gets imported.

I also noticed that the billing and shipping address are not being imported and are left blank.

I hope you guys can fix this!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODUzMjMtaW1wb3J0LXZtLW9yZGVyLWZyb20tZ3Vlc3QtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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 5 months ago [\#244344](#244344) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import VM Order from guest problem](/forum/37-import-export-csv-xls/885323-import-vm-order-from-guest-problem#244344 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.9 -- Browser(s) name and version -- : FF  I tried to import from Virtuemart. All import parts work like the should exept for the order import. I noticed tha my client disabled User registration so all checkouts are guest checkouts. When I do an import no order are getting imported except for the a couple of old test orders in which a test user created an account up front.  When I look in the database table: #&#95;virtuemart&#95;orders the virtuemart&#95;user&#95;id and created&#95;by table are set as 0. When I change this 0 value to a existing user account ID this order gets imported.  I also noticed that the billing and shipping address are not being imported and are left blank.  I hope you guys can fix this!")*

Hi,

Try changing the line:
'INNER JOIN &#96;#__hikashop_user&#96; AS hkusr ON vmo.virtuemart_user_id = hkusr.user_cms_id '.
to:
'LEFT JOIN &#96;#__hikashop_user&#96; AS hkusr ON vmo.virtuemart_user_id = hkusr.user_cms_id '.
in the file administrator/components/com_hikashop/helpers/import/vm2.php
and try again. It should allow the import of orders, even without users attached to them.

Regarding the addresses, I remember we fixed some issues with it when there was no country or state in the addresses, which lead to the addresses not being imported. That way in march. But since you have the latest version, you already have that fix, and thus it mus tbe something else.
Could you provide more information on the addresses ? How are they in the database ?

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

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

Less More

- Posts: 209
- Thank you received: 14
-
-
-
- [](http://www.r2h.nl)
-

10 years 4 months ago [\#245010](#245010) by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")  Replied by *[Rixters](/forum/user/28762-rixters "View Rixters's Profile")* on topic *[Import VM Order from guest problem](/forum/37-import-export-csv-xls/885323-import-vm-order-from-guest-problem#245010 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.9 -- Browser(s) name and version -- : FF  I tried to import from Virtuemart. All import parts work like the should exept for the order import. I noticed tha my client disabled User registration so all checkouts are guest checkouts. When I do an import no order are getting imported except for the a couple of old test orders in which a test user created an account up front.  When I look in the database table: #&#95;virtuemart&#95;orders the virtuemart&#95;user&#95;id and created&#95;by table are set as 0. When I change this 0 value to a existing user account ID this order gets imported.  I also noticed that the billing and shipping address are not being imported and are left blank.  I hope you guys can fix this!")*

Hi Nicolas,

Thanks for your answer!
The import worked, but... The only problem is that from the more than 600 order only a hand full shipping addresses are getting imported. I have no clue how to debug this. Do you have an idea ho to fix this? The site is on my local webserver so unfortunately I can't give you access.

Thanks in advance!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODUzMjMtaW1wb3J0LXZtLW9yZGVyLWZyb20tZ3Vlc3QtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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 4 months ago [\#245019](#245019) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import VM Order from guest problem](/forum/37-import-export-csv-xls/885323-import-vm-order-from-guest-problem#245019 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.9 -- Browser(s) name and version -- : FF  I tried to import from Virtuemart. All import parts work like the should exept for the order import. I noticed tha my client disabled User registration so all checkouts are guest checkouts. When I do an import no order are getting imported except for the a couple of old test orders in which a test user created an account up front.  When I look in the database table: #&#95;virtuemart&#95;orders the virtuemart&#95;user&#95;id and created&#95;by table are set as 0. When I change this 0 value to a existing user account ID this order gets imported.  I also noticed that the billing and shipping address are not being imported and are left blank.  I hope you guys can fix this!")*

Hi,

Well, it's going to be complex. But if some address import and not others, it's a good start.
Please check the table virtuemart_order_userinfos in your database with PHPMyAdmin. There, check the differences between the addresses that imported and the ones that didn't.
Knowing the differences will greatly help understand what needs to be done.

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

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