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

#   \[SOLVED\]Import data (new field) change variant cod

##

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

Less More

- Posts: 56
- Thank you received: 0
-
-

12 years 8 months ago -  12 years 8 months ago [\#145319](#145319) by [savio](/forum/user/6396-savio "View savio's Profile")  *[\[SOLVED\]Import data (new field) change variant cod](/forum/37-import-export-csv-xls/866107-solved-import-data-new-field-change-variant-cod#145319 "Hikashop version: 2.2.3 Joomla version: 2.5.17 PHP version: 5.2.17  The store has unique product code for all items. Some of them vary only in colour so I group them into one product with variants. A &quot;non-exist&quot; code is created for it. e.g. There are three real product codes, A01, A02 &amp; A03. I created a new code GA01 as the product code for the three items. On the other hand, the code A01/A02/A03 are still actively in use. They are displayed on product page as well as on invoice and email for communication and operation.  Recently, I have created a new custom field, barcode. I have them in Excel and would like to import it. To prepare the datasheet, I export the existing hikashop data. Read it by Excel. Remove all but two columns - product&#95;parent&#95;id &amp; product&#95;code. Remove blank rows. Join (i.e. vlookup) the barcode to it so I have now three columns. I use &quot;Import products from text area&quot;. Barcodes are imported correctly. However, product code of variants are unexpectedly changed in such a way that A01/A02/A03 now become GA01-1/GA01-7/GA01-11 (1,7,11 are some random number to me) that could create chaos to our operation.  It took me quite awhile to undo once when mistake was made. So, I give up the trial-and-error way. Please help.  Thank you.")* was created by *[savio](/forum/user/6396-savio "View savio's Profile")*

Hikashop version: 2.2.3
Joomla version: 2.5.17
PHP version: 5.2.17

The store has unique product code for all items. Some of them vary only in colour so I group them into one product with variants. A "non-exist" code is created for it.
e.g. There are three real product codes, A01, A02 &amp; A03. I created a new code GA01 as the product code for the three items. On the other hand, the code A01/A02/A03 are still actively in use. They are displayed on product page as well as on invoice and email for communication and operation.

Recently, I have created a new custom field, barcode. I have them in Excel and would like to import it.
To prepare the datasheet, I export the existing hikashop data. Read it by Excel. Remove all but two columns - product_parent_id &amp; product_code. Remove blank rows. Join (i.e. vlookup) the barcode to it so I have now three columns. I use "Import products from text area".
Barcodes are imported correctly.
However, product code of variants are unexpectedly changed in such a way that A01/A02/A03 now become GA01-1/GA01-7/GA01-11 (1,7,11 are some random number to me) that could create chaos to our operation.

It took me quite awhile to undo once when mistake was made. So, I give up the trial-and-error way. Please help.

Thank you.

Last edit: 12 years 8 months ago by [savio](/forum/user/6396-savio "View savio's Profile"). Reason: mark Solved

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 8 months ago [\#145553](#145553) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Import data (new custom field) change variant code](/forum/37-import-export-csv-xls/866107-solved-import-data-new-field-change-variant-cod#145553 "Hikashop version: 2.2.3 Joomla version: 2.5.17 PHP version: 5.2.17  The store has unique product code for all items. Some of them vary only in colour so I group them into one product with variants. A &quot;non-exist&quot; code is created for it. e.g. There are three real product codes, A01, A02 &amp; A03. I created a new code GA01 as the product code for the three items. On the other hand, the code A01/A02/A03 are still actively in use. They are displayed on product page as well as on invoice and email for communication and operation.  Recently, I have created a new custom field, barcode. I have them in Excel and would like to import it. To prepare the datasheet, I export the existing hikashop data. Read it by Excel. Remove all but two columns - product&#95;parent&#95;id &amp; product&#95;code. Remove blank rows. Join (i.e. vlookup) the barcode to it so I have now three columns. I use &quot;Import products from text area&quot;. Barcodes are imported correctly. However, product code of variants are unexpectedly changed in such a way that A01/A02/A03 now become GA01-1/GA01-7/GA01-11 (1,7,11 are some random number to me) that could create chaos to our operation.  It took me quite awhile to undo once when mistake was made. So, I give up the trial-and-error way. Please help.  Thank you.")*

Hi,
Why don't you just :
- Export your products through a CSV files
- Change the product values that you want to change
- Import your CSV file back.

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

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

12 years 8 months ago [\#145590](#145590) by [savio](/forum/user/6396-savio "View savio's Profile")  Replied by *[savio](/forum/user/6396-savio "View savio's Profile")* on topic *[Import data (new custom field) change variant code](/forum/37-import-export-csv-xls/866107-solved-import-data-new-field-change-variant-cod#145590 "Hikashop version: 2.2.3 Joomla version: 2.5.17 PHP version: 5.2.17  The store has unique product code for all items. Some of them vary only in colour so I group them into one product with variants. A &quot;non-exist&quot; code is created for it. e.g. There are three real product codes, A01, A02 &amp; A03. I created a new code GA01 as the product code for the three items. On the other hand, the code A01/A02/A03 are still actively in use. They are displayed on product page as well as on invoice and email for communication and operation.  Recently, I have created a new custom field, barcode. I have them in Excel and would like to import it. To prepare the datasheet, I export the existing hikashop data. Read it by Excel. Remove all but two columns - product&#95;parent&#95;id &amp; product&#95;code. Remove blank rows. Join (i.e. vlookup) the barcode to it so I have now three columns. I use &quot;Import products from text area&quot;. Barcodes are imported correctly. However, product code of variants are unexpectedly changed in such a way that A01/A02/A03 now become GA01-1/GA01-7/GA01-11 (1,7,11 are some random number to me) that could create chaos to our operation.  It took me quite awhile to undo once when mistake was made. So, I give up the trial-and-error way. Please help.  Thank you.")*

Thanks a lot, I think I can do it now.

Can't do it previously because I have a lot of Chinese characters in product and category names, and Excel2000 cannot handle utf-8 well. I have not actually used Libreoffice for data processing, just find that it can do vlookup and perfectly solve this problem for me now.

BTW, seems I need to remove the first few row of category information (rows without product code) before I export to csv. Right?
The last time I failed (~30 min ago), I don't have them removed. But this is confound with some other factors so I cannot conclude.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 8 months ago [\#145670](#145670) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[\[SOLVED\]Import data (new field) change variant cod](/forum/37-import-export-csv-xls/866107-solved-import-data-new-field-change-variant-cod#145670 "Hikashop version: 2.2.3 Joomla version: 2.5.17 PHP version: 5.2.17  The store has unique product code for all items. Some of them vary only in colour so I group them into one product with variants. A &quot;non-exist&quot; code is created for it. e.g. There are three real product codes, A01, A02 &amp; A03. I created a new code GA01 as the product code for the three items. On the other hand, the code A01/A02/A03 are still actively in use. They are displayed on product page as well as on invoice and email for communication and operation.  Recently, I have created a new custom field, barcode. I have them in Excel and would like to import it. To prepare the datasheet, I export the existing hikashop data. Read it by Excel. Remove all but two columns - product&#95;parent&#95;id &amp; product&#95;code. Remove blank rows. Join (i.e. vlookup) the barcode to it so I have now three columns. I use &quot;Import products from text area&quot;. Barcodes are imported correctly. However, product code of variants are unexpectedly changed in such a way that A01/A02/A03 now become GA01-1/GA01-7/GA01-11 (1,7,11 are some random number to me) that could create chaos to our operation.  It took me quite awhile to undo once when mistake was made. So, I give up the trial-and-error way. Please help.  Thank you.")*

No, You should also be able to import your data even with rows without product code ![:)](/media/kunena/emoticons/8.png ":)").

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

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

[](#top)
