This guide shows you how to standardize WooCommerce product imports using a folder-based workflow. You’ll set up a system where product data files are dropped into specific folders, processed consistently, and imported without errors. This approach ensures every product follows the same format, reduces manual corrections, and makes bulk updates predictable.
What You’ll Need
- A WordPress site with WooCommerce installed and active.
- FTP or cPanel file manager access to your server (or a hosting file manager).
- A spreadsheet editor (Excel, Google Sheets, or LibreOffice Calc) to prepare CSV files.
- Basic understanding of WooCommerce product fields (name, SKU, price, etc.).
- Optional: A plugin like WP All Import or WooCommerce’s built-in CSV importer.
Step-by-Step
- Create a folder structure on your server. Inside your WordPress installation (e.g.,
wp-content/uploads/), create a main folder calledproduct-imports. Inside it, create three subfolders:raw,processed, anderrors. Therawfolder holds files you upload;processedholds files after successful import;errorsholds files that failed. - Define a standard CSV template. Create a CSV file with the exact column headers you will use for every import. At minimum, include:
sku,name,description,regular_price,sale_price,stock,categories,images. Save this astemplate.csvin theproduct-importsfolder. Use this template for every import to keep columns consistent. - Set up a naming convention for files. Name each import file with a date and a short description, like
2025-05-01-new-products.csvor2025-05-01-price-update.csv. This makes it easy to track when files were processed and what they contain. - Prepare your data in the CSV template. Open the template in your spreadsheet editor. Fill in product data row by row. Ensure each SKU is unique and that prices use numbers only (no currency symbols). For categories, use a pipe
|to separate multiple categories (e.g.,Clothing | Men). For images, use full URLs to the image files, separated by pipes. - Validate the CSV before importing. Check for common issues: missing SKUs, duplicate SKUs, prices that are not numeric, and extra commas that break the column structure. Use a CSV validator tool or simply open the file in a text editor to inspect it. Fix any errors before proceeding.
- Upload the CSV to the
rawfolder. Using FTP or cPanel, upload your prepared CSV file to therawfolder. Do not place it directly inprocessedorerrors. - Run the import using WooCommerce’s built-in importer. In WordPress admin, go to
WooCommerce > Products > Import. Choose the file from therawfolder (or upload it if you’re on a local install). Map the CSV columns to WooCommerce fields. Make sure the mapping matches your template exactly. ClickRun the importer. - Monitor the import results. After the import, WooCommerce shows a summary: how many products imported, updated, or failed. If any rows fail, note the reasons. Common failures include missing SKUs or invalid prices.
- Move the file to the appropriate folder. If the import succeeded (even with some failures), move the CSV from
rawtoprocessed. If it failed entirely, move it toerrors. This keeps your folders clean and prevents re-processing the same file. - Review and fix any failed rows. Open the CSV in your spreadsheet editor, correct the errors (e.g., add missing SKUs, fix price formats), and save it as a new file with a new name (e.g.,
2025-05-01-new-products-fixed.csv). Upload this torawand import again. - Automate (optional) with a cron job or plugin. If you do this regularly, consider using a plugin like WP All Import that can watch a folder and import automatically. Set up a cron job to run the import at a specific time daily or weekly. This removes manual steps but requires careful testing.
Common Mistakes
- Inconsistent column headers. Changing column names between imports breaks the mapping. Always start from the template.
- Using Excel to save CSV with UTF-8 encoding issues. Excel often saves CSV with a BOM or in a non-UTF-8 format, causing character problems. Use
Save As > CSV UTF-8(Excel) or export from Google Sheets. - Forgetting to include the SKU. WooCommerce uses SKU to identify products. Without it, the importer may create duplicates or fail.
- Mixing file types. Stick to CSV. Do not use XLSX directly unless your import plugin supports it. CSV is the most reliable.
- Not cleaning up the
rawfolder. If you leave files there, you might accidentally re-import them. Always move files after processing.
Tips
- Use a naming convention with dates. This helps you track which file was imported when.
- Test with a small file first. Before a large import, import 5-10 products to verify your template and mapping.
- Keep a backup of your database. Before any import, export your current products via
WooCommerce > Products > Export. This lets you restore if something goes wrong. - Use relative paths for images? Actually, use full URLs to avoid broken images. If images are in your media library, use the full URL.
- Document your workflow. Write down the steps and share with your team. This ensures everyone follows the same process.
Troubleshooting
Import fails with “Invalid SKU” or “Duplicate SKU”. Check your CSV for blank SKU cells or duplicate values. Use a spreadsheet formula to highlight duplicates. If you have duplicate SKUs, change them to unique values.
Products import but prices are wrong. Ensure the price columns are formatted as numbers, not text. In Excel, select the column and set format to Number. Also check that you are not using commas as decimal separators if your locale uses periods.
Images do not appear. Verify that the image URLs are publicly accessible. If they are local paths, they won’t work. Use full URLs like https://yoursite.com/wp-content/uploads/2025/05/product.jpg.
Categories are not created. If you use a new category name that doesn’t exist, WooCommerce usually creates it. If not, check the “categories” column format. Use a pipe separator and ensure the category hierarchy is correct (e.g., Parent | Child).
The importer times out on large files. Split the CSV into smaller chunks (e.g., 500 rows each) and import them one by one. Increase PHP memory and execution time in your wp-config.php or via your hosting control panel.
Frequently Asked Questions
Can I use this folder workflow with a plugin like WP All Import?
Yes. WP All Import can be configured to pull from a specific folder on your server and run automatically. The folder structure remains the same; the plugin handles the processing.
What if I need to update existing products instead of adding new ones?
Use the same template and include the SKU for each existing product. WooCommerce will match by SKU and update the product fields you provide. If you leave a field blank, it may be overwritten with empty, so be careful.
How do I handle product variations?
Variations require a more complex CSV with columns like parent_sku, attribute_1, value_1, etc. The folder workflow still works, but you need to extend your template. Refer to WooCommerce’s documentation for variation import format.
Can I schedule imports automatically without a plugin?
Yes, you can write a custom script that runs via cron and uses WooCommerce’s API or the built-in importer class. This is more advanced and requires programming knowledge. A plugin is usually easier.
What if my CSV has extra columns that aren’t in WooCommerce?
You can ignore them during mapping. The importer will simply skip unmapped columns. However, it’s cleaner to remove them from the template to avoid confusion.
Is it safe to delete files from the processed folder?
Yes, once you’ve confirmed the import was successful, you can delete or archive them. Keeping them for a while can help with auditing, but they are not needed for future imports.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Campus Tech Innovation Hubs: What They Are
- Poco C51 Airtel Prepaid Locked Variant India?
- Jenkins vs GitHub Actions: Which CI/CD Fits Your Team?
- Turn Off Backup Encryption in iTunes?
- Shared VPS Hosting: Is It Better?
- Disk Defrag Pro: What It Does and Whether You Need It