-
Notifications
You must be signed in to change notification settings - Fork 105
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
SMM-5 Dynamic menu improvements #355
base: develop
Are you sure you want to change the base?
Conversation
8fe831f
to
bb0971f
Compare
A lot of linter errors but I guess we cannot fix those in a short timeframe |
*/ | ||
public function getCategoriesProductCount($categoryIds = []) | ||
{ | ||
$productTable = $this->getConnection()->getTableName('catalog_category_product'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may provide misleading data as catalog_category_product
table is source of truth for all product category associations including disabled and not visible products. (In Example will indicate category full of disabled products as non-zero products, even thou navigating to that category will yield zero products).
There is table catalog_category_product_index_store<store_id>
that contains visibility - can You check if it is depopluated when changing product status? As it may be better source of data if it is indeed not having entries for disabled products.
This pr adds support for handling dynamic menus. Discussion started in #317
Menu starting with this pr will piggy back off of the cache invalidation process. Menu can now gather cache tags from nodes' and include it in menu block's cache tags.