Gravity9 Studios Shipping Rules for Shiprocket

Description

Gravity9 Studios Shipping Rules for Shiprocket can use Shiprocket’s courier serviceability API to obtain a live courier rate and apply a configurable WooCommerce shipping rule.

Default rule:

  • Shiprocket rate up to and including ₹200: Free shipping
  • Shiprocket rate above ₹200: ₹100 shipping
  • If Shiprocket cannot return a usable rate: Free shipping by default

The plugin is intended for stores that accept orders first and manually decide how shipments are fulfilled later.

It does not create Shiprocket shipments, AWBs, pickups, courier assignments, or tracking requests.

Features

  • Server-side Shiprocket courier-rate lookup.
  • Uses the lowest usable returned courier rate for threshold evaluation.
  • Configurable threshold and customer-facing charges.
  • Non-blocking fallback; Shiprocket failures do not block checkout.
  • Short request timeout and transient caching to reduce repeated remote requests.
  • Duplicate-request lock to reduce concurrent Shiprocket API calls.
  • Optional use of WooCommerce package dimensions.
  • Optional shipping tax handling.
  • Optional hiding of the official Shiprocket product-page Check Pincode widget.
  • Server-side credentials and bearer tokens.
  • No telemetry, analytics, advertising, tracking pixels, remote activation, or unrelated third-party requests.
  • Compatible with WooCommerce shipping zones.
  • Can coexist with the official Shiprocket WooCommerce plugin used for order synchronization.

Third-Party Service: Shiprocket

When live lookup is enabled, the plugin contacts Shiprocket’s API for authentication and courier serviceability/rate information.

The rate lookup may send pickup PIN, delivery PIN, shipment weight, available package dimensions, COD/prepaid state, and declared shipment value.

The plugin does not send customer name, email address, phone number, street address, product images, product descriptions, or order history for the rate lookup.

All API communication is server-side over HTTPS.

Shiprocket:
https://www.shiprocket.in/

Shiprocket privacy policy:
https://www.shiprocket.in/privacy-policy/

Using the Official Shiprocket WooCommerce Plugin

The official Shiprocket plugin may remain installed for WooCommerce-to-Shiprocket order synchronization.

This plugin does not replace the channel connection. It only supplies the customer-facing shipping rate.

Keep the official WooCommerce channel connection active for order synchronization.

Security

For stronger credential isolation, define these in wp-config.php:

define( ‘GRAVITY9_STUDIOS_SHIPPING_RULES_FOR_SHIPROCKET_API_EMAIL’, ‘api-user@example.com’ );
define( ‘GRAVITY9_STUDIOS_SHIPPING_RULES_FOR_SHIPROCKET_API_PASSWORD’, ‘api-password’ );

Those constants take precedence over credentials stored in the plugin settings.

The legacy GR9SR_API_EMAIL and GR9SR_API_PASSWORD constants remain supported for existing installations.

The plugin uses WordPress’s safe HTTP API with TLS verification for Shiprocket requests.

The plugin does not expose the Shiprocket password or bearer token to the browser.

Installation

  1. Install and activate WooCommerce.
  2. Upload and activate Gravity9 Studios Shipping Rules for Shiprocket.
  3. Go to WooCommerce > Gravity9 Studios Shipping Rules for Shiprocket.
  4. Enter a Shiprocket API user email and password, or define GRAVITY9_STUDIOS_SHIPPING_RULES_FOR_SHIPROCKET_API_EMAIL and GRAVITY9_STUDIOS_SHIPPING_RULES_FOR_SHIPROCKET_API_PASSWORD in wp-config.php.
  5. Set the Shiprocket pickup PIN.
  6. Set the threshold and customer-facing charges.
  7. Add Gravity9 Studios Shipping Rules for Shiprocket to the appropriate WooCommerce shipping zone.
  8. Disable competing shipping methods in that zone if they should not be offered.
  9. If the official Shiprocket plugin is installed, turn off its RealTime Rates feature so its product-page PIN checker does not compete with this plugin.

FAQ

What happens if Shiprocket cannot service a PIN?

Checkout is not blocked. The plugin uses the configured fallback shipping charge, which is Free Shipping by default.

Does the customer pay Shiprocket’s actual rate?

No. The live rate is only used to decide which customer-facing charge applies.

Does the plugin create a shipment?

No. Shipment creation, AWB generation, pickup scheduling, and courier assignment remain manual.

Can I change the ₹200 threshold?

Yes.

Can I use this on other WooCommerce sites?

Yes. It is not tied to any specific store, products, SKUs, collections, tags, images, or domain.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Gravity9 Studios Shipping Rules for Shiprocket” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Tightened admin-context safeguards, token caching, and failure fallback handling.

1.0.0

  • Initial stable release.