SKU stands for Stock Keeping Unit
Magento 2 uses SKU as a unique identification code in alphanumeric format to track the inventory of the store. SKU is helpful to create orders, shipping, and working with inventory.
The default Magento 2 displays the SKU in the frontend. However, it is unnecessary to display it to visitors.
Any unnecessary details only divert the visitors from the purchase. The non-technical users need not deal with the alphanumeric codes while shopping.
Also, it is only wise to hide SKU from the product page in Magento 2 for virtual products like software, services, support, etc.
A clean product page with only the essential product details and attractive design is the key to conversion. Hence, to overcome the default behavior and remove SKU from product page in Magento 2, follow the below solution:
Method To Remove SKU from Product Page in Magento 2:
Create catalog_product_view.xml file at Vendor/Test/view/frontend/layout
<?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>
That’s all to hide SKU from the product page in Magento 2. You can also, remove SKU column from Magento 2 Invoice PDF
Do share the solution with fellow developers via social media.
Thanks.