In layer navigation multiselect attribute not displayed.
$filter->getItemsCount()
in vendor/magento/module-layered-navigation/view/frontend/templates/layer/view.phtml
always return zero.
<?php foreach ($block->getFilters() as $filter): ?>
<?php if (!$wrapOptions): ?>
<strong role="heading" aria-level="2" class="block-subtitle filter-subtitle"><?php /* @escapeNotVerified */ echo __('Shopping Options') ?></strong>
<dl class="filter-options" id="narrow-by-list">
<?php $wrapOptions = true; endif; ?>
<?php if ($filter->getItemsCount()): ?>
<dt role="heading" aria-level="3" class="filter-options-title"><?php echo $block->escapeHtml(__($filter->getName())) ?></dt>
<dd class="filter-options-content"><?php /* @escapeNotVerified */ echo $block->getChildBlock('renderer')->render($filter); ?></dd>
<?php endif; ?>
<?php endforeach; ?>
My try
$filter
have all the multiselect attribute but $filter->getItemsCount()
return zero.
e.g)
$filter
have brand
attribute, category page have many products which have brand value however $filter->getItemsCount()
return zero
please suggest nicer way to debug?
Note: I did reindex. All cahce are disabled. In admin, we enabled needed properties to display in Navigation.