🛒 Shopware 6 Cart Seeder

Development Tool for Realistic Test Data Generation

PHPShopwareDevelopmentTestingPlugin

Project Overview

The Shopware 6 Cart Seeder is a powerful development tool designed exclusively for development and testing environments. It generates realistic fake customers and shopping carts with configurable options, making it perfect for testing cart-related functionality, abandoned cart scenarios, and performance testing.

Core Highlights

  • Realistic customer data generation
  • Configurable cart contents
  • Aged cart simulation
  • Easy cleanup & batch processing
  • Progress tracking & error handling
  • Memory efficient processing

Technical Stack

PHP 8.3Shopware 6.6Faker PHPConsole Commands

Project Status

Open Source
Development Tool

⚠️ Development Use Only

This plugin is designed exclusively for development and testing environments. Never use in production! It creates fake customer data and should only be used in development/testing environments.

Usage Examples

Basic Usage

# Generate default amounts (50 customers, 100 carts)
bin/console cart-seeder:seed

# Generate custom amounts
bin/console cart-seeder:seed --customers=100 --carts=200

# Control cart contents
bin/console cart-seeder:seed --min-items=2 --max-items=10

# Clean existing test data first
bin/console cart-seeder:seed --clean

Installation via Composer

# Navigate to your Shopware root directory
cd /path/to/your/shopware

# Install the plugin via Composer
composer require m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder

# Refresh plugin list
bin/console plugin:refresh

# Install and activate the plugin
bin/console plugin:install --activate MaxSeeligCartSeeder

# Clear cache
bin/console cache:clear

Complete Example

# Complete example with all options
bin/console cart-seeder:seed \
  --customers=500 \
  --carts=1000 \
  --min-items=1 \
  --max-items=8 \
  --clean

Core Features

Realistic Customer Data

Generate customers with proper names, addresses, payment methods, and profiles using Faker library.

Smart Cart Creation

Create carts with random products, configurable item counts, and realistic quantities.

Aged Cart Simulation

Backdate carts randomly (1-7 days) to simulate realistic usage patterns for abandoned cart testing.

Easy Cleanup

All generated data is marked with SEED- prefixes for simple identification and removal.

Batch Processing

Generate hundreds or thousands of records with progress tracking and memory-efficient processing.

Configurable Options

Control customer count, cart count, item quantities, and more through command-line options.

Use Cases

Development Scenarios

  • • Feature Testing: Test cart-related functionality with realistic data
  • • UI/UX Testing: Populate interfaces with varied cart contents
  • • Performance Testing: Load test shopping cart operations
  • • Demo Preparation: Create convincing demo data for presentations

Testing Scenarios

  • • Abandoned Cart Recovery: Test email campaigns and recovery flows
  • • Customer Segmentation: Test customer grouping and targeting features
  • • Checkout Flows: Test various cart configurations through checkout
  • • Analytics: Generate data for testing reporting and analytics features

Command Options

OptionAliasDefaultDescription
--customers-c50Number of fake customers to create
--carts-100Number of fake carts to create
--min-items-1Minimum items per cart
--max-items-5Maximum items per cart
--clean-falseRemove existing seeded data before generating new data

Technical Details

Requirements

  • • Shopware: 6.6.*
  • • PHP: 8.3
  • • Dependencies: fakerphp/faker library
  • • Extensions: ext-json

Performance Considerations

  • • Memory Usage: Ensure adequate PHP memory limit for large datasets
  • • Processing Time: Scales with product catalog size
  • • Database Load: Consider off-peak hours for very large datasets

Project Status

Active & Available

The Shopware 6 Cart Seeder is actively maintained and available via Composer. It's ready to use in your Shopware 6 development environments for generating realistic test data.