You can set up the commodity cost components used with commodity classes as codes. You can then assign components to a commodity class, which lets you calculate costs for a commodity class based on its assigned components.
Steps
In the search box, enter Commodity Cost Components, and then choose the related link.