跳到内容

Pirajki Shipping Calculator for WooCommerce

v1.0.3

Poonam · 2026年6月10日 上架

Automatically calculates and applies shipping rates when creating or editing WooCommerce orders in the admin.

正在使用
10 以下
评分
暂无
累计下载
352
最近更新
2026年6月10日
需要 WordPress 5.8+已测试到 7.0.9PHP 7.4+

贡献者

Pirajki Shipping Calculator for WooCommerce solves a common problem: when creating manual orders in the WooCommerce admin, shipping rates are not automatically calculated from the customer’s postcode the way they are on the front end.

This plugin adds intelligent shipping rate lookup directly to the order edit screen:

  • Auto-calculates rates whenever the shipping postcode changes — no button click needed
  • Auto-applies the highest rate immediately so you never under-charge
  • Shows all available methods as a selectable list so you can override the auto-selected rate
  • Manual fallback — if no rates are found you can enter a label and cost manually
  • Country auto-detection — correctly resolves Guernsey (GYGG), Jersey (JE), and Isle of Man (IM) postcodes that the WC admin often leaves as GB
  • Compatible with Advanced Shipping plugin (WAS_Advanced_Shipping_Method) — queries its condition groups directly
  • HPOS compatible — works with WooCommerce High-Performance Order Storage
  • Secure — nonce-verified AJAX, full capability checks, all inputs sanitised

How it works

  1. Open any order in WooCommerce admin
  2. Enter a postcode in the shipping or billing address fields
  3. Rates are fetched and the highest cost rate is applied automatically
  4. All available rates are shown — click a different one and press Apply selected rate to override
  5. The order items panel updates in real time

Developer Hooks

Filters:

pirajki_sc_found_rates — modify the array of rates before they are shown to the admin.
pirajki_sc_auto_apply_rate — override which rate gets automatically applied (or return null to disable auto-apply).

Actions:

pirajki_sc_after_rate_saved — fires after a shipping rate has been saved to an order. Receives `$order`, `$label`, `$cost`.

Requirements

  • WordPress 5.8+
  • WooCommerce 6.0+
  • PHP 7.4+
  • Advanced Shipping plugin (optional — falls back to WooCommerce native shipping zones)

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums