• Resolved petros91

    (@petros91)


    Is there any way to hide product code each every product? The one that is used for inventory.
    I don’t have anything written in that but since I made some products into “Variable Products” it showed something there and I can’t delete it.So I want this to be gone.
    How can I do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support fevered – a11n

    (@fevered)

    Hey there!

    Can you provide a link to where the product code you are seeing is? Just so I can be sure what it is you’d like to remove

    Thread Starter petros91

    (@petros91)

    The SKU was what I was looking to hide after all.
    Because my default language is not english I couldn’t find the solution at first.
    Thanks. I found how to hide it.

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @petros91 Ah, that makes sense! Thank you for elaborating, and I’m glad you found a solution.

    If you don’t mind, can you share what that solution is here? That way, other users might benefit from that knowledge in the future.

    I’m going to mark this thread as solved now.

    Thread Starter petros91

    (@petros91)

    I downloaded Code Snippets plugin and put this snippet

    function sv_remove_product_page_skus( $enabled ) {
    if ( ! is_admin() && is_product() ) {
    return false;
    }

    return $enabled;
    }
    add_filter( ‘wc_product_sku_enabled’, ‘sv_remove_product_page_skus’ );

    Is it the right way to do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide product code’ is closed to new replies.