# WooCommerce Import Path

**URL:** https://discourse.roots.io/t/woocommerce-import-path/16829
**Category:** general
**Created:** 2019-10-14T17:49:16Z
**Posts:** 1

## Post 1 by @JordanC26 — 2019-10-14T17:49:16Z

I am not sure if this relates to the roots set up, this is why I’ve put this question in ‘General’.

On my [roots.io](http://roots.io) set up I have WooCommerce installed, when I try to import the sample data (Tools - Import - Product Import) it fails with:

`Error message: “Invalid file type. The importer supports CSV and TXT file formats.”`  
Many threads online have related this to WooCommerce not finding the file in the path it looks for it normally, therefore I used this filter to disable it briefly:

`add_filter( 'woocommerce_product_csv_importer_check_import_file_path', '__return_false' );`

The file is CSV for certain, re-saved multiple times and also tried other sample data files too. With the filter in place, it goes through fine.

Therefore, wondering if anyone knows if a filter is needed when using roots and WooCommerce to make sure it knows where the import file path is?

---

## Post 2 by @system — 2019-11-25T17:49:18Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
