Install
Install

Create Shopify Collections in bulk by Product Tags

Smart-Collections-with-Tags-rules|Smart Collection by Tags|Import Smart Collection by Tags|Products in Smart Collection by Tag|Smart Collection With 2 Tag Rules

Video thumbnail

In the Shopify Admin you create Collections one at a time. A Collection with a Tag condition is automated – Shopify adds a Product to it as soon as the Product gets that Tag, and removes it when the Tag is removed. With Matrixify you can bulk create such Collections from one Excel or CSV file.

Here we will create one Collection by Tag in the Shopify Admin, Export it with Matrixify and go through which column in the file holds each of its settings. Then we use the exported file as a base to create more Collections by Tag and Import them. The same approach works for conditions by Vendor, Type, Price and other Product fields.

Steps in short

  1. Create one Collection with a Tag condition in the Shopify Admin, to have an example to Export.
  2. Export that Collection with the Matrixify Collections sheet, selecting only the columns needed for the Collection title and its conditions.
  3. Open the exported file and see which column holds each setting from the Shopify Admin Collection page.
  4. Copy the rows in the file and change the Handle, Title and Tag for each new Collection.
  5. Import the file in the Matrixify app and check that the sheet is detected as Collections.
  6. Open the new Collections in the Shopify Admin and check their conditions and Products.

1. Create a Collection by Tag in Shopify Admin

Shopify has one Collection type now. Automated Collections (earlier called Smart Collections) and manual Collections were merged into it. Each Collection gets its Products from one or more Sources. A new Collection has one Products source by default. Inside the source you either add conditions, so Shopify picks the Products automatically, or select Products manually.

In this tutorial, we will use a Collection with a Tag rule as an example, but you can apply this approach to any other conditions as well.
If you already have a Collection by Tag in your store that you wish to duplicate to new Collections with different Tags, then you can skip this step and Export that one.

Let’s create one Collection by Tag that we will use as an example:

  1. In the Shopify Admin go to Products > Collections and click Add collection.
  2. Enter the title, for example Summer, and a description, for example Light clothes and accessories for warm days.
  3. In the Products source click Add condition, select Tag, then includes, and select the Tag summer.
  4. Click Save.

Shopify Admin automated Collection with a Product Tag condition in the Products source

2. Export the Collection with Matrixify

In the Matrixify app Home page create a New Export by using the New Export button.

  • In the Format section select Matrixify: Excel.
  • Press Select Sheets and select Collections.

Click on the Collections sheet card to expand it. Open each of these column groups and select only the columns listed:

  • Basic Columns – Handle, Command, Title and Body HTML.
  • Sources & Conditions – Source: Type, Inclusion: Type, Inclusion: Match, Condition: Field, Condition: Relation, Condition: Value and Condition: Match.

Matrixify Export of Shopify Collections with Sources and Conditions columns selected

To Export only the example Collection, press the Filter button in the Collections sheet card, select Title – equals to any of – Summer and press Add.

Matrixify Export filter for Shopify Collections by Title

When the Export has been set up, start the Export by using the Export button. Wait for the Export to finish and download the file with Download Exported File button.

3. Understand the exported Collections file

Open the exported file. It has a Collections sheet with one row for the Summer Collection. Each condition of a Collection is a separate row, so a Collection with 3 conditions would have 3 rows.

Exported Shopify Collection by Product Tag in Excel with Matrixify Sources and Conditions columns

In the exported file, you can see how values you entered in the store when creating a Collection translate to values and structure in the spreadsheet file.

This is how the settings on the Collection page in the Shopify Admin match the columns in the file:

In Shopify Admin Column in the file Value in the file
Collection URL handle, in the search engine listing Handle summer
Collection title Title Summer
Collection description Body HTML <p>Light clothes and accessories for warm days.</p>
Source drop-down: Products, Variants, Collection or App Source: Type Products
Include or Exclude section of the source Inclusion: Type Include
Match all conditions or Match any condition Inclusion: Match all conditions
Condition attribute, the first drop-down Condition: Field Tag
Matching criteria, the second drop-down Condition: Relation Includes
The selected Tag Condition: Value summer
OR or AND when several Tags are selected in one condition Condition: Match OR

