PrintaRex Integration for WooCommerce
·
Real-time zone-based shipping rates from PrintaRex for WooCommerce stores.
PrintaRex Integration for WooCommerce connects your store to the PrintaRex fulfillment network, providing accurate per-city, per-item shipping rates at checkout.
Key Features:
- Real-time rates – Shipping costs are calculated based on the customer’s exact city, not just country or state.
- Per-item pricing – Each product is priced individually based on its provider’s shipping zones.
- Zero-configuration setup – Connect your store to PrintaRex, install the plugin, done. The connection, signing secret, and shipping zone are configured automatically.
- Mixed cart support – Non-PrintaRex items are silently ignored; they use your existing WooCommerce shipping zones.
- Fallback rate – If the PrintaRex API is temporarily unavailable, a configurable flat rate is used.
- Caching – Rates are cached for 5 minutes (configurable) to minimize API calls.
- PrintaRex admin page – A dedicated PrintaRex menu in WordPress lets you connect your store, review your setup status, and open your PrintaRex dashboard without leaving WordPress.
Supported Countries:
The plugin provides per-city zone rates for all countries in the PrintaRex network, including UAE and Egypt – even for countries where WooCommerce has no built-in state/province definitions.
External Services
This plugin connects to the PrintaRex API (https://api.printarex.com by default; configurable in the plugin settings) to provide real-time shipping rates. Requests are made in the following scenarios:
- Plugin activation & admin auto-configuration — A GET request is sent to
{api_url}/carrier-service/woocommerce/lookupwith your site domain to retrieve your store connection ID. This runs on activation and is retried periodically from the WordPress admin if the connection ID is missing (with a 1-hour backoff between attempts). Rate requests are signed with the WooCommerce REST API consumer secret that your own store created when connecting to PrintaRex — the plugin reads it locally from your WordPress database and never transmits it. - Checkout rate calculation — A POST request is sent to
{api_url}/carrier-service/woocommerce/{connectionId}/rateseach time a customer enters their shipping address at checkout.
Data transmitted to PrintaRex:
- Your store’s domain (during activation lookup)
- Customer destination city and country code (during rate calculation)
- Cart item WooCommerce product/variation IDs and quantities
- Store currency code
No personal customer data (name, email, phone, payment details, IP address) is transmitted.