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

Instant search error on beforeWidgetInitialization hook #8

Open
Trio-web opened this issue Aug 29, 2023 · 0 comments
Open

Instant search error on beforeWidgetInitialization hook #8

Trio-web opened this issue Aug 29, 2023 · 0 comments

Comments

@Trio-web
Copy link

Trio-web commented Aug 29, 2023

Hi,

I'm try to customize page result using beforeWidgetInitialization hook as described here:

https://www.algolia.com/doc/integration/magento-2/customize/instant-search-page/?client=php#product-results-or-hits

but if I use code snippet suggested, a javascript error is generated when callbackTransform(items) function is called.
Error is this:

image

If I comment line:

items = callbackTransform(items);

my code works, but callbacks on items are not called.

Magento 2.4.6-p2
Algolia_AlgoliaSearch 3.10.6
Algolia_CustomAlgolia 1.2.2

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

No branches or pull requests

1 participant