Product variant reordering can now be done by changing “Variant Position” number and importing that column in as update.
If you have products without variants which you want to group into fewer products with variants, this is how you do it.
Step 1: Export products to Excel
Export products into Excel spreadsheet and open it to edit.
Step 2: Add data to variant columns
I will use following approach: Will add all products as new, but with variants, and then remove old products, which were without variants. I will do it, because this will save me in case something will go wrong (will add tag “new” for all newly imported products and they can be deleted easily, if imported incorrectly) and it will allow me to save images.
If you delete old products first, then Shopify will delete also attached images, and you will not be able to import them. That’s why you first need to import new Products, and then you are safe to delete the old Products.
So, to prepare the import Excel file I need to update following columns:
- Product ID – remove all data, so that it knows to create new Products with this import.
- Handle – set new handle for each product. For example, if the handle was: dress-anna-red-s, now I will have only dress-anna. This handle will be set for each variant of Dress Anna product. You can use formulas or play with Excel “split data” features to split your old handle into portions and then combine back as you need.
- Title – set appropriate Title (if there was a colour or size, now you can remove this data from the Title). You can also do that with formulas in Excel.
- Tags – add some tag for every row, that is absolutely new and use can use later to distinguish newly added products with variants. I used tag “new”.
- Variant ID – remove all data, so that it knows that those are new Variants.
- Option1 Name – set name for the first Variant option. In my case this is “Color”. Set it only in the first row of the product (no need to copy it for the each Variant.
- Option1 Value – set values for the option1. In my case these will be Variant colours: Black, Red, Blue, etc.
- Option2 Name – If you have more then 1 option for the Variant, like Colour and Size, set 2nd option Name here. In my case: Size.
- Option2 Value – Set sizes, L, M, S, XS.
- Variant Image – if your old Products has just one image per Product, copy Image Src column data here – then it will assign that same image to variant image.
- Image Src – Keep them as they are, with whatever images you have for your Products.
Step 3: Mark existing Products with tag “old”
Set tag for all existing products, so that you can filter them later. I added tag “old” for all existing products before importing the new ones, as will delete old products after the import:
Step 4: Import updated Excel
Import updated Excel file:
I have old products without variants and new products, but with variants.
Step 5: Delete old products
Now I can delete old products, by filtering them by the tag “old”, and doing “bulk delete” in Shopify Admin.
Good To Know
- It is important, that you firstly add new Products with variants and only then delete old Products without variants, to keep all you images.
- Set some unique tag for new products to distinguish them from the old ones, in case something will go wrong.
- Delete old products only after you are sure that all new Products and imported correctly!
- After import is complete, you can download the “Import Results” Excel file, where the last 2 columns (Import Result and Import Comment) will show you the result for each row. This is helpful, when something failed in the import – you will see the failure reason there.
Where To Go From Here?
You already have Products with Variants, and you just want to add Variants without touching existing Variants.
You can do that the following way. Let’s assume, we have this Product with one Variant:
Step 1: Construct the Import File
Construct the Import Excel file, which contains only new Variants you want to add.
Make sure that you copy the ID or Handle rows for each new Variant:
Now the most important part. Set the value of column “Variants Add” to TRUE for each Product, where you don’t want the Variants to be replaced. This will make the import to append Variants to existing.
To replace existing Variants with whatever rows you will have in this import file, leave that “Variants Add” column empty, or set the value to FALSE, or remove that column entirely.
It looks like this:
A word about images. If you want it to use the existing images from your Product, then do the Export, and take the same link from the Product Image, and put it in “Variant Image” column. However, if you will take the link from somewhere else, it will add that image to Variant and to the Product itself.
Step 2: Add Variants by Importing That Excel File
Remember to mark the checkbox “Update items which have no ID, but are found in store by Handle.” if you use Handle column to identify the Product.
Step 3: Check The Added Variants on Product
By looking at the Product you see that it still has its previous Variant, and 3 new variants are added after that.
Also, you see that new Variant images are added to the Product.
- To find out Product Handles, you can take that information from Product SEO Description section, or do the Export.
- If you update Products by ID, then remember to copy ID value for each Variant row, and make sure Excel didn’t increment it, when you copied.
- You can remove from Excel file all columns which you don’t want to update.
- You need to set “Variants Add” value only for the first row of each Product.
Where To Go From Here?
- Install the Bulk Import Export Update with Excel app from Shopify AppStore and try Free version to add variants on your own store Products.
- Get the Template Excel file, or to the Export to generate it from your own store.
- Read the detailed Field Descriptions.
- Read other Tutorials.
- If you are not sure how to prepare the import file, ask our Support, we will teach you, or do that for you.