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

Displaying virtual categories on front #367

Closed
madonzy opened this issue Mar 23, 2017 · 7 comments
Closed

Displaying virtual categories on front #367

madonzy opened this issue Mar 23, 2017 · 7 comments
Assignees
Labels

Comments

@madonzy
Copy link

madonzy commented Mar 23, 2017

How to display products of virtual category

Preconditions

OS: Linux debian-8 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
Magento Version: 2.1.4 CE
ElasticSuite Version: 2.3.3
Environment: developer

Steps to reproduce

  1. Add new category inside Root category.
  2. Set it as virtual
  3. Set rule "Color is one of Blue."
  4. Save
  5. Full reindex & cache clean

Expected result

The storefront will show me results in my virtual category page.

Actual result

Now in the admin panel, I can see all products that really have attribute color with value Blue. But storefront don't show me any products in this category

@webagil-kevin
Copy link

Same issue #366

@madonzy
Copy link
Author

madonzy commented Mar 23, 2017

@DogSports I see that you are able to see products with some like "manual sort", what does it mean? I can't see any products at all.

@romainruaud romainruaud self-assigned this Mar 23, 2017
@romainruaud
Copy link
Collaborator

Confirmed.

We'll try to provide a fix for this one quickly.

Regards

@romainruaud
Copy link
Collaborator

When enforcing the catalogsearch layer to be used on catalog navigation, we introduced a biasis causing to always apply the addCategoryFilter method on the product collection.

This causes all categories to include a "must category_id=XXX" which indeed works for standard categories but produces conditions like "must color=blue AND category_id=XXX" on virtual categories which is not reliable.

It also causes a double appliance of "category_id=XXX" on standard category but does not fail since it does not change anything to the result.

@madonzy
Copy link
Author

madonzy commented Mar 23, 2017

@romainruaud sorry, but I'm not sure I understand you correct. Please provide any steps to make virtual category show products on the storefront. Does your response mean that it's problem on my side or on the side of elasticsuit?

@romainruaud
Copy link
Collaborator

Sorry if you did misunderstood my answer : the problem is clearly on our side and due to the latest release. You can consider downgrading to 2.3.2 till we fix the issue and provide a new release.

We are working on it and expect to provide a fix soon.

Best regards,

@romainruaud
Copy link
Collaborator

Fixed by PR #368 , please migrate to 2.3.4 version and process cache clean and compile.

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

3 participants