Add a global price per 1 gram of Gold, Silver, and Platinum and then use the weight of each product to automatically calculate its price based on this …