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

SMM-5 Dynamic menu improvements #355

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open

Conversation

adamwaclawczyk
Copy link
Member

@adamwaclawczyk adamwaclawczyk commented Dec 18, 2024

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.

@adamwaclawczyk adamwaclawczyk changed the title Feature/105318 wip SMM-5 Dynamic menu improvements Jan 7, 2025
@kruchy8
Copy link
Contributor

kruchy8 commented Jan 28, 2025

A lot of linter errors but I guess we cannot fix those in a short timeframe

view/adminhtml/web/vue/field-type/checkbox.vue Outdated Show resolved Hide resolved
view/adminhtml/web/vue/menu-type.vue Outdated Show resolved Hide resolved
*/
public function getCategoriesProductCount($categoryIds = [])
{
$productTable = $this->getConnection()->getTableName('catalog_category_product');
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants