Pre Black Friday Sale. 20% OFF on all products. Coupon code: fme20off
Magento 2: How to Remove SKU from Product Page?
Even a small eCommerce store has hundreds of products on offer, making it impossible for the store admin to memorise each product by heart. This is where the SKU comes into play. If you are associated with the eCommerce field, you are already well-aware of the term since it is widely used. After all, when listing a product in your Magento 2 store, SKU is one of the mandatory fields.
For those of you who don’t know, SKU stands for Stock Keeping Unit. It’s a unique alphanumeric code for every product in the store which is used to internally track the inventory and sales. In other words, every product has a unique SKU whose purpose is to distinguish different product variations such as size, colour, or any other attribute. The SKUs are important for several reasons, including inventory management.
SKUs are for store managers to search and identify stock from lists, invoices, or order forms. Customers don’t have to do anything with an SKU. Therefore, it’s unnecessary to display it to visitors on the frontend. Since product pages are supposed to be as relevant as possible, it is wise to remove SKU from the product page in Magento 2. The last thing you want is the customer leaving the site to search for SKU.
To avoid diverting the user’s attention and ensuring they complete the purchase, we recommend removing the SKU altogether. On top of it, it only takes a minute to remove SKU. In this article, we are going to guide you about removing Magento SKU from the product page. Meanwhile, we also recommend that you check our tutorial on how to load products by SKU.
How To Remove SKU From Product Page in Magento 2?
To do this, create catalog_product_view.xml at
app\design\frontend\VENDOR\THEME\Magento_Catalog\layout
Note: Please confirm the above path for your store before implementing the code.
And paste the following code in the file.
<?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 simple code will remove SKU from product page in Magento 2.
Conclusion
Try this and if you encounter any issues, our Magento support team will be happy to help.
Related Articles:This blog was created with FME's SEO-friendly blog