Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created May 8, 2024 13:41
Show Gist options
  • Save braddalton/dc8f61ada454733201ab939722530640 to your computer and use it in GitHub Desktop.
Save braddalton/dc8f61ada454733201ab939722530640 to your computer and use it in GitHub Desktop.
Extra Fee Based on Billing Country At Checkout in WooCommerce https://wpsites.net/?p=115829
// Define the targeted countries and the corresponding fee
$target_countries = array(
'US' => 10, // Add $10 fee for customers from the United States
'CA' => 15, // Add $15 fee for customers from Canada
// Add more countries and fees as needed
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment