Group price import & export Basic

Use CSV to update product titles, SKUs, descriptions, stock quantities, Group prices and quantity tiers in bulk. Export a template, edit it in a spreadsheet, then review the changes before applying them.

Available from version 0.16.0, on the Basic and Advanced plans. The Description and Variation description columns are available from version 0.17.0. From 0.20.0, each import row requires a product or variation ID. You can change a product title and SKU in the same row. Version 0.21.0 adds Stock quantity.

Data Import and Export page with Quick export template, Export and Import panels
Data Import & Export.

Open TT B2B Perks › Data Import & Export.

Export

The file

The first CSV row contains the headers. Each remaining row represents one product or variation. A variable product's parent row comes before its variations. Use parent and grouped product rows for titles, SKUs and descriptions. Set Group prices on the variation or individual product rows.

Keep exactly one ID column and at least one editable column. The ID is the only field used to find the product or variation. If the ID is missing, invalid or unknown, or the supplied Type differs from the item's type, the whole row is skipped.

Column reference

ColumnWhat it does
ID
Required
The WooCommerce product or variation ID, written as a positive integer. Keep the ID from the export.
Example: 1234
Type
Optional
The product type, such as simple, variable, variation or grouped. When supplied it is checked against the matched product.
Example: variation
Handle
Optional
The product slug. Variation rows show the parent product's Handle. Changes to this read-only field are reported and ignored.
Example: classic-tee
Title
Optional
Enter a new product title to rename it. WooCommerce generates variation titles from the parent product. A blank cell keeps the existing title.
Example: Classic Tee - Red, Large
Description
Optional
The main product description. It accepts plain text or HTML and preserves line breaks. Text in this column on a variation row is skipped with a message. An empty cell normally clears the text. Omit the column to keep the stored description.
Example: <p>Soft <strong>cotton</strong> tee.</p>
Variation description
Optional
The option text shown when a customer selects a variation. It accepts plain text or HTML. On other product types this field is skipped with a message.
Example: Best seller, ships in 2 days
SKU
Optional
Enter an unused SKU for the product or variation. A blank cell keeps the existing SKU.
Example: TEE-RED-L
Barcode
Optional
Reference only: the product's GTIN, UPC, EAN or ISBN. Ignored by the import.
Example: 9400000000017
General price
Optional
Reference only: the product's normal WooCommerce regular price, which customers outside a Group pay. Change it on the product screen; the import ignores it.
Example: 25.00
Stock quantity
Optional on import
The current stock quantity for a simple product or variation that manages its own stock. A blank import cell preserves the quantity. Enter 0 to set the quantity to zero. Use a number supported by your store, without thousands separators.
Example: 24
Enable B2B price
Optional
The product's Enable B2B group pricing switch. Group prices of a product only apply while this is on; when it is off they stay saved but are not used. Accepts true / false, 1 / 0 or yes / no, in any letter case. An empty cell leaves the switch as it is. Leave it empty on the row of a variable or grouped product.
Example: true
Group (#ID) price
Optional
The Group's regular price. Members of the Group see it instead of the general price. An empty cell removes it, and members then start from the general price.
Example: 20.00
Group (#ID) sale price
Optional
The Group's sale price. When the Group price is also set, the sale price must be lower, or the incompatible price change is skipped. It can be used without a Group price, as a sale below the general price. An empty cell removes it.
Example: 18.50
Group (#ID) tiers
Optional
Quantity tiers. Each tier is minimum quantity=unit price, and tiers are separated by |. Once a cart line reaches a tier's quantity, the tier price applies to every unit in that line, unless a lower price applies (see How the prices work together). Quantities are whole numbers of 1 or more; : is accepted instead of =; tiers may be in any order and are sorted; if a quantity appears twice, the last price counts. An empty cell removes all tiers of the Group.
Example: 10=17.00|50=15.50

All prices are plain numbers with at most one decimal separator (. or ,) and up to six decimals, for example 9.50, 9,50 or 12. Thousands separators, currency signs, spaces and negative numbers produce a validation message and skip that price field.

When the price, sale price and tiers of a Group are all empty after an import, the product no longer has prices for that Group, and its members pay the general price.

Update stock only

Keep the exported ID for each simple product or variation that manages its own stock. The stock cell is blank on rows that use shared stock or have inventory tracking disabled. Enter the quantity WooCommerce should hold. Empty cells preserve the current quantity.

ID,Stock quantity
101,24
205,0
206,

Group column headers

Every Group has three columns, named Group name (#Group ID) price, … sale price and … tiers, for example Wholesale (#12) price. Only the number in brackets and the last words matter: the import finds the Group by its ID, so the file still works after a Group is renamed, and letter case is ignored. Keep the headers as exported. Columns of a Group that no longer exists are ignored and named in a warning on the review panel.

You can import just one Group's price column. The new price is still checked against the stored sale price.

How the prices work together

For a member of a Group, on a product whose Enable B2B price is on, the unit price is the lowest of:

Dynamic Discount rules then apply on top. With a Group price of 20.00, a sale price of 18.50 and tiers 10=17.00|50=15.50, a member pays 18.50 each for 1 to 9 units, 17.00 each for 10 to 49 units and 15.50 each for 50 units or more.

Example file

This file changes three products for the Groups Wholesale (#12) and Trade (#15). It leaves out the reference columns and the Trade sale price and tiers columns, so those values are not touched.

ID,SKU,Title,Enable B2B price,Wholesale (#12) price,Wholesale (#12) sale price,Wholesale (#12) tiers,Trade (#15) price
101,,Classic Tee,true,20.00,18.50,10=17.00|50=15.50,22.00
102,MUG-02,Classic Coffee Mug,,8.00,,,8.50
205,,Hoodie - Blue,false,,,,
RowResult
101 Classic TeeThe row matches product ID 101 and switches on B2B group pricing. Wholesale gets price 20.00, sale price 18.50 and two tiers; Trade gets price 22.00.
102 Coffee MugProduct ID 102 gets the title Classic Coffee Mug and the SKU MUG-02. The switch is left as it is. Wholesale price becomes 8.00 and the empty cells remove its sale price and tiers. Trade price becomes 8.50.
205 Hoodie - BlueB2B group pricing is switched off, and the empty cells also remove the Wholesale price, sale price and tiers and the Trade price. To switch pricing off and keep the prices, import a file with only the ID and Enable B2B price columns.

Example with descriptions

This file sets the descriptions of the variable product Hoodie and its two variations, and the Wholesale price of each variation. The first description contains a comma, so it is in quotes; a spreadsheet adds the quotes for you.

ID,Type,Title,Description,Variation description,Wholesale (#12) price
204,variable,Hoodie,"<p>Heavy cotton hoodie, machine washable.</p>",,
205,variation,Hoodie - Blue,,Best seller,24.00
206,variation,Hoodie - Red,,,24.00
RowResult
204 HoodieThe row of the variable product itself. Its description is replaced with the HTML. The Wholesale price stays empty: any price on this row is skipped.
205 Hoodie - BlueThe Blue option gets the text "Best seller", shown when a customer chooses it, and a Wholesale price of 24.00.
206 Hoodie - RedThe empty Variation description cell clears the text of the Red option. Wholesale price 24.00.

Edit titles and SKUs

Rules for editing

Import

On Basic, the import skips metafield columns and can still apply other valid catalogue changes.

Keep the exported metafield column IDs and enter values on the matching product or variation rows. Omit a column or cell to keep the stored value. An explicit blank cell clears it. The import review checks numbers and select choices before applying changes.

  1. Drag the CSV file onto the Import panel, or click the panel to choose it, then click Check file.
  2. Read the Review import panel. Rows with skipped data counts affected rows. The details list issues by line number. If the row's ID identifies an item and its supplied Type agrees, valid fields on that row can still be imported.
  3. Click Apply … changes to write the changes, or Cancel import to drop the file. A progress bar shows the import running.
Import review panel with row issues and a count of affected rows that still have valid changes
Review the changes before they are written.

Importing a file you exported and did not edit changes nothing. The review stays available for 30 minutes and only for the manager who uploaded the file. Upload any file checked before the 0.20.0 update again.

An import cannot be undone. Before applying it, keep a copy of your current data from Quick export template.

When product data changes after validation

The import skips a product if a field you planned to change was edited after validation or the new SKU became unavailable. A row with a stock edit is also skipped if the product stops managing its own stock before the import applies it. Export again to see the current values.

History

The list at the bottom of the page shows each export and completed import, with the type, file name, result, time and account. Delete removes the history entry only.

Related