function displaying the number of found products in layered navigation filters in magento2
Which function is responsible for displaying the total count of products in the filters in the layered navigation.
ie) i need to get the count (eg 50 ) in my custom filterable attributes as well.
This is how i have overridden filter.phtml in my
VendorLayeredNavigationviewfrontendlayoutcatalogsearch_result_index.xml
<page layout="3columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock class="VendorLayeredNavigationBlockNavigation" before="-" name="catalogsearch.leftnav">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_LayeredNavigation::layer/view.phtml</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<block class="MagentoLayeredNavigationBlockNavigationFilterRenderer" name="catalogsearch.navigation.renderer" as="renderer" template="layer/filter.phtml"/>
</referenceContainer>
</body>
di.xml
<preference for="MagentoLayeredNavigationBlockNavigationFilterRenderer" type="VendorLayeredNavigationBlockNavigationFilterRenderer" />
magento2
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Which function is responsible for displaying the total count of products in the filters in the layered navigation.
ie) i need to get the count (eg 50 ) in my custom filterable attributes as well.
This is how i have overridden filter.phtml in my
VendorLayeredNavigationviewfrontendlayoutcatalogsearch_result_index.xml
<page layout="3columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock class="VendorLayeredNavigationBlockNavigation" before="-" name="catalogsearch.leftnav">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_LayeredNavigation::layer/view.phtml</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<block class="MagentoLayeredNavigationBlockNavigationFilterRenderer" name="catalogsearch.navigation.renderer" as="renderer" template="layer/filter.phtml"/>
</referenceContainer>
</body>
di.xml
<preference for="MagentoLayeredNavigationBlockNavigationFilterRenderer" type="VendorLayeredNavigationBlockNavigationFilterRenderer" />
magento2
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Which function is responsible for displaying the total count of products in the filters in the layered navigation.
ie) i need to get the count (eg 50 ) in my custom filterable attributes as well.
This is how i have overridden filter.phtml in my
VendorLayeredNavigationviewfrontendlayoutcatalogsearch_result_index.xml
<page layout="3columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock class="VendorLayeredNavigationBlockNavigation" before="-" name="catalogsearch.leftnav">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_LayeredNavigation::layer/view.phtml</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<block class="MagentoLayeredNavigationBlockNavigationFilterRenderer" name="catalogsearch.navigation.renderer" as="renderer" template="layer/filter.phtml"/>
</referenceContainer>
</body>
di.xml
<preference for="MagentoLayeredNavigationBlockNavigationFilterRenderer" type="VendorLayeredNavigationBlockNavigationFilterRenderer" />
magento2
Which function is responsible for displaying the total count of products in the filters in the layered navigation.
ie) i need to get the count (eg 50 ) in my custom filterable attributes as well.
This is how i have overridden filter.phtml in my
VendorLayeredNavigationviewfrontendlayoutcatalogsearch_result_index.xml
<page layout="3columns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock class="VendorLayeredNavigationBlockNavigation" before="-" name="catalogsearch.leftnav">
<action method="setTemplate">
<argument name="template" xsi:type="string">Vendor_LayeredNavigation::layer/view.phtml</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<block class="MagentoLayeredNavigationBlockNavigationFilterRenderer" name="catalogsearch.navigation.renderer" as="renderer" template="layer/filter.phtml"/>
</referenceContainer>
</body>
di.xml
<preference for="MagentoLayeredNavigationBlockNavigationFilterRenderer" type="VendorLayeredNavigationBlockNavigationFilterRenderer" />
magento2
magento2
edited Oct 18 '16 at 10:18
Sushivam
asked Oct 18 '16 at 9:23
SushivamSushivam
1,24521345
1,24521345
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Go to vendormagentomodule-layered-navigationviewfrontendtemplateslayerfilter.phtml
<ol class="items">
<?php foreach ($filterItems as $filterItem): ?>
<li class="item">
<?php if ($filterItem->getCount() > 0): ?>
<a href="<?php echo $block->escapeUrl($filterItem->getUrl()) ?>">
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
</a>
<?php else:?>
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endforeach ?>
</ol>
Below function will be main shouldDisplayProductCountOnLayer
& getCount
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
do i need to override the filter phtm(MagentoLayeredNavigationBlockNavigationFilterRenderer class), as im not making any custom change to it?.. i have overridden only view.phtml for displaying my custom filter(MagentoLayeredNavigationBlockNavigation)...but still why are the counts not displaying in custom filters in layered navigation?
– Sushivam
Oct 18 '16 at 9:45
Yup. You have to override in your theme. Try to clear cache, var & check again. It should work
– Ankit Shah
Oct 18 '16 at 9:47
Could you pls check if my updated answer is correct? i mean is calling the block class rite? i get Undefined variable: filterItems in Magento cores filter phtml file
– Sushivam
Oct 18 '16 at 9:59
Ofcourse you need to get that Block file as well. Otherwise how will you get Array? So you need to copyfilterItems
related things from Core & Override in ur once
– Ankit Shah
Oct 18 '16 at 10:01
should i keep the MagentoLayeredNavigationBlockNavigationFilterRenderer file in my custom path...if not if i override the FilterRenderer Block, i have to clone the file as is rite? correct me if im wrong
– Sushivam
Oct 18 '16 at 10:04
|
show 4 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f141353%2ffunction-displaying-the-number-of-found-products-in-layered-navigation-filters-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Go to vendormagentomodule-layered-navigationviewfrontendtemplateslayerfilter.phtml
<ol class="items">
<?php foreach ($filterItems as $filterItem): ?>
<li class="item">
<?php if ($filterItem->getCount() > 0): ?>
<a href="<?php echo $block->escapeUrl($filterItem->getUrl()) ?>">
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
</a>
<?php else:?>
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endforeach ?>
</ol>
Below function will be main shouldDisplayProductCountOnLayer
& getCount
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
do i need to override the filter phtm(MagentoLayeredNavigationBlockNavigationFilterRenderer class), as im not making any custom change to it?.. i have overridden only view.phtml for displaying my custom filter(MagentoLayeredNavigationBlockNavigation)...but still why are the counts not displaying in custom filters in layered navigation?
– Sushivam
Oct 18 '16 at 9:45
Yup. You have to override in your theme. Try to clear cache, var & check again. It should work
– Ankit Shah
Oct 18 '16 at 9:47
Could you pls check if my updated answer is correct? i mean is calling the block class rite? i get Undefined variable: filterItems in Magento cores filter phtml file
– Sushivam
Oct 18 '16 at 9:59
Ofcourse you need to get that Block file as well. Otherwise how will you get Array? So you need to copyfilterItems
related things from Core & Override in ur once
– Ankit Shah
Oct 18 '16 at 10:01
should i keep the MagentoLayeredNavigationBlockNavigationFilterRenderer file in my custom path...if not if i override the FilterRenderer Block, i have to clone the file as is rite? correct me if im wrong
– Sushivam
Oct 18 '16 at 10:04
|
show 4 more comments
Go to vendormagentomodule-layered-navigationviewfrontendtemplateslayerfilter.phtml
<ol class="items">
<?php foreach ($filterItems as $filterItem): ?>
<li class="item">
<?php if ($filterItem->getCount() > 0): ?>
<a href="<?php echo $block->escapeUrl($filterItem->getUrl()) ?>">
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
</a>
<?php else:?>
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endforeach ?>
</ol>
Below function will be main shouldDisplayProductCountOnLayer
& getCount
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
do i need to override the filter phtm(MagentoLayeredNavigationBlockNavigationFilterRenderer class), as im not making any custom change to it?.. i have overridden only view.phtml for displaying my custom filter(MagentoLayeredNavigationBlockNavigation)...but still why are the counts not displaying in custom filters in layered navigation?
– Sushivam
Oct 18 '16 at 9:45
Yup. You have to override in your theme. Try to clear cache, var & check again. It should work
– Ankit Shah
Oct 18 '16 at 9:47
Could you pls check if my updated answer is correct? i mean is calling the block class rite? i get Undefined variable: filterItems in Magento cores filter phtml file
– Sushivam
Oct 18 '16 at 9:59
Ofcourse you need to get that Block file as well. Otherwise how will you get Array? So you need to copyfilterItems
related things from Core & Override in ur once
– Ankit Shah
Oct 18 '16 at 10:01
should i keep the MagentoLayeredNavigationBlockNavigationFilterRenderer file in my custom path...if not if i override the FilterRenderer Block, i have to clone the file as is rite? correct me if im wrong
– Sushivam
Oct 18 '16 at 10:04
|
show 4 more comments
Go to vendormagentomodule-layered-navigationviewfrontendtemplateslayerfilter.phtml
<ol class="items">
<?php foreach ($filterItems as $filterItem): ?>
<li class="item">
<?php if ($filterItem->getCount() > 0): ?>
<a href="<?php echo $block->escapeUrl($filterItem->getUrl()) ?>">
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
</a>
<?php else:?>
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endforeach ?>
</ol>
Below function will be main shouldDisplayProductCountOnLayer
& getCount
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
Go to vendormagentomodule-layered-navigationviewfrontendtemplateslayerfilter.phtml
<ol class="items">
<?php foreach ($filterItems as $filterItem): ?>
<li class="item">
<?php if ($filterItem->getCount() > 0): ?>
<a href="<?php echo $block->escapeUrl($filterItem->getUrl()) ?>">
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
</a>
<?php else:?>
<?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
<?php endif; ?>
</li>
<?php endforeach ?>
</ol>
Below function will be main shouldDisplayProductCountOnLayer
& getCount
<?php if ($this->helper('MagentoCatalogHelperData')->shouldDisplayProductCountOnLayer()): ?>
<span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
<?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
<?php endif; ?>
answered Oct 18 '16 at 9:42
Ankit ShahAnkit Shah
4,750864141
4,750864141
do i need to override the filter phtm(MagentoLayeredNavigationBlockNavigationFilterRenderer class), as im not making any custom change to it?.. i have overridden only view.phtml for displaying my custom filter(MagentoLayeredNavigationBlockNavigation)...but still why are the counts not displaying in custom filters in layered navigation?
– Sushivam
Oct 18 '16 at 9:45
Yup. You have to override in your theme. Try to clear cache, var & check again. It should work
– Ankit Shah
Oct 18 '16 at 9:47
Could you pls check if my updated answer is correct? i mean is calling the block class rite? i get Undefined variable: filterItems in Magento cores filter phtml file
– Sushivam
Oct 18 '16 at 9:59
Ofcourse you need to get that Block file as well. Otherwise how will you get Array? So you need to copyfilterItems
related things from Core & Override in ur once
– Ankit Shah
Oct 18 '16 at 10:01
should i keep the MagentoLayeredNavigationBlockNavigationFilterRenderer file in my custom path...if not if i override the FilterRenderer Block, i have to clone the file as is rite? correct me if im wrong
– Sushivam
Oct 18 '16 at 10:04
|
show 4 more comments
do i need to override the filter phtm(MagentoLayeredNavigationBlockNavigationFilterRenderer class), as im not making any custom change to it?.. i have overridden only view.phtml for displaying my custom filter(MagentoLayeredNavigationBlockNavigation)...but still why are the counts not displaying in custom filters in layered navigation?
– Sushivam
Oct 18 '16 at 9:45
Yup. You have to override in your theme. Try to clear cache, var & check again. It should work
– Ankit Shah
Oct 18 '16 at 9:47
Could you pls check if my updated answer is correct? i mean is calling the block class rite? i get Undefined variable: filterItems in Magento cores filter phtml file
– Sushivam
Oct 18 '16 at 9:59
Ofcourse you need to get that Block file as well. Otherwise how will you get Array? So you need to copyfilterItems
related things from Core & Override in ur once
– Ankit Shah
Oct 18 '16 at 10:01
should i keep the MagentoLayeredNavigationBlockNavigationFilterRenderer file in my custom path...if not if i override the FilterRenderer Block, i have to clone the file as is rite? correct me if im wrong
– Sushivam
Oct 18 '16 at 10:04
do i need to override the filter phtm(MagentoLayeredNavigationBlockNavigationFilterRenderer class), as im not making any custom change to it?.. i have overridden only view.phtml for displaying my custom filter(MagentoLayeredNavigationBlockNavigation)...but still why are the counts not displaying in custom filters in layered navigation?
– Sushivam
Oct 18 '16 at 9:45
do i need to override the filter phtm(MagentoLayeredNavigationBlockNavigationFilterRenderer class), as im not making any custom change to it?.. i have overridden only view.phtml for displaying my custom filter(MagentoLayeredNavigationBlockNavigation)...but still why are the counts not displaying in custom filters in layered navigation?
– Sushivam
Oct 18 '16 at 9:45
Yup. You have to override in your theme. Try to clear cache, var & check again. It should work
– Ankit Shah
Oct 18 '16 at 9:47
Yup. You have to override in your theme. Try to clear cache, var & check again. It should work
– Ankit Shah
Oct 18 '16 at 9:47
Could you pls check if my updated answer is correct? i mean is calling the block class rite? i get Undefined variable: filterItems in Magento cores filter phtml file
– Sushivam
Oct 18 '16 at 9:59
Could you pls check if my updated answer is correct? i mean is calling the block class rite? i get Undefined variable: filterItems in Magento cores filter phtml file
– Sushivam
Oct 18 '16 at 9:59
Ofcourse you need to get that Block file as well. Otherwise how will you get Array? So you need to copy
filterItems
related things from Core & Override in ur once– Ankit Shah
Oct 18 '16 at 10:01
Ofcourse you need to get that Block file as well. Otherwise how will you get Array? So you need to copy
filterItems
related things from Core & Override in ur once– Ankit Shah
Oct 18 '16 at 10:01
should i keep the MagentoLayeredNavigationBlockNavigationFilterRenderer file in my custom path...if not if i override the FilterRenderer Block, i have to clone the file as is rite? correct me if im wrong
– Sushivam
Oct 18 '16 at 10:04
should i keep the MagentoLayeredNavigationBlockNavigationFilterRenderer file in my custom path...if not if i override the FilterRenderer Block, i have to clone the file as is rite? correct me if im wrong
– Sushivam
Oct 18 '16 at 10:04
|
show 4 more comments
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f141353%2ffunction-displaying-the-number-of-found-products-in-layered-navigation-filters-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown