Progressive cart item fee based on state and on product category in Woocommerce
问题 Recently I tryied to use 2 sniped codes in one for this Woocommerce project where I need to set a fee for a specific product category (term ID: 19) and and a specific country state (Florida 'FL') Additionally I should need to multiply this fee rate by the items from this product category (19). This is my actual code: add_action('woocommerce_cart_calculate_fees','woocommerce_custom_surcharge'); function woocommerce_custom_surcharge() { $category_ID = '19'; global $woocommerce; if ( is_admin()