Increase number of shown related products in the administration (Magento 2)how to increase the width of date field in admin gridHow to create custom sticky admin system messages?Magento related products get categoryInvalid method MagentoEavModelEntityAttribute::canBeFilterableInGrid when accesing customer_grid in the administrationMagento 2.2 Open Source restrictions on each settingMagento 2 - Products not appearing in categories on frontendSet Name of quote_itemNot able to change a position of last two related products in case of I've 20+ related productsPlace Block over the “Related Products” blockHow to increase related products slider image size?

Can the US President recognize Israel’s sovereignty over the Golan Heights for the USA or does that need an act of Congress?

Why is it that I can sometimes guess the next note?

Is there a RAID 0 Equivalent for RAM?

Temporarily disable WLAN internet access for children, but allow it for adults

I'm the sea and the sun

Pre-mixing cryogenic fuels and using only one fuel tank

What should you do when eye contact makes your subordinate uncomfortable?

How should I respond when I lied about my education and the company finds out through background check?

Does malloc reserve more space while allocating memory?

Did arcade monitors have same pixel aspect ratio as TV sets?

Mimic lecturing on blackboard, facing audience

Creepy dinosaur pc game identification

What is going on with 'gets(stdin)' on the site coderbyte?

Has any country ever had 2 former presidents in jail simultaneously?

How could a planet have erratic days?

Lowest total scrabble score

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

Why does the Sun have different day lengths, but not the gas giants?

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?

Biological Blimps: Propulsion

Is this toilet slogan correct usage of the English language?

What is the highest possible scrabble score for placing a single tile

Can I visit Japan without a visa?

Does Doodling or Improvising on the Piano Have Any Benefits?



Increase number of shown related products in the administration (Magento 2)


how to increase the width of date field in admin gridHow to create custom sticky admin system messages?Magento related products get categoryInvalid method MagentoEavModelEntityAttribute::canBeFilterableInGrid when accesing customer_grid in the administrationMagento 2.2 Open Source restrictions on each settingMagento 2 - Products not appearing in categories on frontendSet Name of quote_itemNot able to change a position of last two related products in case of I've 20+ related productsPlace Block over the “Related Products” blockHow to increase related products slider image size?













2















When you edit a product in the magento administration the number of items listed in the related products, up-sells and cross-sells list is limited to 20. Also there is no possibility to change this like in felt every other grid.



I tried to fix this programmatically by creating an observer which sets the default limit to 50. The observer is called correctly (when adminhtml_block_html_before is fired) but nothing changes.



Any thoughts on this?










share|improve this question







New contributor




xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    2















    When you edit a product in the magento administration the number of items listed in the related products, up-sells and cross-sells list is limited to 20. Also there is no possibility to change this like in felt every other grid.



    I tried to fix this programmatically by creating an observer which sets the default limit to 50. The observer is called correctly (when adminhtml_block_html_before is fired) but nothing changes.



    Any thoughts on this?










    share|improve this question







    New contributor




    xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      2












      2








      2








      When you edit a product in the magento administration the number of items listed in the related products, up-sells and cross-sells list is limited to 20. Also there is no possibility to change this like in felt every other grid.



      I tried to fix this programmatically by creating an observer which sets the default limit to 50. The observer is called correctly (when adminhtml_block_html_before is fired) but nothing changes.



      Any thoughts on this?










      share|improve this question







      New contributor




      xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      When you edit a product in the magento administration the number of items listed in the related products, up-sells and cross-sells list is limited to 20. Also there is no possibility to change this like in felt every other grid.



      I tried to fix this programmatically by creating an observer which sets the default limit to 50. The observer is called correctly (when adminhtml_block_html_before is fired) but nothing changes.



      Any thoughts on this?







      magento2 php adminhtml grid






      share|improve this question







      New contributor




      xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      xxxxxx

      111




      111




      New contributor




      xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Ok, I could fix this.



          If you're interested:



          create a new file




          app/code/$yourModule/Catalog/etc/adminhtml/di.xml




          with the following content



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoCatalogControllerAdminhtmlProductInitializationHelperHandlerInterface" type="MagentoCatalogControllerAdminhtmlProductInitializationHelperPluginHandlerComposite" />
          <preference for="MagentoCatalogModelLocatorLocatorInterface" type="MagentoCatalogModelLocatorRegistryLocator"/>
          <virtualType name="MagentoCatalogUiDataProviderProductFormModifierPool" type="MagentoUiDataProviderModifierPool">
          <arguments>
          <argument name="modifiers" xsi:type="array">
          <item name="related" xsi:type="array">
          <item name="class" xsi:type="string">$yourModuleCatalogUiDataProviderProductFormModifierRelated</item>
          <item name="sortOrder" xsi:type="number">110</item>
          </item>
          </argument>
          </arguments>
          </virtualType>




          and copy from vendor the Related.php to




          /app/code/$yourModule/Catalog/Ui/DataProvider/Product/Form/Modifier/Related.php




          and add the pageSize to the config Array in the method getGrid.






          share|improve this answer








          New contributor




          xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.



















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



            );






            xxx is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266871%2fincrease-number-of-shown-related-products-in-the-administration-magento-2%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














            Ok, I could fix this.



            If you're interested:



            create a new file




            app/code/$yourModule/Catalog/etc/adminhtml/di.xml




            with the following content



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
            <preference for="MagentoCatalogControllerAdminhtmlProductInitializationHelperHandlerInterface" type="MagentoCatalogControllerAdminhtmlProductInitializationHelperPluginHandlerComposite" />
            <preference for="MagentoCatalogModelLocatorLocatorInterface" type="MagentoCatalogModelLocatorRegistryLocator"/>
            <virtualType name="MagentoCatalogUiDataProviderProductFormModifierPool" type="MagentoUiDataProviderModifierPool">
            <arguments>
            <argument name="modifiers" xsi:type="array">
            <item name="related" xsi:type="array">
            <item name="class" xsi:type="string">$yourModuleCatalogUiDataProviderProductFormModifierRelated</item>
            <item name="sortOrder" xsi:type="number">110</item>
            </item>
            </argument>
            </arguments>
            </virtualType>




            and copy from vendor the Related.php to




            /app/code/$yourModule/Catalog/Ui/DataProvider/Product/Form/Modifier/Related.php




            and add the pageSize to the config Array in the method getGrid.






            share|improve this answer








            New contributor




            xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
























              0














              Ok, I could fix this.



              If you're interested:



              create a new file




              app/code/$yourModule/Catalog/etc/adminhtml/di.xml




              with the following content



              <?xml version="1.0"?>
              <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
              <preference for="MagentoCatalogControllerAdminhtmlProductInitializationHelperHandlerInterface" type="MagentoCatalogControllerAdminhtmlProductInitializationHelperPluginHandlerComposite" />
              <preference for="MagentoCatalogModelLocatorLocatorInterface" type="MagentoCatalogModelLocatorRegistryLocator"/>
              <virtualType name="MagentoCatalogUiDataProviderProductFormModifierPool" type="MagentoUiDataProviderModifierPool">
              <arguments>
              <argument name="modifiers" xsi:type="array">
              <item name="related" xsi:type="array">
              <item name="class" xsi:type="string">$yourModuleCatalogUiDataProviderProductFormModifierRelated</item>
              <item name="sortOrder" xsi:type="number">110</item>
              </item>
              </argument>
              </arguments>
              </virtualType>




              and copy from vendor the Related.php to




              /app/code/$yourModule/Catalog/Ui/DataProvider/Product/Form/Modifier/Related.php




              and add the pageSize to the config Array in the method getGrid.






              share|improve this answer








              New contributor




              xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                0












                0








                0







                Ok, I could fix this.



                If you're interested:



                create a new file




                app/code/$yourModule/Catalog/etc/adminhtml/di.xml




                with the following content



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
                <preference for="MagentoCatalogControllerAdminhtmlProductInitializationHelperHandlerInterface" type="MagentoCatalogControllerAdminhtmlProductInitializationHelperPluginHandlerComposite" />
                <preference for="MagentoCatalogModelLocatorLocatorInterface" type="MagentoCatalogModelLocatorRegistryLocator"/>
                <virtualType name="MagentoCatalogUiDataProviderProductFormModifierPool" type="MagentoUiDataProviderModifierPool">
                <arguments>
                <argument name="modifiers" xsi:type="array">
                <item name="related" xsi:type="array">
                <item name="class" xsi:type="string">$yourModuleCatalogUiDataProviderProductFormModifierRelated</item>
                <item name="sortOrder" xsi:type="number">110</item>
                </item>
                </argument>
                </arguments>
                </virtualType>




                and copy from vendor the Related.php to




                /app/code/$yourModule/Catalog/Ui/DataProvider/Product/Form/Modifier/Related.php




                and add the pageSize to the config Array in the method getGrid.






                share|improve this answer








                New contributor




                xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                Ok, I could fix this.



                If you're interested:



                create a new file




                app/code/$yourModule/Catalog/etc/adminhtml/di.xml




                with the following content



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
                <preference for="MagentoCatalogControllerAdminhtmlProductInitializationHelperHandlerInterface" type="MagentoCatalogControllerAdminhtmlProductInitializationHelperPluginHandlerComposite" />
                <preference for="MagentoCatalogModelLocatorLocatorInterface" type="MagentoCatalogModelLocatorRegistryLocator"/>
                <virtualType name="MagentoCatalogUiDataProviderProductFormModifierPool" type="MagentoUiDataProviderModifierPool">
                <arguments>
                <argument name="modifiers" xsi:type="array">
                <item name="related" xsi:type="array">
                <item name="class" xsi:type="string">$yourModuleCatalogUiDataProviderProductFormModifierRelated</item>
                <item name="sortOrder" xsi:type="number">110</item>
                </item>
                </argument>
                </arguments>
                </virtualType>




                and copy from vendor the Related.php to




                /app/code/$yourModule/Catalog/Ui/DataProvider/Product/Form/Modifier/Related.php




                and add the pageSize to the config Array in the method getGrid.







                share|improve this answer








                New contributor




                xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 18 hours ago









                xxxxxx

                111




                111




                New contributor




                xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                xxx is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                    xxx is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    xxx is a new contributor. Be nice, and check out our Code of Conduct.












                    xxx is a new contributor. Be nice, and check out our Code of Conduct.











                    xxx is a new contributor. Be nice, and check out our Code of Conduct.














                    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%2f266871%2fincrease-number-of-shown-related-products-in-the-administration-magento-2%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