Command is not a Shopify field. It tells the app what to do with the Collection on Import. The exported value MERGE updates the Collection if it exists and creates it if it does not.

Two columns look alike but work on different levels. Inclusion: Match joins the conditions in separate rows of the same Include or Exclude section. Condition: Match joins several comma-separated values inside one row.

The description is saved as HTML, so the exported value has <p> tags around the text. In the file you can write plain text too – the app converts it to HTML.

Other Collection fields from the Shopify Admin can be exported as columns too: featured image is Image Src, sort is Sort Order, and sales channel availability is in the Sales Channels column group, for example Published: Online Store. Select them in the Export if you want to set them for the new Collections.

4. Add new Collections by Tag to the file

Now use the exported row as a base. Copy it for each new Collection and change the Handle, Title, Body HTML and Condition: Value. For a Collection with more than one condition, add a row for each condition. Write the description only in the first row of the Collection.

Here you can see a screenshot example that has the exported “Summer” Collection and 3 new Collections:

Excel file to import Shopify Collections by Product Tag with Matrixify Collections sheet columns

  • “Winter Accessories” – two conditions in two rows. With all conditions a Product needs both Tags winter and accessories. With any condition one of them is enough.
  • “Outerwear” – one condition with two Tags. With OR a Product needs jackets or coats.
  • “Summer Full Price” – two rows for two conditions – one Include and one Exclude. Products with the Tag summer, except those with the Tag sale. Excluded Products are never in the Collection, even if they match the Include conditions.

Rows of one Collection go one after another, with the same Handle and Title in each row. When the Handle changes, the app starts a new Collection.

You can keep the row of the Summer Collection in the file. It is imported with the same values and nothing changes in it. Or delete the row if you do not need it or wish to make sure it is not updated.

For Tags, Condition: Relation can be Includes or Does not include in the Include section. In the Exclude row the Condition: Relation can only bet set to Includes. To create Collections by Vendor, Type, Price or another field, replace Tag in Condition: Field and pick a relation from the Condition: Relation list in the Collections documentation. If unsure, create one such Collection in the Shopify Admin and Export it the same way.

Save the file. Keep the sheet name Collections – it tells the app what you are importing.

5. Import Collections by Tag with Matrixify

In the Matrixify app Home page, upload the file in the Import section. Once the file is analyzed, make sure that the app detects the sheet as Collections. The count is the number of Collections in your file, not rows – in the example file it is 4.
Default Import Options will work fine for our import, so no need to adjust any Options in the job.

Press Import to start the Import. The Import runs on Matrixify servers, so you can close the app while it runs.

Shopify Collections import with the Matrixify app from an Excel file

6. Check imported Collections in Shopify Admin

When the Import is finished, the job status will be “Finished”. If some Collections failed, download the Import Results file and check the Import Comment column – it tells why the Collection failed. Fix those rows and Import only them again.

In the Shopify Admin, go to Products > Collections and open one of the new Collections. It has the description from Body HTML, the Products source has the same conditions as in your file, and the Collection lists the Products that have those Tags.

Imported Shopify Collection by Product Tag with two Tag conditions in the Shopify Admin

Good to know

  • A store can have up to 5,000 Collections with conditions, and each Collection can contain up to 60 conditions. These are Shopify limits.
  • You can also write the file from scratch. The minimum columns are Title, Condition: Field, Condition: Relation and Condition: Value – without the other columns the app creates a Products source with Include inclusion.
  • If the file has no Sort Order column, new Collections get Most Relevant sort order.
  • To add Tags to Products before creating the Collections, see the Matrixify tutorial on how to bulk update Shopify Tags.
  • To change conditions of existing Collections, Export them with Sources & Conditions, edit the rows and Import the file back. Condition: Command set to DELETE removes a condition.
  • To add specific Products manually instead of by Tag, use Condition: Field set to Manual Selection. See the tutorial on how to bulk add, include and exclude specific Products in Shopify Collections.
  • The Smart Collections and Custom Collections sheets are deprecated. Older files with Must Match and Rule: ... columns are for the Smart Collections sheet – use the Collections sheet for new files.

What to do next?