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

Nosto Recommendations are loaded twice #31

Closed
mridang opened this issue Feb 3, 2015 · 1 comment
Closed

Nosto Recommendations are loaded twice #31

mridang opened this issue Feb 3, 2015 · 1 comment
Labels
Milestone

Comments

@mridang
Copy link
Contributor

mridang commented Feb 3, 2015

On a category page and the cart page, we use the JS to auto-load the slots and re-position them. Since the call nostojs.init() has already fired, we move the slots to another position and and re-load the recommendations through the JS API, which causes the events to be fired again.

This can be solved by checking in the header if it is a search/category page. If it is wrap the nostojs.init ins a custom function which is invoked by the auto-slots code. On all other pages, the nostojs.init is fired automatically.

@kryysler kryysler added the bug label Jun 3, 2015
@mridang
Copy link
Contributor Author

mridang commented Dec 1, 2015

Noticed again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants