How to Hide SKU or Remove SKU numbers on product pages  - eCommerce Thesis

How to Hide SKU or Remove SKU numbers on product pages 

Are you looking for ways to hide SKU or remove SKU numbers on product pages? If yes, you’ve come to the right place! This guide will show you how to hide or remove SKU numbers on your product pages step by step. Whether you’re using WordPress, Shopify, or another platform, we’ll cover various methods to help you achieve this easily. Let’s dive in!

Introduction

SKU (Stock Keeping Unit) numbers are unique identifiers used to track products in inventory. They’re useful for internal management but can be unnecessary or even confusing for customers browsing your online store. If you want to create a cleaner, more streamlined shopping experience, you might consider hiding or removing SKU numbers from your product pages. This guide will help you understand how to hide SKU or remove SKU numbers on product pages across different platforms.

Why Hide or Remove SKU Numbers?

Before we get into the how-to, let’s briefly discuss why you might want to hide or remove SKU numbers:

  • Customer Experience: Simplifies the product page and makes it more user-friendly.
  • Aesthetics: Creates a cleaner look without unnecessary information.
  • Security: Prevents competitors from seeing your SKU structure and using it against you.

Hiding or Removing SKU Numbers on Different Platforms

1. WordPress (WooCommerce)

WooCommerce is a popular e-commerce plugin for WordPress. Here’s how you can hide SKU numbers on product pages in WooCommerce.

Using CSS

One of the simplest ways to hide SKU numbers is by using CSS. Follow these steps:

  1. Login to your WordPress Dashboard.
  2. Navigate to Appearance > Customize.
  3. Click on Additional CSS.
  4. Add the following CSS code:cssCopy code.sku_wrapper { display: none !important; }
  5. Publish the changes.

This CSS code hides the SKU section on your product pages.

Using a Plugin

You can also use a plugin to hide SKUs. Here’s how:

  1. Install and activate the Code Snippets plugin.
  2. Navigate to Snippets > Add New.
  3. Add the following code snippet:phpCopy codeadd_filter( 'wc_product_sku_enabled', '__return_false' );
  4. Save and activate the snippet.

This code snippet disables the SKU display on product pages.

2. Shopify

If you’re using Shopify, you can hide SKU numbers by editing your theme’s code.

Editing Theme Code

  1. Login to your Shopify Admin.
  2. Go to Online Store > Themes.
  3. Click on Actions > Edit Code.
  4. In the Sections folder, find and click on product-template.liquid.
  5. Look for the SKU code, which usually looks something like this:liquidCopy code<span class="sku">SKU: {{ product.sku }}</span>
  6. Comment out the SKU code by wrapping it in comment tags:liquidCopy code{% comment %} <span class="sku">SKU: {{ product.sku }}</span> {% endcomment %}
  7. Save the changes.

This will hide the SKU number from your product pages.

3. Magento

For Magento users, hiding SKU numbers involves editing layout files or using CSS.

Editing Layout Files

  1. Login to your Magento Admin.
  2. Navigate to Content > Design > Configuration.
  3. Select the theme you want to edit and click Edit.
  4. Go to the Layout Update XML section and add the following code:xmlCopy code<referenceBlock name="product.info.sku" remove="true" />
  5. Save the changes.

Using CSS

Alternatively, you can use CSS to hide the SKU number:

  1. Navigate to Content > Design > Configuration.
  2. Select the theme and click Edit.
  3. Go to the HTML Head section and add the following CSS in the Scripts and Style Sheets field:cssCopy code.product .sku { display: none; }
  4. Save the changes.

4. BigCommerce

BigCommerce users can hide SKU numbers by editing the product template files.

  1. Login to your BigCommerce Admin.
  2. Navigate to Storefront > Script Manager.
  3. Click on Create a Script.
  4. Select Footer for the Script Location and add the following JavaScript:
    javascriptCopy codedocument.addEventListener("DOMContentLoaded", function() { var skuElement = document.querySelector('.productView-info .productView-sku'); if (skuElement) { skuElement.style.display = 'none'; } });
  5. Save and publish the script.

This script hides the SKU number on your product pages.

5. PrestaShop

For PrestaShop users, you can hide SKU numbers by editing the template files or using CSS.

Editing Template Files

  1. Login to your PrestaShop Admin.
  2. Navigate to Design > Theme & Logo.
  3. Click on Advanced Customization > Edit Templates.
  4. In the product.tpl file, find the SKU code and comment it out:tplCopy code{* <span class="product-reference">Reference: {$product->reference}</span> *}
  5. Save the changes.

Using CSS

You can also use CSS to hide the SKU:

  1. Navigate to Design > Theme & Logo.
  2. Click on Advanced Customization > Edit CSS/JS Files.
  3. Add the following CSS:cssCopy code.product .product-reference { display: none; }
  4. Save the changes.

Conclusion

Hiding or removing SKU numbers on product pages can enhance the customer experience, improve the aesthetic of your site, and protect your business information. Whether you’re using WooCommerce, Shopify, Magento, BigCommerce, or PrestaShop, this guide provides easy-to-follow steps to help you achieve a cleaner and more user-friendly product page.

By following the methods outlined in this guide, you can hide SKU or remove SKU numbers on your product pages, ensuring a more streamlined and professional-looking online store. If you encounter any issues or need further assistance, don’t hesitate to reach out to your platform’s support team or community forums for help.