You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. getProductResults() is a useful method from the SearchBoxComponentService on our case, as we benefit from the fact that it returns the whole productResults object, because we need the keywordRedirectUrl field (whereas in the public method getResults(), which itself calls getProductResults(), returns only productResults.products). But this method is protected. We therefore had to create a custom service that extends SearchBoxComponentService, just to re-create getProductResults() ourselves, which simply calls super.getProductResults(config).
If .getProductResults() was a public method, we wouldn't need to do this.
Describe the solution you'd like getProductResults() is changed from protected to public.
Additional context
Version 5.2 of Spartacus.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
getProductResults()
is a useful method from theSearchBoxComponentService
on our case, as we benefit from the fact that it returns the wholeproductResults
object, because we need thekeywordRedirectUrl
field (whereas in the public methodgetResults()
, which itself callsgetProductResults()
, returns onlyproductResults.products
). But this method isprotected
. We therefore had to create a custom service that extendsSearchBoxComponentService
, just to re-creategetProductResults()
ourselves, which simply callssuper.getProductResults(config)
.If
.getProductResults()
was a public method, we wouldn't need to do this.Describe the solution you'd like
getProductResults()
is changed fromprotected
topublic
.Additional context
Version
5.2
of Spartacus.The text was updated successfully, but these errors were encountered: