Bijak

Description

Bijak Smart Freight integrates directly with WooCommerce to enable nationwide freight shipping across Iran.
It allows store owners to automatically calculate delivery costs, choose between prepaid and postpaid shipping, and register shipments in Bijak’s logistics system.

Main Features:

  • Adds a new shipping method for Bijak Freight
  • Supports both Prepaid and Postpaid (Cash on Delivery) modes
  • Fetches live shipping rates from the Bijak API
  • Supports Door-to-door delivery or Pickup at freight terminal
  • Provides secure map-based destination selection for door-to-door delivery
  • Automatically registers orders in Bijak after WooCommerce checkout
  • Displays shipment tracking status and code in both user and admin panels

Developer configuration

Integration endpoints are centralized in includes/class-config.php. Update Config::MAP_PICKER_URL there when deploying the location picker; it is intentionally not exposed as a merchant setting.

The plugin requests a short-lived picker authorization from the Bijak API server-side. The API Key is never placed in JavaScript, the iframe, or the browser URL. Revoking the key invalidates new picker sessions and location saves.

External Services

This plugin connects to the Bijak Smart Freight API to calculate shipping rates and register orders.

What data is sent
– Origin and destination city IDs
– Product dimensions (length, width, height, weight)
– Customer’s contact data for shipment registration

When data is sent
– During checkout (for rate estimation)
– When an order is created (for shipment registration)

Service Provider
– Bijak (https://bijak.ir)
– Terms of Service: https://bijak.ir/privacy-policy/
– Privacy Policy: https://bijak.ir/privacy-policy/

Installation

  1. Download and upload the bijak folder to /wp-content/plugins/
  2. Activate the plugin through Plugins Installed Plugins
  3. Go to Bijak Settings under the WordPress admin menu
  4. Enter your API Key obtained from your Bijak account
  5. Configure the Origin city and other settings
  6. In WooCommerce Shipping Zones, enable the method Bijak Shipping

FAQ

Do I need a Bijak account?

Yes. You need an active Bijak account to obtain an API key.

How are shipping costs calculated?

The plugin requests real-time rate estimates from the Bijak API based on product weight, size, and destination.

Can I use this plugin alongside other shipping methods?

Yes. It registers as a new WooCommerce shipping method, and you can keep other methods active.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Bijak” is open source software. The following people have contributed to this plugin.

Contributors

“Bijak” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Bijak” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.3.7

  • Added server-side Bijak API authorization for location-picker sessions.
  • Picker grants are short-lived and revalidated before saving coordinates; revoked API keys are rejected.

1.3.6

  • Show destination options as province followed by city.
  • Pre-fill the opened destination search with the checkout province and city.

1.3.5

  • Match Persian city spelling variants and multi-part city names more reliably.
  • Require the checkout province when resolving duplicate city names.

1.3.4

  • Send checkout address fields to Bijak when registering a door-to-door order.
  • Limit location-picker data to the selected latitude and longitude.

1.3.3

  • Fixed the location-picker loading message remaining visible after the iframe loads.
  • Delegated browser geolocation permission to the secure location-picker iframe.
  • Corrected the map center pin direction.

1.3.2

  • Match the standard WooCommerce billing/shipping city and province against Bijak destinations.
  • Prompt customers to choose a Bijak city when their checkout city is unavailable.

1.3.1

  • Show the destination province beside each city and open the picker at the city’s API coordinates when available.
  • Fall back to searching by city and province when city coordinates are unavailable.

1.3.0

  • Removed the location-picker URL from merchant settings.
  • Centralized API, picker, panel URLs, timeout, and picker security values in includes/class-config.php.

1.2.5

  • Fixed loading of the bundled Persian translation catalogue.

1.2.4

  • Load the bundled Persian translations for checkout and location-picker text.

1.2.3

  • Fixed the location-picker loading state after the iframe has loaded.

1.2.2

  • Fixed destination city option values so WooCommerce receives the selected Bijak city ID

1.2.1

  • Fixed checkout fragment handling so the selected destination city and door-delivery state are read from the active Bijak checkout box

1.2.0

  • Added a secure map-based destination picker for door-to-door delivery
  • Added session-backed destination coordinates to rate estimates, checkout validation, order metadata, and Bijak order submission
  • Added destination-location invalidation when the customer changes the destination city

1.1.0

  • Added origin city selection in plugin settings and checkout flow improvements for destination handling
  • Updated Bijak API integrations to newer endpoints for order status retrieval and related requests
  • Fixed multiple checkout and shipping-rate refresh bugs for more reliable rate calculation

1.0.1

  • Added WooCommerce HPOS compatibility declaration and order-meta handling through WC_Order APIs
  • Added support for HPOS order editor metabox
  • Replaced PHP 8-only syntax so plugin stays compatible with PHP 7.4+
  • Updated compatibility metadata for latest WordPress and WooCommerce releases

1.0.0

  • Initial public release
  • Integration with Bijak API for real-time rate estimation
  • Automatic order registration with Bijak
  • Shipment status display for users and admins