Created
May 8, 2024 13:41
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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