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

Can't create optimizer for category view #392

Closed
Pigau opened this issue Apr 13, 2017 · 1 comment
Closed

Can't create optimizer for category view #392

Pigau opened this issue Apr 13, 2017 · 1 comment
Assignees
Labels

Comments

@Pigau
Copy link

Pigau commented Apr 13, 2017

Preconditions

Magento Version : EE 2.1.4
ElasticSuite Version : 2.3.4
Environment : Dev & Prod

Steps to reproduce

  1. Create an optimizer with "catalog_view_container" as request type
  2. Check the category on front

Expected result

  1. The optimzer should be used for the category view request

Actual result

  1. The optimizer is ignored because the request type for the category view is "quick_search_container"

I personnaly correct this by changing the ItemCollectionProvider of the Layer\Category\Contex virtual type :

<virtualType name="Magento\CatalogSearch\Model\Layer\Category\Context" type="Magento\Catalog\Model\Layer\Category\Context">
  <arguments>
    <argument name="collectionProvider" xsi:type="object">Magento\CatalogSearch\Model\Layer\Category\ItemCollectionProvider</argument>
  </arguments>
</virtualType>
@romainruaud
Copy link
Collaborator

Fixed by PR #398 . Please wait for the next minor 2.3 release or feel free to use the 2.3.x branch while waiting for it.

Best regards,

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