Hi,
That's going to be a lot of work to do this with a CSV export/import.
I think it will be way better to do this by running a MySQL query via your PHPMyAdmin.
I think such a MySQL query will do the job:
UPDATE #__hikashop_variant as v, #__hikashop_product as p SET v.variant_characteristic_id=XXX WHERE v.variant_product_id=p.product_id AND p.product_parent_id=0 AND v.variant_characteristic_id=YYY
where #__ is the table prefix of your tables, YYY is the characteristic_id of the old default value and XXX the characteristic_id of the new default value. In order to find these ids, you first need to open the hikashop_characteristic table via your PHPMyAdmin and look for these value rows.
That way, you can do it in 2 minutes.
Note however:
- it requires the new default variant to already exist in the products. If you have a characteristic color with the values red, blue and white, and you have a product with only red and blue added to it, if you want to change the default value to white, this won't work properly as the default color value product will be assigned to the product for a variant which it doesn't have yet.
- If you mess up, it can screw your product data. Make so you backup your database before, or even better, test the procedure on a copy of the website.
- I didn't test that MySQL query. I'm providing this from the top of my head. It's possible I made a mistake.