-
Notifications
You must be signed in to change notification settings - Fork 0
Sorting
danneg edited this page Jun 14, 2023
·
2 revisions
In order for the API request to happen, the ApiSortingModelInterface dependency that has to be declared.
The ApiSortingModelInterface is used:
- in the API RequestTransformer in order to set/validate the sorting rule for the request.
- for the Sorting block, that manages the sorting options available on the store frontend.
In the framework repository is provided the structure which is used:
- it is used as a "model" property on the sorting Boxalino Layout Block.
- it covers the accessor for bx-sort, which has access to active sort and the sorting options
- used for creating sorting options available for the integration
- Declare the DI preference
- Identify the desired frontend sorting options
- Identify the Boxalino fields required for as data-source
- Add the sorting options as arguments to the model.
© 2021 Boxalino AG | Real Time User Experience API | Integration | Magento2