Remove SKU only for grouped products

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





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







up vote
3
down vote

favorite












How can I remove the sku only for grouped products? Since a grouped product is composed of many simple products, I do not need the grouped product sku to display. How can I remove this only for the grouped product?







share|improve this question


























    up vote
    3
    down vote

    favorite












    How can I remove the sku only for grouped products? Since a grouped product is composed of many simple products, I do not need the grouped product sku to display. How can I remove this only for the grouped product?







    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      How can I remove the sku only for grouped products? Since a grouped product is composed of many simple products, I do not need the grouped product sku to display. How can I remove this only for the grouped product?







      share|improve this question












      How can I remove the sku only for grouped products? Since a grouped product is composed of many simple products, I do not need the grouped product sku to display. How can I remove this only for the grouped product?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 10 at 15:33









      Will Cousin

      548




      548




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          Create catalog_product_view_type_grouped.xml under your module like below path:




          app/code/Vendor/Module/view/frontend/layout/catalog_product_view_type_grouped.xml




          OR



          create under




          app/design/frontend/Vendor/Module/Magento_Catalog/layout/catalog_product_view_type_grouped.xml




          And add the below code to it:



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="product.info.sku" remove="true"/>
          </body>
          </page>





          share|improve this answer




















          • This worked! I already had that file so I just added the following code before the </body> tag: <referenceBlock name="product.info.sku" remove="true"/>
            – Will Cousin
            Aug 10 at 15:49











          • Great! Happy Coding.
            – Sukumar Gorai
            Aug 10 at 15:50










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f238003%2fremove-sku-only-for-grouped-products%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote



          accepted










          Create catalog_product_view_type_grouped.xml under your module like below path:




          app/code/Vendor/Module/view/frontend/layout/catalog_product_view_type_grouped.xml




          OR



          create under




          app/design/frontend/Vendor/Module/Magento_Catalog/layout/catalog_product_view_type_grouped.xml




          And add the below code to it:



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="product.info.sku" remove="true"/>
          </body>
          </page>





          share|improve this answer




















          • This worked! I already had that file so I just added the following code before the </body> tag: <referenceBlock name="product.info.sku" remove="true"/>
            – Will Cousin
            Aug 10 at 15:49











          • Great! Happy Coding.
            – Sukumar Gorai
            Aug 10 at 15:50














          up vote
          4
          down vote



          accepted










          Create catalog_product_view_type_grouped.xml under your module like below path:




          app/code/Vendor/Module/view/frontend/layout/catalog_product_view_type_grouped.xml




          OR



          create under




          app/design/frontend/Vendor/Module/Magento_Catalog/layout/catalog_product_view_type_grouped.xml




          And add the below code to it:



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="product.info.sku" remove="true"/>
          </body>
          </page>





          share|improve this answer




















          • This worked! I already had that file so I just added the following code before the </body> tag: <referenceBlock name="product.info.sku" remove="true"/>
            – Will Cousin
            Aug 10 at 15:49











          • Great! Happy Coding.
            – Sukumar Gorai
            Aug 10 at 15:50












          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          Create catalog_product_view_type_grouped.xml under your module like below path:




          app/code/Vendor/Module/view/frontend/layout/catalog_product_view_type_grouped.xml




          OR



          create under




          app/design/frontend/Vendor/Module/Magento_Catalog/layout/catalog_product_view_type_grouped.xml




          And add the below code to it:



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="product.info.sku" remove="true"/>
          </body>
          </page>





          share|improve this answer












          Create catalog_product_view_type_grouped.xml under your module like below path:




          app/code/Vendor/Module/view/frontend/layout/catalog_product_view_type_grouped.xml




          OR



          create under




          app/design/frontend/Vendor/Module/Magento_Catalog/layout/catalog_product_view_type_grouped.xml




          And add the below code to it:



          <?xml version="1.0"?>
          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="product.info.sku" remove="true"/>
          </body>
          </page>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 10 at 15:40









          Sukumar Gorai

          3,3471422




          3,3471422











          • This worked! I already had that file so I just added the following code before the </body> tag: <referenceBlock name="product.info.sku" remove="true"/>
            – Will Cousin
            Aug 10 at 15:49











          • Great! Happy Coding.
            – Sukumar Gorai
            Aug 10 at 15:50
















          • This worked! I already had that file so I just added the following code before the </body> tag: <referenceBlock name="product.info.sku" remove="true"/>
            – Will Cousin
            Aug 10 at 15:49











          • Great! Happy Coding.
            – Sukumar Gorai
            Aug 10 at 15:50















          This worked! I already had that file so I just added the following code before the </body> tag: <referenceBlock name="product.info.sku" remove="true"/>
          – Will Cousin
          Aug 10 at 15:49





          This worked! I already had that file so I just added the following code before the </body> tag: <referenceBlock name="product.info.sku" remove="true"/>
          – Will Cousin
          Aug 10 at 15:49













          Great! Happy Coding.
          – Sukumar Gorai
          Aug 10 at 15:50




          Great! Happy Coding.
          – Sukumar Gorai
          Aug 10 at 15:50












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f238003%2fremove-sku-only-for-grouped-products%23new-answer', 'question_page');

          );

          Post as a guest