Skip to main content

Import & Export

PredictCart supports importing and exporting rules in JSON format, enabling bulk rule management and transfer between environments.

Exporting Rules

  1. Go to WooCommerce → PredictCart → Tools
  2. Click Export Rules
  3. 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

  1. Go to WooCommerce → PredictCart → Tools
  2. Click Import Rules
  3. Select a valid JSON file
  4. 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.