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

Web Components and customization

The plugin supports classic Twig-rendered Shopware storefronts only.

Web Components integration

The plugin loads its scripts automatically through Resources/views/storefront/layout/meta.html.twig. If your theme does not extend that template, load these scripts in this order:

  1. custom-elements-es5-adapter.js

  2. webcomponents-loader.js

  3. bundle.js

Configuration is generated in Resources/views/storefront/base.html.twig. Themes that do not extend the default Storefront must add this configuration.

Templates are in Resources/views/storefront/. Extend them with sw_extends. Web Component HTML templates use Handlebars.

Implemented components include search, suggestions, records, ASN, sorting, paging, filters, campaigns, recommendations, similar products, and checkout tracking.

Tracking

The plugin tracks login, product clicks, add-to-cart events, and purchases. Product clicks use record template directives. Purchases use ff-checkout-tracking.

Extend the feed

Create a class implementing FieldInterface to export a custom column. Implement getName(), getValue(), and getCompatibleEntityTypes().

Register the class as a Symfony service. Autoconfiguration applies the factfinder.export.field tag.

To export additional values from variants, tag the field with factfinder.export.variant_field. Add necessary associations through factfinder.export.associations.

Extend components and responses

Override a component's Twig block to customize rendered HTML. For example, extend record-list.html.twig and override component_factfinder_record.

Use an EnrichProxyDataEvent subscriber to modify FACT-Finder data returned through the proxy.

Customize field roles

Override factfinder.field_roles in your application's services.xml when your feed uses different column names. Application parameters take precedence over plugin defaults.

Last updated

Was this helpful?