WooCommerce – Add an additional fee based on State

Below code snippet will help to add an additional charge based on state.
The example given is specific to the state Maharastra (India).
This snippet will add an additional charge of amount 10 to the order if the specified state is chosen.
Value of the variable $state and the text ‘Additional Charge’ could be changed as per your business case.

Screenshot – Additional Charge on Checkout Page

Additional Charge - WooCommerce

Leave a Reply