-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support for nested categories #8
Comments
@filrak it seems it need to be styled on the frontend - could you do that? And then we need to change /vue-storefront/src/store/modules/catalog.js:61 (loadCategories method) to: return new Promise((resolve, reject) => {
client.search({
index: config.elasticsearch.index, // TODO: add grouped prodduct and bundled product support
type: 'category',
q: qr,
'_sourceInclude': ['name', 'position', 'id', 'parent_id', **'children_data'**]
}).then(function (resp) {
commit(types.CATALOG_UPD_CATEGORIES, resp)
resolve(resp)
}).catch(function (err) {
reject(err)
})
}) and let qr = 'level: 2' |
|
@pkarw of course i will ;) As far as i remember Karol said that current graphics are as simple as possible. That's the reason why there are no nested categories yet but they should be implemented later and according to what you wrote |
So right now we should display only the 1. level and thats all? @filrak @karolbzik |
@pkarw according to design and what @karolbzik said - yup |
Added to the sidebar but with some minor issue to be fixed (#42). @filrak @karolbzik we need some design idea for this - how to present the subs? |
Related to: #391 |
@filrak you should take care of this one as it's kind of core change to the navigation |
Marvelous job @mercs600! |
* feat: add api-extractor-config * fix: use correct main * fix: use correct main * feat: add common tsconfig * chore: change structure of tsconfig * feat: add api-extractor-config * fix: use module exports
* feat: add api-extractor-config * fix: use correct main * fix: use correct main * feat: add common tsconfig * chore: change structure of tsconfig * feat: add api-extractor-config * fix: use module exports
How do we support nested categories in navigation? Right now it's not supported (/src/themes/default/components/core/blocks/SidebarMenu/SidebarMenu.vue:16 need to be changed) - the categories object already consist of hierarchical data:
The text was updated successfully, but these errors were encountered: