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 …
Adds Gold Price to WooCommerce plugin, tested up to WooCommerce 4.0