Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added information for product synchronization #2270

Merged
merged 3 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ class MessageBrokerConfig extends SprykerMessageBrokerConfig

#### Adjust Product configuration in `Zed`

Because of Algolia product search index syncronization is triggerd by internal Spryker events, it's required to provide a list of events for enabling product data syncronization.
Add the following code to `src/Pyz/Zed/Product/ProductConfig.php`:

```php
Expand Down Expand Up @@ -472,6 +473,20 @@ class ProductConfig extends SprykerProductConfig
}
```

{% info_block warningBox "Warning" %}

If your project has project-speciific functionality where abstract or concrete products are created, updated or deleted, add the necessary events to the list for when you need to send updated data to Algolia.

Examples of such functionality include:
- A custom functionality in the Back Office
- Custom data import
- Integration with some middleware when product or product-related data is updates in Spryker

Keep int mind, that to trigger custom events in Spryker you need to use `EventFacade::trigger('event-name', $payload)` or `EventFacade::triggerBulk('event-name', $payloads)` methods.

{% endinfo_block %}


#### Configure product dependencies in `Zed`

Add the following code to `src/Pyz/Zed/Product/ProductDependencyProvider.php`:
Expand Down