How to Display/Show WooCommerce SKU Number After Title In Product Category Pages

WooCommerce product Stock Keeping Unit (SKU) is unique identification against a product in your stock, Wordpress WooCommerce website in show product sku number on all product category pages without using any wordpress plugin.
You can used this custom code for show/display sku number after title in WooCommerce product categories pages.

WooCommerce Product sku number Show After Title All Product Category Pages

Always use child theme any wordpress website and copy below custom code and add this code in your function.php.

add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_after_shop_loop_item_sku_in_cart', 20, 1);
function woocommerce_after_shop_loop_item_sku_in_cart( $template ) {
global $product;
$sku = $product->get_sku();
echo "<p style='color: #444;'>" ."SKU Number:&nbsp; " . $sku . "</p>"; }

Post a Comment

0 Comments