Import and export Shopify collections

Excel tab and CSV name: Collections. Manual and smart collections in one file. Custom collections list products with Product: Handle.

The sheet name Leaper looks for is Collections. Manual and smart collections share this sheet. Collection Type is custom or smart. Custom collections list products with Product: Handle. Smart collections use Rule: Column, Rule: Relation, and Rule: Condition. Smart Collections on the Products sheet is export only.

How rows group

One collection can span several rows. Extra rows belong to the same collection while ID, Handle, or Title stay the same. Repeat Handle on each product or rule row. Product fields on the collection itself are read from the first row of the group.

How a row is matched

Order is ID, then Handle, then Title. Use Ignore ID when the file came from another shop.

ColumnWhen it is usedExample
IDFirst. Filled in by an export.From the export
HandleSecond.winter
TitleThird, when ID and Handle are not in the file.Winter

Command

Empty Command means MERGE. Product: Command DELETE removes that product from a custom collection. Collection Command REPLACE replaces the product list from the file.

CommandWhat import does
empty or MERGEUpdate the matched row, or create it if there is no match.
NEWCreate. Skipped if it already exists.
UPDATEUpdate. Fails if there is no match.
DELETEDelete the matched row.
IGNORESkip the row.

File example

Two product rows, one custom collection. Repeat Handle on each row.

What fails

  • A product handle that is not on this shop is skipped. The collection can still save (Warning).
  • Smart Collections on Products cannot be imported. Put rules on this sheet.
  • Generate redirects on Import also sets redirectNewHandle on collection handle changes.

The full header list is on Columns.

FAQ

Custom vs smart?
Collection Type custom uses Product: Handle. Smart uses Rule: Column, Relation, Condition. Collections from tags.
Delete a collection?
Bulk delete collections.
Smart Collections on Products?
Export only. Put rules on this sheet.