Topdata Topdata Docs

TopdataDemoDataImporterSW6

Topdata Demo Data Importer

This plugin simplifies the process of adding demo products to your Shopware 6 store. It’s ideal for testing, demonstration, and development purposes.

Key Functionality

  • Demo Product Import: Quickly populate your store with sample products
  • Custom CSV Import: Import your own product data with flexible column mapping
  • Demo Product Management: Easily identify and remove demo products
  • Webservice Integration: Set up demo credentials for Topdata webservice

Installation Guide

Requirements

  • Shopware 6.5 or later
  • PHP 7.4 or later

Installation Steps

  1. Download the plugin ZIP file
  2. Upload through Shopware Administration → Settings → Plugins → Upload Plugin
  3. Install and activate the plugin
  4. Clear the cache: bin/console cache:clear

Post-Installation

The plugin automatically creates:

  • Custom field set “Topdata Demo Data Importer”
  • Boolean field “Is a demo product” for product identification

Plugin Configuration

Admin Configuration

The plugin provides the following configuration options in Shopware Administration:

  • Example Configuration: Example field (currently placeholder functionality)

Custom Fields

The plugin creates these automatic fields:

  • Is a demo product: Boolean field that marks products imported as demo data

Frequently Asked Questions

How are demo products identified?

Demo products are marked with the “Is a demo product” custom field.

Can I use my own CSV format?

Yes, use the import-products-csv command with column mapping parameters.

How do I completely remove the plugin?

  1. Uninstall the plugin (keeping user data unchecked)
  2. Manually remove any remaining demo products

Using the Plugin

Admin Interface

  1. Navigate to Topdata Demo Data in admin menu
  2. Click “Import Demo Data” to import bundled products

Console Commands

Import Demo Products

bin/console topdata:demo-data-importer:import-demo-products [--category-id=ID] [--no-category] [--force]

Remove Demo Products

bin/console topdata:demo-data-importer:remove-demo-products [--force]

Set Webservice Credentials

bin/console topdata:demo-data-importer:use-webservice-demo-credentials

Custom CSV Import

bin/console topdata:demo-data-importer:import-products-csv --file=products.csv --number=4 --name=2 --brand=3