• Resolved fiotty0

    (@fiotty0)


    Hi everybody,

    I’m currently searching to hide the SKU of a product, inside a product page, when variation are not selected by user.

    I don’t want that user see the SKU for parents product, but only for the final product (variation product with its own SKU).

    Thank you for you help!

    fiotty0

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Niels Lange

    (@nielslange)

    Hello @fiotty0 ??

    I don’t want that user see the SKU for parents product, but only for the final product (variation product with its own SKU).

    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, you could perhaps contact one of the recommended WooExperts to see if they can help assist you with something like this.

    • This reply was modified 4 years, 5 months ago by Niels Lange.
    Thread Starter fiotty0

    (@fiotty0)

    Hi Niels,

    I need parent’s SKU in the backend, to update my products.
    My idea is to apply a filter inside the SQL request which displays the SKU, or maybe a javascript script which hide the parent’s SKU ?

    Thanks for the link, i’ll try to contact WooExperts if i don’t find any solution.

    fiotty0

    • This reply was modified 4 years, 5 months ago by fiotty0.
    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @fiotty0,

    With regards 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.

    To change that would require some custom development work to be carried out and Codeable maybe your best option to get some assistance with that.

    Thread Starter fiotty0

    (@fiotty0)

    Yes, i totally agree.

    When product page is loaded, there is no variation choosed by the customer, the SKU displayed is the parent’s SKU.

    My idea is to hide SKU when the page is loaded (without any interaction), and display the SKU only when the variation is selected.

    I think there is only a rule to add inside the request made by woocommerce inside the product page.

    BTW, if you know a JS code able to do stuff like that, i’ll try it.

    Thanks again for your help.

    fiotty0

    Plugin Contributor Niels Lange

    (@nielslange)

    Hello @fiotty0

    My idea is to hide SKU when the page is loaded (without any interaction), and display the SKU only when the variation is selected.

    The problem is that if a customer chooses a variation and then unselect the variation, the SKU of the parent product would become visible again. As @stuartduff mentioned, you’ll need some custom code to address this issue. While we do not offer custom code, you could contact one of our recommended developers.

    Thread Starter fiotty0

    (@fiotty0)

    Hi,

    Thanks for all, i founded a dev who created a custom code for my company.

    You can close this topic.

    fiotty0

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide SKU for parent product’ is closed to new replies.