Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #853778

    Hello,

    Can you tell me how can I hide woocommerce SKU from product page? But that I can see in background and in order mails.

    Thank you

    #853788

    Morning,

    You can use the following to hide SKUs on a product page but keep them in the admin panel

    function tj_remove_product_page_sku( $enabled ) {
        if ( ! is_admin() && is_product() ) {
            return false;
        }
    
        return $enabled;
    }
    add_filter( 'wc_product_sku_enabled', 'tj_remove_product_page_sku' );

    Code should be placed in your theme / child functons.php

    Hope that helps

    TJ

    #853827

    Hello,
    It is not help , It is crash site.

    #853845

    Ah that is not good.

    Crashed as in site now wont load? can you post a link to site here?

    Can you access the ftp to remove the code from the functions.php?

    If you are unsure how to proceed leave your ftp / login details in the private content field below and an admin from here will be able to log in and help.

    Thanks

    TJ

    #854253

    Hi Zaccc,

    If you should need help in getting your site back online then please post FTP details in private.

    Thanks for helping out TJ :-)

    Best regards,
    Rikard

    #854261

    Hello,

    I have return all back . I just need help with SKU.

    Regards

    #854479

    Hi,

    Add this to quick css:

    .sku_wrapper{
    display:none!important;
    }

    Best regards,
    Jordan Shannon

    #854878

    Thank you ! It is working.

    Regards

    #854978

    Hi,

    No problem. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Hide SKU’ is closed to new replies.