WooCommerce: Flat Rate Calculation Based on Weight (Without a Plugin!)