Skip to main content

Questions tagged [category-filter]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

How to add category select in admin block page without UI component?

I am trying to add category selector in my block page without UI component. This is my block file. <?php namespace Uedakanamono\BannerSlider\Block\Adminhtml\Banner\Edit\Tab; use Magento\...
2 votes
0 answers
50 views

How to unset layered navigation block if theres not filters inside layered navigation

How can I unset sidebar.main container if there's no layered navigation the layered search result page navigation if there's no filters catalogsearch_result_index.xml
0 votes
1 answer
1k views

Magento 2 : Pass a variable to getChildBlock() in LayeredNavigation view.phtml

I have to pass a variable in layer/view.phtml /Magento_LayeredNavigation/templates/layer/view.phtml to its getChildBlock which is renderer/labels.phtml Amasty_Shopby/templates/layer/filter/...
1 vote
3 answers
4k views

I need to get product collection by filter multiple category ids in magento 2

I need to get product collection by filter multiple category ids. Here is my code: $catId = [2, 3, 5]; $productcollection = $objectmanager->create('\Magento\Catalog\Model\ResourceModel\Product\...
1 vote
0 answers
957 views

How to show Shop by Color filter on category page Claue theme Magento 2

I am using Magento 2 and facing issue to show Shop by Color filter. I am using Claue theme. I checked for the Use in Layered Navigation option inside Store > Attribites > Product > Color. The option ...
1 vote
1 answer
5k views

How to Show Category Filter In Sidebar Magento2

Actually, I want to show Category Filter in Sidebar which Magento provide by default. I also show category to Is Anchor "Yes" but still filter is not Displaying. So anything missing from my side? or ...