Import CSV with products and manual variants

  • Posts: 11
  • Thank you received: 0
10 years 3 months ago #167904

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 2.5.22
-- PHP version -- : 5

Ls,

Currently we are using csv import to insert our products in to hikashop, however we need to put some variants manually together. The source system that compiles the csv is not able to do it automatically.
However when we put the variants together by hand and run the next update of the product all variants are again main products.
We know the product id or product code that does not change during import why are the variants removed to the main category?

Is there a option to change the behavior of the CSV import and that it leaves the variants the way they are?

Last edit: 10 years 3 months ago by Prodessa.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 3 months ago #167951

Hi,

It's probably that you're missing some data in the CSV file preventing HikaShop from knowing that the elements that you're adding are variants and not main products and thus when it updates their information, it removes the link between the variant and the main product and the variant becomes itself a main product.
So I would first recommend to check the product_type and product_parent_id columns of your CSV, the characteristic column of your CSV and fact that you have the main product entry on your CSV before the variants.
Remember that the import system is to import new data, not to update the existing data.
If for example you just want to update the quantities of the products/variants with just the product_id and the product_quantity columns in your CSV, then I would recommend instead to create a mass action with a filter "CSV products". This wil really update the products/variants data without other alteration.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum