外掛標籤
開發者團隊
② 後台搜尋「Pirajki Shipping Calculator for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
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 (GY→GG), 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
Open any order in WooCommerce admin
Enter a postcode in the shipping or billing address fields
Rates are fetched and the highest cost rate is applied automatically
All available rates are shown — click a different one and press Apply selected rate to override
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)
