Export feeds
Export, upload, and import Shopware data for FACT-Finder.
FACT-Finder can export product, CMS, brand or manufacturer, and category feeds. Add further data types through factfinder.data_export.entity_type_map.
CLI exports
php [SHOPWARE_ROOT]/bin/console factfinder:data:export
php [SHOPWARE_ROOT]/bin/console factfinder:data:export -n
php [SHOPWARE_ROOT]/bin/console factfinder:data:export -n SALES_CHANNEL_ID LANGUAGE_ID
php [SHOPWARE_ROOT]/bin/console factfinder:data:export -n > export.csvUse -u to upload the generated feed. Use -i to trigger the FACT-Finder import after upload. -i requires -u.
Set a sales-channel image domain with:
APP_URL=http://saleschannel-domain.com php [SHOPWARE_ROOT]/bin/console factfinder:data:exportFrom version 7.3.0, use the lower-memory worker flow:
php [SHOPWARE_ROOT]/bin/console factfinder:data:worker-exportIt accepts the same options as the standard command.
CMS and admin exports
Select categories for CMS exports using the category’s Include in CMS Export custom field.
Run an end-to-end export from /admin#/ui/feed/export/index. Select the sales channel, language, and export type. The form sends a message for an enabled admin worker or a CLI worker.
Add feed fields
Implement Omikron\FactFinder\Shopware6\Export\FieldInterface. Provide getName(), getValue(Entity $entity), and getCompatibleEntityTypes(). Register the service with autoconfiguration, or tag it as factfinder.export.field.
Only CustomFields and ImageUrl export from variants by default. Tag other fields with factfinder.export.variant_field. Add required variant joins through factfinder.export.associations, for example children.cover. Additional associations can slow exports.
Export custom entities
For a new entity type, provide an ExportInterface, ExportEntityInterface, and FactoryInterface. Use GenericEntityFactory when no custom yielding logic is required.
Use FieldInterface for complex field values. Its compatible entity types control where it applies. Create and generate a feed with:
$context is a SalesChannelContext.
Last updated
Was this helpful?