function displaying the number of found products in layered navigation filters in magento2












0















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.



enter image description here



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" />









share|improve this question
















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.




















    0















    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.



    enter image description here



    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" />









    share|improve this question
















    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.


















      0












      0








      0








      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.



      enter image description here



      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" />









      share|improve this question
















      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.



      enter image description here



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          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; ?>





          share|improve this answer
























          • 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 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          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; ?>





          share|improve this answer
























          • 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 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
















          0














          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; ?>





          share|improve this answer
























          • 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 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














          0












          0








          0







          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; ?>





          share|improve this answer













          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; ?>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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 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



















          • 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 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

















          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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          What other Star Trek series did the main TNG cast show up in?

          Berlina muro

          Berlina aerponto