We have a online woocommerce store that processes two types of orders: shipping and instore pickup. Shipping calculates taxes based on billing address and instore uses the store address (zip).
The store has a pos system (not wordpress) which receives the orders, the store can edit them on customer request, then uses the woocommerce REST API to edit/update the orders on the original website. Everything works fine in the process except that when the order is updated via API, it seems to ignore the hook and uses the customers billing address to recalculate taxes.
You can pass a tax class, but not a tax rate via the API. Docs Here: https://woocommerce.github.io/woocommerce-rest-api-docs/#order-properties
My current solution is awful, It sets the customer’s billing address zip:
My first time posting a question, so any advice or pointers are welcome.
- zvelo Releases API for Ultimate Precision in Page-Level Web Content Classification and Malicious Detection
- Tailor Your Website Perfectly With Userstack’s User-Agent API
- Runkeeper, Strava, or Garmin? Pick One & Sync with the Rest
- Put iOS Notifications To Work For You With These Apps
- 9 Visual Studio Code Extensions That Make Programming Even Easier
- What is Node.JS and Why Should I Care? [Web Development]
- The 8 Best Media Server Software Options for Linux
- What Is Low-Code and How Does It Work?
- The Best WordPress Plugins
- Microsoft .NET Framework: Why You Need It and How to Install It on Windows