Wrong number of result in toolbar after overriding ListProductHow to update category page with custom filters, and also layered navigation, Magento 2.1Toolbar not displaying with overridden Mage_Catalog_Block_Product_ListDisplay “Page x of x” in toolbar: category pages and search resultsCustom toolbar template - fatal error on home pageHow to filter loadedProductCollection to show out of stock products within a specific period?Drop Down Filter by Attribute in Products List toolbarHow to display only configurable products count in the catalog?Magento 2 : Wrong Count of Shop By on Search Result Page If there is Grouped ProductProblem in overriding ListProduct on search resultsShow product based on customer attributesShow product catalog based on Customer

How can I make my BBEG immortal short of making them a Lich or Vampire?

Watching something be written to a file live with tail

How much of data wrangling is a data scientist's job?

Maximum likelihood parameters deviate from posterior distributions

What typically incentivizes a professor to change jobs to a lower ranking university?

What's the point of deactivating Num Lock on login screens?

LWC SFDX source push error TypeError: LWC1009: decl.moveTo is not a function

What are these boxed doors outside store fronts in New York?

Modeling an IP Address

Convert two switches to a dual stack, and add outlet - possible here?

Is it possible to do 50 km distance without any previous training?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Has there ever been an airliner design involving reducing generator load by installing solar panels?

Filter any system log file by date or date range

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Does detail obscure or enhance action?

High voltage LED indicator 40-1000 VDC without additional power supply

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Why is consensus so controversial in Britain?

What does it mean to describe someone as a butt steak?

What does the "remote control" for a QF-4 look like?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

Why do I get two different answers for this counting problem?

How does one intimidate enemies without having the capacity for violence?



Wrong number of result in toolbar after overriding ListProduct


How to update category page with custom filters, and also layered navigation, Magento 2.1Toolbar not displaying with overridden Mage_Catalog_Block_Product_ListDisplay “Page x of x” in toolbar: category pages and search resultsCustom toolbar template - fatal error on home pageHow to filter loadedProductCollection to show out of stock products within a specific period?Drop Down Filter by Attribute in Products List toolbarHow to display only configurable products count in the catalog?Magento 2 : Wrong Count of Shop By on Search Result Page If there is Grouped ProductProblem in overriding ListProduct on search resultsShow product based on customer attributesShow product catalog based on Customer






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute.



But now I have the wrong number of element in the toolbar (I have 3 products displayed but still the "unfiltered" number in the toolbar).



I've added condition in initializeProductCollection function










share|improve this question




























    0















    I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute.



    But now I have the wrong number of element in the toolbar (I have 3 products displayed but still the "unfiltered" number in the toolbar).



    I've added condition in initializeProductCollection function










    share|improve this question
























      0












      0








      0








      I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute.



      But now I have the wrong number of element in the toolbar (I have 3 products displayed but still the "unfiltered" number in the toolbar).



      I've added condition in initializeProductCollection function










      share|improve this question














      I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute.



      But now I have the wrong number of element in the toolbar (I have 3 products displayed but still the "unfiltered" number in the toolbar).



      I've added condition in initializeProductCollection function







      magento2 product catalog toolbar






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      Morgan TartreauMorgan Tartreau

      39312




      39312




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Found the answser :



          Best solution seems to be to override IndexBuilder PluginCatalogSearchModelSearch



          see : How to update category page with custom filters, and also layered navigation, Magento 2.1






          share|improve this answer























            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%2f268483%2fwrong-number-of-result-in-toolbar-after-overriding-listproduct%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














            Found the answser :



            Best solution seems to be to override IndexBuilder PluginCatalogSearchModelSearch



            see : How to update category page with custom filters, and also layered navigation, Magento 2.1






            share|improve this answer



























              0














              Found the answser :



              Best solution seems to be to override IndexBuilder PluginCatalogSearchModelSearch



              see : How to update category page with custom filters, and also layered navigation, Magento 2.1






              share|improve this answer

























                0












                0








                0







                Found the answser :



                Best solution seems to be to override IndexBuilder PluginCatalogSearchModelSearch



                see : How to update category page with custom filters, and also layered navigation, Magento 2.1






                share|improve this answer













                Found the answser :



                Best solution seems to be to override IndexBuilder PluginCatalogSearchModelSearch



                see : How to update category page with custom filters, and also layered navigation, Magento 2.1







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                Morgan TartreauMorgan Tartreau

                39312




                39312



























                    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%2f268483%2fwrong-number-of-result-in-toolbar-after-overriding-listproduct%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

                    Sum ergo cogito? 1 nng

                    419 nièngy_Soadمي 19bal1.5o_g

                    Queiggey Chernihivv 9NnOo i Zw X QqKk LpB