Adding extra cost to woocommerce flat rate based on shipping zone
To adjust the WooCommerce code so it adds an extra specific amount based on the shipping zone, you can modify the existing function to include shipping zone-based costs. Here’s a streamlined version of the code: add_filter( ‘woocommerce_package_rates’, ‘add_cost_based_on_zone_and_quantity’, 10, 2 ); function add_cost_based_on_zone_and_quantity( $rates, $package ) { $shipping_class = “very-light-weight”; // Define the shipping class … Read more