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

fix: ALP varnish bug #36

Merged
merged 6 commits into from
Nov 28, 2024
Merged

fix: ALP varnish bug #36

merged 6 commits into from
Nov 28, 2024

Conversation

ah-net
Copy link
Collaborator

@ah-net ah-net commented Oct 24, 2024

When varnish and personal merchandising is enabled the first request (when the varnish cache is empty) loads the wrong products for an ALP. The selected filters are not applied for the first page.

This pull request fixes that.

Needs EmicoEcommerce/Magento2AttributeLanding#98 to work

@ah-net ah-net requested a review from jansentjeu October 24, 2024 09:27
return [$route, $params];
}

$filters = $this->registry->registry(sprintf('alp_filters_%s', $landingPageId)) ?? [];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jansentjeu I think this can be changed to $filters = $landingPage->getFilters(). So the registery change is not needed anymore.

@ah-net ah-net merged commit 0759086 into beta Nov 28, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants