This prevents end users getting confused when they see one product code on the detail page, but another after they select variants and add the product to cart.
A new option has been added to the Product Field widget (Hide Product Code for Master Product?). When the widget is set to display the Product Code, and the product is a master (i.e. has variants / child products), this option hides the product code.
Overview
Content Tools
Activity