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

#   How to import product custom fields from VM?

##

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

Less More

- Posts: 41
- Thank you received: 1
-
-

11 years 10 months ago [\#188719](#188719) by [appletree](/forum/user/35813-appletree "View appletree's Profile")  *[How to import product custom fields from VM?](/forum/37-import-export-csv-xls/874623-how-to-import-product-custom-fields-from-vm#188719 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 1.5.26 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 35.0.1 -- Error-message(debug-mod must be tuned on) -- : no  I am working on a website with Joomla 1.5 and VM 1.1.9 that will be transferred to Joomla 3.3 and Hikashop. I have installed Hikashop on J1.5 and import VM products in Hikashop. VM has some special custom fields in the product. I have made these fields in Hikashop, so in the database they exist (now). See pictures.  Question: How can I import the VM custom fields in to Hikashop database? MySQL request – how? There exits also an jos&#95;hikashop&#95;vm&#95;prod – I think this one is important.")* was created by *[appletree](/forum/user/35813-appletree "View appletree's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 1.5.26
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Firefox 35.0.1
-- Error-message(debug-mod must be tuned on) -- : no

I am working on a website with Joomla 1.5 and VM 1.1.9 that will be transferred to Joomla 3.3 and Hikashop. I have installed Hikashop on J1.5 and import VM products in Hikashop.
VM has some special custom fields in the product. I have made these fields in Hikashop, so in the database they exist (now). See pictures.

**Question**: How can I import the VM custom fields in to Hikashop database?
MySQL request – how?
There exits also an jos_hikashop_vm_prod – I think this one is important.

- [ ![database-custom-fields-vm.jpg](/forum/attachment/22010) ](/forum/attachment/22010 "...-fields-vm.jpg") [ ](/forum/attachment/22010?download=1 "...-fields-vm.jpg")
- [ ![database-custom-fields-hs.jpg](/forum/attachment/22011) ](/forum/attachment/22011 "...-fields-hs.jpg") [ ](/forum/attachment/22011?download=1 "...-fields-hs.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 10 months ago [\#188746](#188746) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to import product custom fields from VM?](/forum/37-import-export-csv-xls/874623-how-to-import-product-custom-fields-from-vm#188746 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 1.5.26 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 35.0.1 -- Error-message(debug-mod must be tuned on) -- : no  I am working on a website with Joomla 1.5 and VM 1.1.9 that will be transferred to Joomla 3.3 and Hikashop. I have installed Hikashop on J1.5 and import VM products in Hikashop. VM has some special custom fields in the product. I have made these fields in Hikashop, so in the database they exist (now). See pictures.  Question: How can I import the VM custom fields in to Hikashop database? MySQL request – how? There exits also an jos&#95;hikashop&#95;vm&#95;prod – I think this one is important.")*

Hi,

That's right, the best will be to perform a MySQL request directly.
You can use the table "hikashop_vm_prod" which make the link between the "virtuemart_product" and the "hikashop_product".
So you can use an "UPDATE" query to update the "hikashop_product" table from data coming from "vm_product_...." with a inner join on "hikashop_vm_prod".
Something like: Code:

UPDATE #__hikashop_product AS hkp INNER JOIN #__hikashop_vm_prod AS hkvm ON hkp.product_id = hkvm.hk_id INNER JOIN #__vm_product_type_1 AS vmp ON vmp.product_id = hkvm.vm_id SET hkp.hk_customfieldkey = vmp.vm_customfieldkey

(where you will replace the two fields in the "SET").

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 41
- Thank you received: 1
-
-

11 years 10 months ago [\#189283](#189283) by [appletree](/forum/user/35813-appletree "View appletree's Profile")  Replied by *[appletree](/forum/user/35813-appletree "View appletree's Profile")* on topic *[How to import product custom fields from VM?](/forum/37-import-export-csv-xls/874623-how-to-import-product-custom-fields-from-vm#189283 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 1.5.26 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 35.0.1 -- Error-message(debug-mod must be tuned on) -- : no  I am working on a website with Joomla 1.5 and VM 1.1.9 that will be transferred to Joomla 3.3 and Hikashop. I have installed Hikashop on J1.5 and import VM products in Hikashop. VM has some special custom fields in the product. I have made these fields in Hikashop, so in the database they exist (now). See pictures.  Question: How can I import the VM custom fields in to Hikashop database? MySQL request – how? There exits also an jos&#95;hikashop&#95;vm&#95;prod – I think this one is important.")*

Thanks Jerome,

I think this is the solution. But my knowledge about MySQL is little, so I have to search someone to get this done. I get errors and that's because I do not exactly know what I am doing.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 10 months ago [\#189289](#189289) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to import product custom fields from VM?](/forum/37-import-export-csv-xls/874623-how-to-import-product-custom-fields-from-vm#189289 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 1.5.26 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 35.0.1 -- Error-message(debug-mod must be tuned on) -- : no  I am working on a website with Joomla 1.5 and VM 1.1.9 that will be transferred to Joomla 3.3 and Hikashop. I have installed Hikashop on J1.5 and import VM products in Hikashop. VM has some special custom fields in the product. I have made these fields in Hikashop, so in the database they exist (now). See pictures.  Question: How can I import the VM custom fields in to Hikashop database? MySQL request – how? There exits also an jos&#95;hikashop&#95;vm&#95;prod – I think this one is important.")*

Hi,

Just to be sure ; did you replace the "#_" but your database prefix ?
Do you have a special SQL error ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 41
- Thank you received: 1
-
-

11 years 10 months ago [\#189360](#189360) by [appletree](/forum/user/35813-appletree "View appletree's Profile")  Replied by *[appletree](/forum/user/35813-appletree "View appletree's Profile")* on topic *[How to import product custom fields from VM?](/forum/37-import-export-csv-xls/874623-how-to-import-product-custom-fields-from-vm#189360 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 1.5.26 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 35.0.1 -- Error-message(debug-mod must be tuned on) -- : no  I am working on a website with Joomla 1.5 and VM 1.1.9 that will be transferred to Joomla 3.3 and Hikashop. I have installed Hikashop on J1.5 and import VM products in Hikashop. VM has some special custom fields in the product. I have made these fields in Hikashop, so in the database they exist (now). See pictures.  Question: How can I import the VM custom fields in to Hikashop database? MySQL request – how? There exits also an jos&#95;hikashop&#95;vm&#95;prod – I think this one is important.")*

Hello Jerome,
It worked. I have tried replacing #_ for jos_ but I also did not understand completely the rule:
SET
hkp.hk_customfieldkey = vmp.vm_customfieldkey
So I also changed this and the database is complete!

Thanks

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

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