php – Woocommerce Hide Parent SKU but not Simple or Variants

Questions:

My clients parent products contain data however are not to be sold. I simply need to hide the parent sku on the PDP page. For example:

  1. When first loading the PDP page and a variant is not yet selected or
  2. When a user deselects variant options

Simple SKUs and Variant SKUs should show.

How to&Answers:

Leave a Reply

Your email address will not be published. Required fields are marked *