• Resolved mikekustom

    (@mikekustom)


    Hey everyone,

    I’m trying to figure out how to hide the SKU on a product page until the user selects a variation. I don’t want them to see the parent product’s SKU, only the final product’s SKU once a variation is selected.

    I can’t just remove the parent SKU because I’m using it to update the products. ??

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mikekustom

    If you leave the SKU for the parent product empty, the product page will show?SKU: N/A. If this option would not work for you, then it’s required custom code to hide the parent SKU.

    With regard to the product SKU numbers, these update using JavaScript. You’ll notice that the main parent SKU is dynamically replaced by specific variations SKU when that variation is selected.

    These forums are meant for general support with the core functionality of WooCommerce itself. What you want to achieve is a bit complex and would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    – WooCommerce Developer Resources Portal
    – WooCommerce Advanced Facebook group
    – WooCommerce Community Forum
    – WooCommerce Developer Slack Channel.
    – Hire a WooCommerce Expert

    Thanks!

    Thread Starter mikekustom

    (@mikekustom)

    Thanks @amiralifarooq!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SKU in variation only’ is closed to new replies.