This topic has 2 replies, 2 voices, and was last updated 5 years, 8 months ago ago by Rose Tyler
good evening how can i add sku number below the price, as in this picture?
https://prntscr.com/n0ox24
thank you
Hello,
This requests additional customization in files. Please read this article https://businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/
You can add this code in functions.php of your child-theme:
function custom_shop_display_skus() {
global $product;
if ( $product->get_sku() ) {
echo '<div class="product-meta">SKU: ' . $product->get_sku() . '</div>';
}
}
add_action( 'woocommerce_after_shop_loop_item', 'custom_shop_display_skus', 9 );
Regards
You must be logged in to reply to this topic.Log in/Sign up