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.
| Column | When it is used | Example |
|---|---|---|
| ID | First. Filled in by an export. | From the export |
| Handle | Second. | winter |
| Title | Third, 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.
| Command | What import does |
|---|---|
| empty or MERGE | Update the matched row, or create it if there is no match. |
| NEW | Create. Skipped if it already exists. |
| UPDATE | Update. Fails if there is no match. |
| DELETE | Delete the matched row. |
| IGNORE | Skip the row. |
File example
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.
