GPSR Compliance for WooCommerce seamlessly integrates with the built-in WooCommerce CSV import and export system. This means you can export your product data including all GPSR fields, edit them in any spreadsheet application, and re-import the updated data – all without touching the WordPress admin for individual products.
The 5 GPSR Columns
When the plugin is active, WooCommerce CSV exports automatically include five additional columns. Here is what each column contains:
- gpsr_manufacturer_id – The numeric ID of the assigned manufacturer record. You can find manufacturer IDs on the GPSR Compliance → Manufacturers screen.
- gpsr_manufacturer_name – The manufacturer’s display name (read-only on import; the ID takes precedence). Included for reference when editing in spreadsheets.
- gpsr_eu_representative – The name of the EU Authorised Representative, if applicable. This field is auto-populated from the manufacturer record but can be overridden per product.
- gpsr_safety_info – Free-text safety information and warnings for the product. Supports plain text only (no HTML).
- gpsr_compliance_status – Current compliance status:
compliant,partial, ormissing. This column is read-only – it is calculated automatically based on the other fields and cannot be set via import.
Exporting Products with GPSR Data
To export your products with GPSR data included:
- Go to Products → All Products in your WordPress admin.
- Click “Export” at the top of the page.
- In the export dialog, you will see the standard WooCommerce column selection. The 5 GPSR columns are listed under the “GPSR Compliance” group.
- Make sure the GPSR columns are checked (they are included by default).
- Optionally filter by product category or type.
- Click “Generate CSV” and save the file.
Editing GPSR Data in a Spreadsheet
Open the exported CSV in your preferred spreadsheet application (Excel, Google Sheets, LibreOffice Calc). Locate the GPSR columns – they are typically at the far right of the spreadsheet.
Common Editing Tasks
- Assign a manufacturer to multiple products – Enter the manufacturer ID in the
gpsr_manufacturer_idcolumn for each product row. - Add safety information – Type the safety text into the
gpsr_safety_infocolumn. Keep it plain text without line breaks. - Clear a manufacturer assignment – Delete the value in the
gpsr_manufacturer_idcolumn (leave it empty). - Override EU representative per product – Enter a custom name in the
gpsr_eu_representativecolumn. Leave it empty to use the value from the manufacturer record.
Important: Do not modify the gpsr_compliance_status column. Any values in this column are ignored during import because the status is recalculated automatically.
Re-importing Updated Data
To import your edited CSV back into WooCommerce:
- Go to Products → All Products.
- Click “Import” at the top of the page.
- Upload your edited CSV file.
- On the column mapping screen, verify that the GPSR columns are correctly mapped. The plugin registers the column names automatically, so they should be pre-mapped.
- Choose “Update existing products” to merge changes into existing products (matched by ID or SKU).
- Click “Run the importer”.
After import completes, verify a few products to confirm the GPSR data was applied correctly.
Migrating GPSR Data Between Stores
CSV import/export is the recommended method for migrating GPSR data between WordPress installations (e.g., from staging to production, or between two separate stores).
Migration Steps
- Export manufacturers first. Go to GPSR Compliance → Manufacturers → Export on the source store. This creates a separate CSV with all manufacturer records.
- Import manufacturers on the target store. Go to GPSR Compliance → Manufacturers → Import and upload the manufacturer CSV. Note the new manufacturer IDs assigned on the target store.
- Export products with GPSR data from the source store as described above.
- Update manufacturer IDs. If the manufacturer IDs differ between stores (which is likely), update the
gpsr_manufacturer_idcolumn in the product CSV to match the new IDs from the target store. - Import products on the target store.
Tips for Smooth Migration
- Always migrate manufacturers before products so the IDs exist when products reference them.
- Use a VLOOKUP formula in your spreadsheet to map old manufacturer IDs to new ones across the product CSV.
- Test the import on a staging environment first before running it on production.
- If both stores share the same database structure (e.g., cloned sites), manufacturer IDs may already match – verify before editing.
- After migration, run the GPSR compliance check from GPSR Compliance → Dashboard to verify all products have valid data on the target store.
Troubleshooting
- GPSR columns missing from export: Ensure the GPSR Compliance plugin is active. Deactivating the plugin removes the columns from the export dialog.
- Manufacturer not assigned after import: Double-check that the ID in
gpsr_manufacturer_idmatches an existing manufacturer record. Invalid IDs are silently ignored. - CSV encoding issues: Save your CSV as UTF-8 to avoid problems with special characters in manufacturer names and addresses (common with European names).
- Large file timeouts: For stores with 10,000+ products, split the CSV into smaller files (2,000–3,000 rows each) to avoid PHP timeout errors during import.