Skip to main content

How to Import and Export Shopify Unit Prices

Manage product unit pricing using spreadsheets for accurate per-unit cost display.

Goal: Import and export unit prices for your Shopify product variants to comply with EU pricing regulations and display accurate per-unit pricing to customers.

Video walkthrough: Watch the 2-minute video

Prerequisites:

  • You have Altera installed on your Shopify store

  • Products already created in your Shopify store

Step 1 - Export Your Products with Unit Price Fields

In Altera, click New Export and select Products as the data type.

In the field selection, select the Unit price field group to include unit price fields. You may also want to include the General group to have product identifiers like ID and Handle. Click Start Export and download the file when ready.

Step 2 - Open and Review Your Spreadsheet

Open the exported file in your spreadsheet application. You will see columns including:

  • ID and Handle (to identify the product)

  • Variant ID and Variant SKU (to identify the variant)

  • Variant Unit Price (the price per base measure that Shopify calculates, e.g., 17.90; export only)

  • Variant Unit Price: Total Measure Value (the quantity in the package, e.g., 500)

  • Variant Unit Price: Total Measure Unit (the unit, e.g., g)

  • Variant Unit Price: Base Measure Value (the quantity the price is shown for, e.g., 1)

  • Variant Unit Price: Base Measure Unit (the base unit, e.g., kg)

Step 3 - Update Unit Price Values

Edit the unit price values in your spreadsheet. For example, to set a product as 2 kg per unit priced per 1 kg:

  • Set Variant Unit Price: Total Measure Value to 2

  • Set Variant Unit Price: Total Measure Unit to kg

  • Set Variant Unit Price: Base Measure Value to 1

  • Set Variant Unit Price: Base Measure Unit to kg

Valid units: cl, cm, floz, ft, ft2, g, gal, in, item, kg, l, lb, m, m2, m3, mg, ml, mm, oz, pt, qt, yd. Upper and lower case do not matter. Both values must be greater than 0, and the base measure value must be a whole number.

You don't need to edit the Variant Unit Price column. Shopify calculates it, and the import ignores it.

Step 4 - Import the Updated File

Return to Altera and click Upload file on the home page. Select your modified spreadsheet.

The app will analyze the file and show which fields will be updated. Review the preview and click Start import to apply your changes.

Step 5 - Verify the Changes

After the import completes, click the product link in the results to open it directly in Shopify admin. Navigate to the variant and scroll to the Unit price section to confirm your changes were applied.

Outcome

Your product variants now display the updated unit pricing information. Customers will see the per-unit price calculation on product pages, helping them compare prices across different package sizes.

Removing Unit Prices

To remove unit pricing from a variant, leave all four measure columns blank for that variant: Variant Unit Price: Total Measure Value, Variant Unit Price: Total Measure Unit, Variant Unit Price: Base Measure Value, and Variant Unit Price: Base Measure Unit.

Import the file and the unit pricing is removed from the variant. A value of 0 does not remove it; the import reports an error for that row instead.

To change only one value, for example the total measure value, you can import a file with only that column. The other values are taken from the saved unit price.

Example

ID

Variant SKU

Variant Unit Price: Total Measure Value

Variant Unit Price: Total Measure Unit

Variant Unit Price: Base Measure Value

Variant Unit Price: Base Measure Unit

123456

COFFEE-500G

500

g

1

kg

789012

JUICE-1L

1

l

1

l

456789

FABRIC-2M

2

m

1

m

Did this answer your question?