Import and export product limits with a CSV file
With a CSV file you can add or change many product limits in one step, and keep a copy of your limits.
The buttons Import CSV and Export CSV are on the Product Limits page.
The easiest way to start: export your limits, change the file, and import it again.
The two formats
There are two formats. Choose the format that matches your file before you import.
| Format | Columns | Use it for |
|---|---|---|
| Products | Handle, Min, Max, Multiple, Combine, Name |
Limits for products. Only the handle is required. |
| SKUs | SKU, Min, Max, Multiple, Name |
Limits by SKU. Only the SKU is required. |
Example of a Products file:
Handle,Min,Max,Multiple,Combine,Name classic-tee,2,10,2,1,"Classic Tee" gift-box,,1,,,"Gift Box, large" mug,6,,6
Example of a SKUs file:
SKU,Min,Max,Multiple,Name "TSHIRT-RED-M",1,5,,"Classic Tee - Red / M" "BOX-12",12,,12
What each column means
| Column | What to enter |
|---|---|
| Handle | The product handle: the last part of the product's address in your store. For /products/classic-tee, the handle is classic-tee. It is not the product title. A product export from Shopify lists all handles. |
| SKU | The SKU, exactly as it is written in Shopify. |
| Min, Max, Multiple | A plain number, for example 12. Leave the cell empty when you do not want that limit. Do not add text or a thousands separator: write 1000, not 1,000. |
| Combine | Only in the Products format. 1 turns Combine variant quantities on for the product, so that the limit counts all its variants together. 0 turns it off. An empty cell leaves it as it is. A new limit starts with it off. |
| Name | Optional. In the Products format, it is the name of the limit in your list. In the SKUs format, it only helps you read the file: an import does not use it. The name is the last column, so it can contain commas. |
Rules for the file
- The first line with the column names is optional. With it, the columns can be in any order, and columns that MinMaxify does not know are ignored. Without it, the columns must be in the order shown above.
- A line can stop after the columns that you need.
mug,6,,6is a complete line. - Values can be separated by commas, semicolons or tabs. You can paste rows straight from a spreadsheet.
- If a value contains a double quote, put the whole value in double quotes and write the quote inside it twice. An exported file already does this.
- Files in the earlier layout,
Title, Product Handle, Min, Max, Multiple, can still be imported. In that layout, a title with a comma must be in double quotes.
Import
- On Product Limits, click Import CSV.
- In Format, choose Products or SKUs.
- Upload your .csv file, or paste its text into the box.
- Click Import.
- If the file has problems, the window lists them before anything is imported. See the next section.
- When the import is done, a message shows the result, for example "Imported 120 rows: 20 new, 40 updated, 60 unchanged".
- Open Publish and click Publish now.
If the file has problems
MinMaxify reads the whole file first and shows what it found. Each line in the list has the row number in your file and one of three marks.
| Mark | What it means | What to do |
|---|---|---|
| Fix | The row cannot be read safely. Examples: a value with a double quote that is not closed, or a handle cell that holds something other than a handle. Nothing has been imported. | Correct these rows in your file and import the file again. The message shows how to write the row. |
| Skipped | The row has no handle or SKU, or a limit that is not a plain number. This row is left out. | The button shows how many rows are ready, for example Import 118 rows. Click it to import the other rows. You can correct the skipped rows and import them later. |
| Note | The row is imported, with a remark. Examples: a Combine value that is not 1 or 0, or a handle that is in the file twice. For a handle or SKU that is in the file twice, the later row is used. | Read the note. You do not need to do anything. |
Click Download the list to get all problem rows as a file, with the row number and the problem for each.
If your file has column names and you chose the wrong format, for example Products for a file with SKUs, the window tells you to choose the other format. Without column names the app cannot tell, so check the format before you import.
What an import changes
- A row that matches a limit you already have updates that limit. Min, Max and Multiple are replaced, and an empty cell clears that value. In the Products format, a name in the file replaces the name of the limit, and Combine changes only when the cell holds 1 or 0.
- A row that matches nothing adds a new limit.
- A row with the same values as the limit you already have changes nothing. That limit does not get the badge Unpublished.
- Limits that are not in the file stay as they are. An import never removes a limit.
- You can import the same file again.
After an import, the app looks up the new SKUs and handles in your store. With more than 2,000 new SKUs or handles, this happens at your next publish. A limit whose SKU or handle is not found gets the badge Not in store. Check the spelling of those rows.
Export
- On Product Limits, click Export CSV.
- In Format, choose Products or SKUs.
- Click Download .csv.
The file has the column names in its first line and one line for each limit. Product names in any language open correctly in Excel and other spreadsheet programs. You can change the file and import it again.
Turn on Combine for many products at once
- Export your limits in the Products format.
- In the
Combinecolumn, enter 1 for each product whose variants should count together. - Import the file, in the Products format.
- Open Publish and click Publish now.
See Variants: count sizes and colours together or separately.
Good to know
- Limits for single variants, which you add with Add Variant, are not part of a CSV file. Add and change them on the page.
- To remove limits, select them on the page and click Remove Selected. A CSV file cannot remove a limit.