Remove SKU only for grouped products

Clash 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?
magento2 grouped-products
add a comment |Â
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?
magento2 grouped-products
add a comment |Â
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?
magento2 grouped-products
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?
magento2 grouped-products
asked Aug 10 at 15:33
Will Cousin
548
548
add a comment |Â
add a comment |Â
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>
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
add a comment |Â
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>
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
add a comment |Â
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>
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
add a comment |Â
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>
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>
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
add a comment |Â
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
add a comment |Â
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
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
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
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
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