Skip to content

Add extension points for custom pricing/data and structure sync - #56

Open
PierreGauthier wants to merge 3 commits into
2.3.xfrom
feat-1391443-custom-pricing
Open

Add extension points for custom pricing/data and structure sync#56
PierreGauthier wants to merge 3 commits into
2.3.xfrom
feat-1391443-custom-pricing

Conversation

@PierreGauthier

@PierreGauthier PierreGauthier commented Aug 12, 2026

Copy link
Copy Markdown
Contributor
Q A
Branch? master for features / current stable version branch for bug fixes
Tickets #...
License OSL-3.0

Adds a ProductDocumentsIndexEvent (indexation) and a SearchRequestContextEvent
(search request, price_group_id) so a project can plug custom data/pricing
logic without decorating the plugin. Also lets several dataproviders
contribute to the same structure sync entity (catalog/sourceField/
sourceFieldOption), splitting the built-in attribute/option providers and
subscribers accordingly as a first real usage of that mechanism.

Refs #33, refs #1391443
Add the missing plugin file header to the two new Event classes, and align
a phpdoc block per cs-fixer's own diff.

ProductAttributeSourceFieldProvider had its own metadataCache instead of
reusing AbstractSourceFieldProvider's, unlike the original SourceFieldProvider
which cached Metadata instances in one place for both attributes and static
fields. Expose it as getMetadata() on the abstract class instead.
The product/category slug fields aren't tied to attributes or options,
they don't belong in ProductAttributeSourceFieldProvider either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants