Comments (3)
Thanks for your report.
The issue occurs because the layer model uses the root category as the default current category.
A bit longer explanation:
- The product list block uses the layer model to fetch the product collection
- The layer model always sets the current category.
- If there is no current category set, the layer model uses the store root category as default
- The store root category is loaded
- This fails because that category is hidden by the rules you set
The exception is triggered because in effect a non-existant root category is assigned to the current store.
There is no easy way to change this behavior, besides making it impossible to hide root categories. In most cases this would be no problem, since the root category is rarely used in stores besides it's function as a container for all normal categories. It would certainly break your setup since you seem to rely on having the root hidden.
I suggest you rework your rules so you don't hide the root category, but instead rely only on regular categories.
from groupscatalog2.
Thanks Vinai, hiding the root category seemed like the most elegant architecture for a members only store, I'll see how else I can go about this.
from groupscatalog2.
The problem only occurs if the root category is hidden and you the try to use the product list block. If there where an easy way to fix this I would be happy to do it, but so far I can't think of a clean way to do so.
from groupscatalog2.
Related Issues (20)
- How to use in magento 2.0? HOT 1
- Support for Module "magento-hackathon/AsyncIndex" HOT 3
- group catalog categories not re-indexing HOT 4
- Show to ALL option
- Display Products via parent child relationship HOT 2
- Is extension compatible with Magneto 2? HOT 1
- After uninstallation empty "General" tab in catalog edit (backend)
- Wont reindex and keeps untickingstore views
- Error with a configurable product in the cart. HOT 2
- Problem with dataflow Export
- Advance Search
- Catalog empty while reindexing HOT 2
- GroupsCatalog Categories won't reindex HOT 3
- Site 500 on install.
- SQL issue HOT 1
- Magento 2 HOT 2
- Uninstall issue HOT 2
- Reindex taking a long time
- When HIDE_GROUPS_ATTRIBUTE isn't set, should fall back to USE_DEFAULT instead HOT 2
- Magento 2 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groupscatalog2.