Comments (1)
You can see how WooCommerce tries to get the geolocated state/country here: https://github.com/woocommerce/woocommerce/blob/fd2c67683765df96dd71e0dbcb60d3e9063d6f20/includes/wc-core-functions.php#L1021
You can use this same method to attempt and get a location. Then conditionally add fees.
This isn't something that would fit into this extension very well though right now I'm afraid, so will require some custom work.
from woocommerce-product-fees.
Related Issues (20)
- Feature Request: Fee structure per product category HOT 1
- How to remove charges from the cart total HOT 3
- Taxes only calculating on the fee. HOT 7
- fees disappear on the checkout page HOT 1
- Automatically add fee on admin order page HOT 2
- Feature Request: Multiple Fees
- 0,00 numbers not working HOT 3
- Default product fee HOT 1
- bulk edit product fees HOT 1
- Feature Request: Apply coupon discounts to fees
- Feature request:display a products setup fee in the cart, next to the product HOT 1
- Works but not fully under WooCommerce Subscriptions
- Add a setting to calculate shipping after the fee is added HOT 1
- doesnt work with wp import all. HOT 1
- fluxstore app API does fetch amount from the website
- Seems like the plugin interferes with ajax add to cart
- Decimals HOT 9
- set fees to a fixed amount + a percentage of the product price HOT 3
- Automatic add fees when create order in BO HOT 3
- Test and Update Support Status?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from woocommerce-product-fees.