6 Access SKU Properties through Widgets

In addition to SKU properties that are defined out the box, Commerce provides the ability to add custom properties to SKUs, for example, a UPC code.

Custom properties for SKUs are defined in the administration interface. They can be defined at the Base Product level, in which case all SKUs will have them, or as part of a custom product type, in which case only SKUs that are children of that product type will have them. The values for the custom properties can then be set for any given SKU. You can display out-of-the-box and custom SKU properties on your product details pages or on any page where products/SKUs are displayed, using the APIs described in this section.