Import & Export
PredictCart supports importing and exporting rules in JSON format, enabling bulk rule management and transfer between environments.
Exporting Rules
- Go to WooCommerce → PredictCart → Tools
- Click Export Rules
- A JSON file containing all rules is downloaded
The export includes:
- All rule configurations (types, methods, values)
- Conditions and match modes
- Exclusivity settings
- Scheduling data
Importing Rules
- Go to WooCommerce → PredictCart → Tools
- Click Import Rules
- Select a valid JSON file
- Confirm the import
The import process:
- Validates the JSON structure
- Creates new rules (existing rules are not overwritten)
- Skips malformed entries with clear error messages
Format
The export/import format is a JSON array of rule objects. Each object matches the internal rule schema with fields like uid, method, conditions, exclusivity, etc.