Sku number below the price with text: Item No:

This topic has 2 replies, 2 voices, and was last updated 5 years, 1 months ago ago by Rose Tyler

  • Avatar: Eduard
    Eduard
    Participant
    March 20, 2019 at 22:07

    good evening how can i add sku number below the price, as in this picture?
    https://prntscr.com/n0ox24

    thank you

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 21, 2019 at 06:51

    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.