WooCommerce Shipping External Fetch
Shipping Plugin for WooCommerce fetching the shipping rates as JSON from an external microservice
by Michael Franzl · github.com/michaelfranzl/woocommerce-shipping-external-fetch · website
★ 12stars
7forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/michaelfranzl/woocommerce-shipping-external-fetch/archive/refs/heads/master.zipFrom the readme
woocommerce-shipping-external-fetch
Shipping Plugin for WooCommerce which HTTP PUTs the cart contents in JSON format to an
external web service specified by protocol/host/port/URI, and receives the
calculated shipping offer (costs, labels etc.) as JSON from that webservice.
Useful when the shipping calculation complexity exceeds the capabilities of other
shipping calculation plugins.
The external shipping calculation application is, of course, business specific and
thus not included in this repository. However, an example of a JSON request and
reponse is shown below.
When the webservice is not reachable, not responsive, or returns HTTP status codes
other than 200 (i.e. when it experiences a server error), this plugin offers
shipping for a configurable fallback cost,
since technical problems should not prevent a customer from completing an order.
This plugin supports WooCommerce shipping zones. So, in theory you could have
different web services dedicated to different shipping zones.
To add the plugin to an existing shipping zone:
1. Go to WooCommerce - Settings - Shipping
2. Click on "Manage shipping methods" below a Zone
3. Click "Add shipping method" button
4. Select "Exte