For the complete documentation index, see llms.txt. This page is also available as Markdown.

Customization and troubleshooting

Customization and troubleshooting

The module provides a working Magento 2 integration. Customize it through Magento dependency injection when your project needs different exported data or communication parameters.

Change an exported column name

First, replace the column name in your module's di.xml:

<virtualType name="Omikron\Factfinder\Model\Export\CatalogFeed">
    <arguments>
        <argument name="columns" xsi:type="array">
            <item name="Master" xsi:type="string">CUSTOM_NAME</item>
        </argument>
    </arguments>
</virtualType>

Then add a data-provider plugin that returns the new key:

public function afterToArray($subject, $result)
{
    return ['CUSTOM_NAME' => $result['Master']] + $result;
}

Clear the configuration cache:

Add a column

Register a custom product field in di.xml. The field implementation must implement Omikron\Factfinder\Api\Export\FieldInterface.

Add the matching feed column:

Use GenericField

Use GenericField when you only need to export a product attribute without transformation:

Clear the configuration cache after adding the virtual type.

Add a custom communication parameter

Create a provider that implements Omikron\Factfinder\Api\Config\ParametersSourceInterface:

Providers run in array order. When two providers return the same key, the later provider wins.

Add a product data provider

Map a custom product type to a provider in di.xml:

Your provider must implement DataProviderInterface and return its entities from getEntities().

Export fields from variants

The module exports configurable-product data by default. Variants override only selected fields for performance.

Configure variantFields when variant values differ, such as color-specific product images:

Remove /pub from exported URLs

When exported URLs include /pub, add this setting to your project's env.php:

Last updated

Was this helpful?