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

#   add parent id to products

##

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

Less More

- Posts: 252
- Thank you received: 3
-
-
-
- [](http://www.dodowear.nl)
-

12 years 7 months ago [\#153136](#153136) by [Boudewijn](/forum/user/6864-boudewijn "View Boudewijn's Profile")  *[add parent id to products](/forum/37-import-export-csv-xls/867618-add-parent-id-to-products#153136 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Perhaps a strange question. I have imported products with just product codes. But I would like to add parent id's to it. When I set the original imported file to a template with these parents the message apears that it isn't possible. This to avoid conficts. Is there a way to overcome this or do this easy?  Regards, Boudewijn")* was created by *[Boudewijn](/forum/user/6864-boudewijn "View Boudewijn's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi,
Perhaps a strange question.
I have imported products with just product codes.
But I would like to add parent id's to it.
When I set the original imported file to a template with these parents the message apears that it isn't possible.
This to avoid conficts.
Is there a way to overcome this or do this easy?

Regards,
Boudewijn

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

12 years 7 months ago [\#153152](#153152) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add parent id to products](/forum/37-import-export-csv-xls/867618-add-parent-id-to-products#153152 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Perhaps a strange question. I have imported products with just product codes. But I would like to add parent id's to it. When I set the original imported file to a template with these parents the message apears that it isn't possible. This to avoid conficts. Is there a way to overcome this or do this easy?  Regards, Boudewijn")*

Hi,

I'm not following you.
You want to set the product_parent_id field of the products in the CSV that you're importing ?
In that case, it means that you're not importing products but variants and you would have to specify a main product for them and characteristic columns with the values filled, etc.

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

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

Less More

- Posts: 252
- Thank you received: 3
-
-
-
- [](http://www.dodowear.nl)
-

12 years 7 months ago -  12 years 7 months ago [\#153232](#153232) by [Boudewijn](/forum/user/6864-boudewijn "View Boudewijn's Profile")  Replied by *[Boudewijn](/forum/user/6864-boudewijn "View Boudewijn's Profile")* on topic *[add parent id to products](/forum/37-import-export-csv-xls/867618-add-parent-id-to-products#153232 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Perhaps a strange question. I have imported products with just product codes. But I would like to add parent id's to it. When I set the original imported file to a template with these parents the message apears that it isn't possible. This to avoid conficts. Is there a way to overcome this or do this easy?  Regards, Boudewijn")*

Hi Nicolas,
I thought so. Some things are difficult to explain in words.
In the attached file you'll find a copy how it is set up yet and the way I would like to modify to.

I experience my POS system works better when it has been set up with parent id

- [ ![h2328996.png](/forum/attachment/16848) ](/forum/attachment/16848 "h2328996.png") [ ](/forum/attachment/16848?download=1 "h2328996.png")

Last edit: 12 years 7 months ago by [Boudewijn](/forum/user/6864-boudewijn "View Boudewijn's Profile").

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

12 years 7 months ago [\#153315](#153315) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add parent id to products](/forum/37-import-export-csv-xls/867618-add-parent-id-to-products#153315 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Perhaps a strange question. I have imported products with just product codes. But I would like to add parent id's to it. When I set the original imported file to a template with these parents the message apears that it isn't possible. This to avoid conficts. Is there a way to overcome this or do this easy?  Regards, Boudewijn")*

I still don't understand what you're trying to do. The product_parent_id field is only used for variants of products. It should be empty for main products.
But it doesn't look like your CSV are for variants.
The product_code column should always be filled as well.
I would recommend to create a product like you want in your backend and export it. You'll get a CSV with an example of what should be done.

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

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

Less More

- Posts: 252
- Thank you received: 3
-
-
-
- [](http://www.dodowear.nl)
-

12 years 7 months ago [\#153390](#153390) by [Boudewijn](/forum/user/6864-boudewijn "View Boudewijn's Profile")  Replied by *[Boudewijn](/forum/user/6864-boudewijn "View Boudewijn's Profile")* on topic *[add parent id to products](/forum/37-import-export-csv-xls/867618-add-parent-id-to-products#153390 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Perhaps a strange question. I have imported products with just product codes. But I would like to add parent id's to it. When I set the original imported file to a template with these parents the message apears that it isn't possible. This to avoid conficts. Is there a way to overcome this or do this easy?  Regards, Boudewijn")*

Hi Nicolas,
Your right. I uploaded a wrong example.
Hopefully this makes more sense to understand.
Just to summarize.
I have created products based on products with no variants. So only the product code is filled.

But I would like to change these products to ones with variants. (like parents and child)

What I do is create a csv with these productsbut then setup like it shoud be a product with variants
But the import is not accepted. This because of the doublures

- [ ![h52faa9d.png](/forum/attachment/16873) ](/forum/attachment/16873 "h52faa9d.png") [ ](/forum/attachment/16873?download=1 "h52faa9d.png")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#153425](#153425) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[add parent id to products](/forum/37-import-export-csv-xls/867618-add-parent-id-to-products#153425 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Perhaps a strange question. I have imported products with just product codes. But I would like to add parent id's to it. When I set the original imported file to a template with these parents the message apears that it isn't possible. This to avoid conficts. Is there a way to overcome this or do this easy?  Regards, Boudewijn")*

Hi,

You need to specify the characteristic value too.
I don't really know if "Maat" is a characteristic and "nvt" a variant name but if it is you should set the "nvt" only on the variant not on the main product. If it"s not, you have to make something like that.

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

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