WooCommerce is the best eCommerce platform for WordPress and it comes with great benefits. One of these benefits is the WooCommerce SKU label. This SKU label will help you a lot in tracking your inventory.
But sometimes you might need to change the label ‘SKU to ISBN’ or to something else. There is a lot of solutions from which some may work and some not. Therefore today I am here to show you how to change WooCommerce SKU label easily.
I will show you it in two different ways 1. With a plugin, 2. Without a plugin. Before digging in let’s know some details about the WooCommerce SKU label first.
What Is SKU Label In WooCommerce
The full abbreviation of SKU is the ‘Stock keep unit’. It is an alphanumeric unique identification that is scannable. If you own a WooCommerce store then SKU will help you to track products for inventory purposes.
You can use SKU in multiple ways like units of repair time, services, warranties, etc. Moreover, it allows you to see which products need reordering and provide sales data. You can learn more about WooCommerce SKU benefits from here.
How To Change SKU Label On WooCommerce With Plugin
If you have no idea to change the Woocommerce SKU label then it is recommended to follow this procedure as it is very simple. All you have to do is install a plugin and you are good to go.
At first download and install ‘SKU Label Changer For WooCommerce’ plugin from the WordPress repository.
Go to Settings -> General and scroll very below. You will find a textbox ‘WooCommmerce SKU Label.
Place your desired text(e.g. ISBN) and hit the ‘Save Changes’ button. Your WooCommerce SKU label is now changed.
How To Change SKU Label On Woocommerce Without Plugin
If you don’t want to use any plugin, you can do this by modifying some codes. Don’t worry I will not tell you to write any line on codes.
All you have to do is add the following code to your theme functions.php file and your WooCommerce SKU label will be changed to Product Code.
First copy the following code:
function wcsku_label_change ($sku_label, $text, $doamin) {
$wcsku_value = 'ISBN';
if($domain = 'woocommerce') {
switch ($sku_label) {
case 'SKU':
$sku_label = $wcsku_value;
break;
case 'SKU:':
$sku_label = $wcsku_value.":";
break;
}
return $sku_label;
}
}
add_filter('gettext', 'wcsku_label_change', 20, 3);
Now go to Appearance -> Theme Editor. From the right sidebar click on ‘Theme Functions’(function.php) and paste the above code. On the second line of code, you can change the ‘ISBN’ to your preferred label. (I have used ‘ISBN’ because I want to show it in place of ‘SKU’).
Finally, don’t forget to update the file.
Last Words
I hope you have successfully changed your WooCommerce SKU label from ‘SKU to ISBN’ or whatever you prefer. If need any help feel free to ask. Let me know your thought through the comment box below.