Array ( [0] => GDPR Cookie Consent [1] => CCPA [2] => Getting Started [3] => Changelog [4] => GDPR [5] => Add and Categorise Cookies [8] => Auto-block cookies with Script Blocker [13] => Create Privacy Policy Page [15] => Customize Cookie Notice [18] => Customize Settings Pop up [19] => Change Toggle button color [21] => Display Cookie List [22] => FAQ [23] => Getting Started [24] => Multilingual Support [25] => Overview [26] => Import Export Suite for WooCommerce [28] => Order / Coupon / Subscription Export Import Plugin for WooCommerce [29] => PayPal Express Checkout Payment Gateway for WooCommerce [30] => Changelog [31] => Getting Started [32] => Issue Refund [34] => Video Tutorial [35] => Print Invoice, Packing Slip, Delivery Note & Label for WooCommerce [36] => Address Label [39] => Changelog [41] => Credit Note [43] => Delivery Note [45] => Dispatch Label [47] => FAQ [48] => Invoice [49] => Adding meta data [50] => Customizations [51] => Email PDF Invoice [52] => FAQ [53] => Getting Started [54] => Invoice Number [55] => Multilingual Support [56] => Overview [57] => Packing Slip [58] => Customizations [59] => Getting Started [60] => Pick List [62] => Proforma Invoice [65] => Shipping Label [68] => Product Import Export Plugin for WooCommerce [69] => Smart Coupons for WooCommerce [70] => Abandoned Cart Discount [71] => Advanced Coupon Options [72] => Bulk Generate [73] => Changelog [76] => Getting Started [78] => Import Coupon [80] => Sales Countdown Timer [81] => SignUp Coupon [82] => Store Credit [84] => Volume/Quantity based coupon [85] => Stripe Payment Gateway for WooCommerce [86] => Alipay [87] => Apple Pay [88] => Changelog [89] => Compatibility with Subscription [90] => Getting Started [93] => SCA Ready [94] => Stripe Checkout [95] => Stripe Overview [96] => Stripe via Credit Card [97] => Troubleshoot [98] => Video Tutorial [99] => Subscriptions for WooCommerce [100] => Changelog [101] => Email Notifications [102] => FAQ [103] => Getting Started [104] => Manually Add or Modify Subscriptions [105] => Subscriptions Payment Gateway Guide [106] => URL Coupons for WooCommerce [107] => Changelog [108] => FAQ [109] => Getting Started [110] => Import URL Coupons [111] => QR Code Coupon [112] => WordPress Users & WooCommerce Customers Import Export )

Documentation/Product Import Export Plugin for WooCommerce/Importing Woocommerce Variable Products from CSV – WooCommerce Product Import Export Plugin

Importing Woocommerce Variable Products from CSV – WooCommerce Product Import Export Plugin



The Best Product Import Export Plugin for WooCommerce

#1 in WordPress Official Plugin Repository With 60,000+ Active Installs

#1 in Customer Satisfaction With Most 5 Star Reviews

WebToffee Guarantee: Get Your Money Back if You Are Not Satisfied With The Product

Buy Now!


The WooCommerce variable product helps to create multiple variations of a single product. This will save time and effort of store owners from creating each variation from scratch. To create variable products, you have to make use of product attributes.

You can conveniently import or export variable products using our Product Import Export Plugin for WooCommerce plugin. It imports all the details into your WooCommerce store without hassles. An important step here is to map the column header of the CSV file correctly with the fields of WooCommerce so that all product variations and attributes come up without any problems.

Note: The CSV Import file must be in UTF-8 format. For more information about UTF-8 encoding, See How to save CSV / Excel File as UTF-8 Encoded?

Let us now understand importing CSV file containing variable products.

Let’s consider we have a variable product ‘T-shirt’ with four variations. The variations are created with two attributes – Color (Blue & Red) and Size (L & XL). The four variations are represented by their SKUs as A11v1 (Blue-XL), A11V2 (Red-XL), A11V3 (Blue-L) and A11v4 (Red-L), as shown in the screenshot below.

Variable product import CSVIn the CSV file, make sure that you use both SKU and Parent_SKU in the CSV for a variation. The child products should always have a Parent_SKU.

Secondly, for every attribute in the CSV, for example, size,  the following 4 columns are required.
  • meta:attribute_size – This defines the values of the variations.
  • attribute:size – This defines all the possible values for the parent product.
  • attribute_data:size – This column is explained below
  • attribute_default:size  – It is the default size that will be displayed on the cart/checkout page.

The field meta is to be filled, only for the child products. The other three fields – attribute, attribute_data, and attribute_default is filled, only for parent products. Also, the field attribute_default can be left empty and is not mandatory to be filled.

Now, let us take a look at the column attribute_data. attribute_data value is displayed in the form of position | visible | variation.

  • position: Defines the position of the attribute in the front-end. For example, if you have 3 attributes and the value of the position is 0, it indicates that this attribute’s position is at the top of the variations list.
  • visible: If the attribute is visible at the front-end, the value will be displayed as 1. Else, 0.
  • variation: If the attribute is used for variation, the value will be displayed as 1. Else, 0.

Finally, please see the sample CSV and only provide data in parent products rows for fields like attribute:size and attribute_data:size. The variations should not have any value for these columns.

Note: Click Sample CSV of Variable Product to download it.

Following are the steps to import variable products:

  • Move to Import Products in CSV Format in the Import section of Product settings tab. Further settings appear as shown in the screenshot below.
Product Import Export-Import Products

Product Import Export-Import Products

  • You can choose either of the methods for uploading the CSV file. In this article, we are selecting the first method. That is, uploading a CSV file from your computer.

  • Click Choose File to browse a required CSV file from your computer.
  • Select a mapping file, or click Upload file and import to move ahead and create a new one.
  • Enter a mapping filename and map the required WooCommerce Product Fields with column headers of the CSV file. Use Evaluation Field to fix/update the required value for a particular field.
Product Import Export-Import Products-Map Fields

Product Import Export-Import Products-Map Fields

  • Click Submit to start importing products into your WooCommerce store.  

Based on the CSV file imported, the products and its attributes get added to your store, as shown in the screenshot below:

Variable product import successful product page

Once the import is successful, you can view the imported products in the WooCommerce Product page section.

WooCommerce products list

To view its variations, move to the Variations section in the respective product page.

WooCommerce products variations section

The variations in the product page will be displayed as shown below:Variation on product page

Another variation on product page

Another variation on product page

From the above screenshots, we can see the variable product – T-shirt is imported to the WooCommerce store with four variations (Blue-L, Red-L, Blue-XL, Red-XL). The variations are imported with the correct images, SKU name, regular price, attributes, and so on.

To know more about importing images, read our article on importing images.

For more information on importing and exporting of products, read this documentation.



The Best Product Import Export Plugin for WooCommerce

#1 in WordPress Official Plugin Repository With 60,000+ Active Installs

#1 in Customer Satisfaction With Most 5 Star Reviews

WebToffee Guarantee: Get Your Money Back if You Are Not Satisfied With The Product

Buy Now!


  • Was this article helpful ?
  • YesNo