WKSS Japan Address Helper
日本のWooCommerceストアで、郵便番号からの住所入力を補助します。.
Install in
WKSS Japan Address Helperは、日本のWooCommerceストア向けに、郵便番号から住所入力を補助するプラグインです。
通常のお客様による住所検索では、AjaxZip3や外部の住所検索APIを使用しません。WordPress内に保存されたローカル郵便番号データベースを検索します。
管理者が郵便番号データベースの更新を手動実行すると、既定ではWKSSの配信データを優先し、取得または検証ができない場合は日本郵便から取得します。
主な機能
- WooCommerceの購入手続き、カート、マイアカウントの住所フォームに対応します。
- WooCommerce管理画面の注文作成・編集(HPOSと従来の注文画面)で、郵便番号から住所入力を補助します。
- 管理者向けに住所チェックの試行、郵便番号データの診断、操作履歴、診断JSONの書き出しを提供します。
- WooCommerce Blocksの購入手続き・カート住所フィールド更新に対応します。
- 郵便番号から都道府県・市区町村・町域の入力を補助します。
- 通常の住所検索にはローカル郵便番号データベースを使用します。
- 購入手続きや住所入力時に、お客様の住所検索情報を日本郵便や外部サービスへ送信しません。
- 管理者が郵便番号データベース更新を手動実行した場合だけ、日本郵便の公式郵便番号CSVを取得します。
- 基本設定、住所不備チェック、郵便番号データ、仕様メモをタブ形式の設定画面で管理できます。
- 郵便番号との整合性や番地情報に問題がある可能性を検出し、警告または購入停止を行えます。
- ローカル郵便番号データベースを使って、郵便番号と都道府県・市区町村の一致を確認します。
- クラシック購入手続きとCheckout Block/Store API注文の両方でサーバー側検証を行います。
- 住所不備チェックの対象を請求先、配送先、または両方から選択できます。
- 警告メッセージと停止メッセージを設定画面から編集できます。
- プラグイン一覧に設定リンクを追加します。
- 設定画面にプラグインのバージョンを表示します。
External Services
WKSS郵便番号データ配信
管理者が設定画面で郵便番号データベースの更新を手動実行したとき、WordPressサーバーは既定で CustomBox 上のWKSS配信先にHTTPSで接続します。配信マニフェストと圧縮された郵便番号データを取得し、整合性を検証してからローカルデータベースを更新します。取得・検証に失敗した場合は日本郵便に切り替えます。
- 既定の接続先: https://custombox.wakaiss.com/wkss-shipping-rate-publisher/postal/manifest.json
- 通信内容: データ取得リクエストと、プラグイン名・バージョンを含むUser-Agent。配信先には通信元IPアドレスが伝わります。お客様が入力した郵便番号、住所、注文情報はこのリクエストに含まれません。
- プライバシーポリシー(WJAH欄): https://custombox.wakaiss.com/?page_id=213#toc12
日本郵便(代替の取得先)
このプラグインは、管理者が設定画面で郵便番号データベースの更新ボタンを押した場合だけ、日本郵便から郵便番号CSVを取得できます。
外部サービスの利用目的
- 日本郵便の公式郵便番号CSVデータを取得するため。
送信される情報とタイミング
- 管理者が郵便番号データベース更新を手動実行した場合だけ、サーバーから日本郵便へZIPファイルの取得リクエストを送信します。
- 住所検索時に、お客様の住所、購入手続き情報、個人情報を日本郵便へ送信しません。
- お客様の購入手続きや住所入力時には、日本郵便や外部サービスへ接続しません。
サービス提供元
- 日本郵便
- サービス情報: https://www.post.japanpost.jp/service/search/zipcode/download/utf-zip.html
- 利用条件: https://www.post.japanpost.jp/
- プライバシーポリシー: https://www.post.japanpost.jp/privacy.html
お客様の住所検索には、WordPress内に保存されたローカル郵便番号データベースを使用します。
Requirements
- WordPress 6.0以上
- PHP 7.4以上
- WooCommerce 7.0以上(お客様向け住所補完・購入手続き検証を利用する場合)
データの保持と削除
通常のプラグイン削除では、再インストール後に再利用できるよう設定とローカル郵便番号データベースを保持し、一時的な取り込みロックと更新許可ロックを削除します。
WJAHの設定とローカル郵便番号データベースを完全に削除する場合は、プラグインファイルを削除する前に「バックアップ・保守」タブの明示的な完全削除操作を実行してください。
設定のバックアップ
「バックアップ・保守」タブでは、WJAH設定をJSON形式で書き出し・復元したり、初期値へ戻したりできます。容量の大きいローカル郵便番号データベースは設定バックアップに含まれず、日本郵便から再取得できます。
Written by Joobi from the project's own listing. See the source page
1.4.2
- Checkout Blocksで郵便番号を切り替えた際、遅れて完了した古い住所更新で直前の郵便番号と住所が復元される競合を修正しました。
- 新しい郵便番号の入力開始時に旧結果の再同期を無効化し、最新の補完結果だけを再同期するようにしました。
1.4.1
- WSRのgzip・CSV検証で使用する一時ファイルのストリーム処理について、Plugin Check向けに説明を追記しました。
1.4.0
- 郵便番号データの更新時にWKSS配信を優先し、利用できない場合は日本郵便から取得するようにしました。
- 新しいデータの整合性、構造、件数、都道府県、サンプル検索、切り替え前後の診断を行い、検証に失敗した場合は従来のデータベースを保持します。
- 設定画面に利用したデータ取得先と、日本郵便に切り替えた場合の理由を表示します。
以下は候補ZIPに収録された過去の変更履歴です(1.3.11〜1.2.0は原文)。
1.3.11
- Replaced the internal address-check target value in the compact status summary with its user-facing Japanese label.
1.3.10
- Removed the misleading cross-tab next-action button from the top Guided-mode panel.
- Kept the panel focused on the current screen; administrators continue to change screens through the visible tab navigation.
- Did not change settings, address behavior, postal-data operations, or tab destinations.
1.3.9
- Moved the Guided-mode next action below the recommended steps instead of placing it at the far right on wide screens.
- Kept the action separate and left-aligned while preserving its destination and button role.
1.3.8
- Replaced generic Guided-mode headings with context-specific labels such as settings points, selection result, diagnosis details, confirmation steps, and update steps.
- Changed wording only; guidance content, settings, and business behavior remain unchanged.
1.3.7
- Arranged the Guided-mode recommended steps vertically in numbered reading order on every administrator tab.
- Kept the separate next-action area, guidance content, settings, and business behavior unchanged.
1.3.6
- Expanded Guided mode with contextual instructions beside the relevant controls on every administrator tab.
- Added plain-language explanations of what to enter, what each action changes, recommended starting choices, and which actions do not modify data.
- Kept Standard mode concise and Compact mode operation-focused; warnings, errors, results, and required confirmations remain visible in every mode.
- Did not change address processing, postal-data processing, saved settings, database structure, or external communication.
1.3.5
- Added an always-visible plain-language introduction explaining what the Diagnostics tab does.
- Explained the address test, postal-data checks, update history, saved-data behavior, and support-information export at their points of use.
- Renamed technical administrator labels to action-oriented wording without changing diagnostic behavior or stored data.
1.3.4
- Arranged each Basic settings checkbox on its own row with consistent alignment and spacing.
- Removed the redundant implementation-notes tab; operational guidance remains in the relevant settings screens and documentation.
- Added the current verified WKSS Shipping Rates role to the WKSS integration guidance without presenting the proposed postal-data integration as available.
- Added plain-language guidance and the current protection state around the one-time WJAH update-permission button.
- Kept the checkbox order, saved setting names, address behavior, and other administrator forms unchanged.
1.3.3
- Added automatic postal-data diagnosis after downloads and manual imports.
- Checks row counts, required address fields, prefecture coverage, and fixed sample postcodes before newly imported data is accepted.
- Retains or restores the previous postal data when the new data does not pass the checks.
- Added a manual postal-data diagnosis button and a persistent plain-language result panel.
- Added the latest postal-data diagnosis state to the privacy-reduced diagnostic report.
- Reworded administrator-facing postal-data guidance to reduce database and file-format jargon.
1.3.2
- Added the WKSS standard label-and-control row layout to confirmed normal administrator fields.
- Standardized those labels to 14px bold text and normal controls to 240px by 36px with left-aligned values.
- Added 48px desktop rows, subtle separators, aligned primary form actions, and a single-column narrow-screen fallback.
- Kept toggles, checkboxes, textareas, file fields, tables, notices, destructive confirmations, settings, and business logic unchanged.
1.3.1
- Standardized administrator action roles with the WKSS button contract v1.5.0 section 13.
- Kept the shared guidance next action and non-primary utilities explicitly secondary.
- Preserved one primary action per active form and retained red styling for destructive actions.
- No address, postal-data, settings, database, or WooCommerce business logic changed.
1.3.0
- Added postcode-based billing and shipping address completion to WooCommerce order create/edit screens.
- Added scoped support for both HPOS order screens and legacy shop-order edit screens.
- Added a basic-setting switch for administrator order address completion.
- Limited completion to Japanese addresses and invalidated delayed results when the postcode or country changes.
- Preserved manually entered street/building details in empty-only mode while allowing a previously WJAH-managed town value to follow a new postcode.
- Kept order saving under WooCommerce’s standard save action; WJAH does not automatically save the order.
1.2.2
- Added an informational postal-data update reminder when no update is recorded or 90 days have elapsed.
- The reminder does not automatically download, replace, or delete postal data.
- Added fixed address-tester examples for a normal Japanese address, prefecture mismatch, municipality mismatch, missing street number, non-Japanese address, and missing database match.
- Presets only fill the tester fields and do not submit or save the values automatically.
1.2.1
- Added an administrator-only JSON diagnostic report export.
- Includes plugin and platform versions, operational setting states, postal database status, integrity status, and limited postal-data operation history.
- Excludes customer addresses, customer postcodes, user identities, IP addresses, site URLs, custom validation messages, and known server paths.
1.2.0
- Added an administrator-only address-check tester that does not save the entered address or create customer/order data.
- Added read-only postal database diagnostics for table availability, recorded and actual row counts, sample lookups, update locks, and the latest error.
- Added a limited local history for postal-data updates, manual imports, skipped imports, failures, and explicit data deletion.
- Kept diagnostic history free of customer addresses, postcodes, user names, and IP addresses.
1.1.41
- Aligned the shared screen-guidance navigation action with the WKSS button hierarchy by using the WordPress secondary button style.
1.1.40
- Prevented delayed Checkout Blocks address reconciliation from restoring a Japanese country/address after the shopper selects another country.
- Added support for anonymous Checkout Blocks country fields identified by their standard autocomplete tokens.
1.1.39
- Replaces the retired JavaScript-built WKSS third level with a native WordPress top-level WKSS menu and standard submenu registration.
- Places WKSS immediately after WooCommerce through WordPress menu ordering, with position 58 as the safe fallback when WooCommerce is unavailable.
- Removes the retired hub DOM relocation, toggle, opensub ownership, and custom height/scroll assets while preserving existing WJAH page URLs, capabilities, callbacks, and ordering.
- Keeps only the WKSS parent label in the approved Miami Blue bold style; child menu items retain standard WordPress styling.
- Does not change address completion, validation, postal-data operations, saved settings, database structure, or guidance-mode behavior.
1.1.38
- Updates the shared WKSS administration hub assets to the canonical MS-039 asset and implementation version 1.0.11.
- Keeps the standard WordPress administration menu available when WooCommerce, compatible shared assets, or JavaScript are unavailable.
- Does not change address completion, validation, postal-data operations, saved settings, database structure, or guidance-mode behavior.
1.1.37
- Lets the administration page follow the full available WordPress content width instead of stopping at a fixed maximum width.
- Keeps descriptions and form controls at readable widths while allowing cards, grids, tabs, and the postal-data table to adapt safely from 1440px to narrow smartphone screens.
- Adds a page-local scroll container for the postal-data table and prevents long labels, paths, URLs, notices, and action controls from widening the whole administration page.
- Keeps address completion, validation, postal-data operations, saved settings, database structure, and shared hub assets unchanged.
1.1.36
- Adds the shared three-level administration guidance modes and keeps their meaning synchronized with compatible WKSS administration screens.
- Preserves warnings, results, confirmations, and primary operations in every guidance mode.
- Prevents the administration header and guidance content from widening the page on 390px smartphone screens.
1.1.35
- Adds the shared three-level administration guidance modes: Guided, Standard, and Compact.
- Uses the shared browser key and values so the selected guidance mode follows other compatible WKSS administration screens.
- Migrates the former WJAH detailed/simple display preference without changing address, validation, postal-data, or database behavior.
- Keeps warnings, errors, processing results, confirmations, and primary operations visible in every guidance mode.
1.1.34
- 対応する住所プラットフォームが無効な場合、管理画面を郵便番号データと保守機能だけに限定しました。
- 保存済み設定を維持したまま、無効状態ではプラットフォーム依存の設定、状態カード、仕様、連携説明をDOMへ出力しないようにしました。
- v1.1.33のCheckout Blocks同期修正と、お客様向け住所機能の動作は変更していません。
1.1.33
- WooCommerceによる遅延した郵便番号更新後にCheckout Blocksの住所状態を再調整し、新しく解決した都道府県・市区町村が以前の住所スナップショットで置き換えられないようにしました。
- 修正範囲をBlocksの住所同期に限定し、詳細住所入力、国外住所保護、クラシック購入手続き、設定、データベース、管理画面の動作を維持しました。
1.1.32
- 郵便番号変更時にCheckout Blocksの都道府県と市区町村を同期しながら、詳細住所入力と国外住所の選択を維持するよう改善しました。
1.1.31
- 住所処理や郵便番号データの動作を変更せず、MS-039共通WKSS管理ハブ契約と正本アセット一式を追加しました。
- 共通ハブ契約またはアセットに互換性がない場合は、WordPress標準メニューへ安全に縮退します。
1.1.30
- 郵便番号データの更新・取り込み時に、完了まで画面を閉じたり再読み込みしたりしないための待機案内とリアルタイム処理状況を追加しました。
1.1.29
- 保存済みの日本住所の国コードが新しく選択した国外住所を上書きしないよう、クラシック購入手続きの住所更新をBlocks顧客データストアから分離しました。
1.1.28
- 購入手続きの国を変更した場合に保留中の郵便番号検索を取り消し、古い日本住所が国外住所へ適用されないようにしました。
1.1.27
- 郵便番号データを分離した作業用テーブルへ取り込み、解析・登録・テーブル切り替えに失敗した場合は以前の正常なデータベースを保持するようにしました。
- 現行の日本郵便データで、かな文字列が以前の上限を超えても拒否されないよう町域文字列の保存容量を拡張しました。
- 新しい郵便番号検索の待機中に、古い検索結果が適用されないようにしました。
- 日本の郵便番号補完を、国が日本または未選択の住所欄に限定し、選択済みの国外住所を上書きしないようにしました。
- 画面上の警告を設定された検証対象に合わせ、サーバー側検証と共通の住所行警告ルールを追加しました。
- 設定の書き出し、復元、初期化を追加しました。
- 通常のWordPressアンインストールでは設定と郵便番号データを保持しつつ、明示的な完全削除操作を追加しました。
- ファイル整合性表示と、次回更新を一時的に許可する保護機能を追加しました。
1.1.23
- 保存状態を共有するWKSS標準コンパクトヘッダー、復元操作、サーバー時刻、同期された説明表示を追加しました。
- WooCommerceなしでも有効化・管理できるようにしました。WooCommerce固有のお客様向け住所機能はWooCommerceが有効になるまで利用できません。
- 改変版・再配布版に対するWKSSブランド境界を明記しました。
- 既存の住所検索、検証、郵便番号データベースの動作を維持しました。
1.1.22
- カートブロックと購入手続きブロックで、市区町村の住所補完結果が確実に反映されるよう、DOMイベントより先にWooCommerce公式のカートデータストアを同期するよう改善しました。
- Reactで管理される住所入力欄がWJAHの変更を認識できるよう、input/select要素の標準値設定処理を使用しました。クラシック購入手続きの動作には影響しません。
- 利用者が入力した番地・建物名を維持し、住所解析コア、クラシック/Blocksのサーバー側検証、設定、データベース構造は変更していません。
1.1.21
- Checkout Blocksの検証例外メッセージを、例外オブジェクトへ渡す前にエスケープしました。
- プラグイン所有の郵便番号テーブルに限定した直接DBクエリの例外理由を明記し、Plugin Checkが意図したローカルデータ操作を判別できるようにしました。
- 管理画面、設定、データベース構造、住所検索、クラシック/Blocks検証、利用者が入力した住所の保護動作は変更していません。
1.1.20
- WJAH管理画面をWKSS/WEM共通レイアウトと情報構造に合わせて最終調整しました。
- 公式WJAHアイコン、意味を持つステータスカード、アクセシブルなタブ、レスポンシブな余白、高影響な郵便番号データ削除領域を採用しました。
- 既存タブを維持し、プラグイン依存を追加しない情報表示専用のWKSS連携タブを追加しました。
- バックアップ、復元、リセット、郵便番号データ取り込み進捗などの処理機能は追加していません。
- 設定、オプションキー、DB構造、フック、取り込み、検証、住所処理はv1.1.14の機能基準から変更していません。
1.1.18
- WEM固有の緑色アクセントを、WJAH固有の落ち着いた郵便ポスト赤へ変更しました。
- WEM共通レイアウト構造、公式WJAHアイコン、既存設定・機能ロジックは維持しました。
1.1.17
- 管理画面を現行WEMレイアウトへ統一し、識別領域、2×2ステータスカード、共通ヘッダー、メニュー案内、タブ、余白を調整しました。
- ヘッダーカードと重複していたタブ下の状態表示を削除しました。
- 公式WJAHアイコン、既存設定、フック、DB構造、検証、取り込み、住所処理は変更していません。
1.1.16
- 仮の文字バッジを、承認済みWKSSアイコンパッケージの公式WJAHアイコンへ変更しました。
- 既存設定、フック、DB構造、検証、取り込み、住所処理は変更していません。
1.1.15
- 管理画面を現行WKSS/WEMの表示・情報構造へ統一しました。
- WKSSスイートアイコン、状態ラベル、要約表示、アクセシブルな現在タブ表示を追加しました。
- 処理内容を変更せず、郵便番号データ削除を高影響操作として視覚的に分離しました。
- 情報表示専用のWKSS連携タブを追加しました。プラグイン依存や連携ロジックは追加していません。
- 既存の設定フォームへ保存中表示を追加しました。
- 既存設定、オプションキー、DB構造、フック、検証、取り込み、住所処理は変更していません。
1.1.14
- WooCommerce Blocksの再描画後も安全な置換状態を保つため、WJAHが補完した町域を請求先・配送先ごとにページ内で追跡するようにしました。
- 現在値がWJAH管理値と完全一致する場合だけ、以前の自動補完町域を置換します。利用者が入力した番地などは変更しません。
- 現在の住所1が以前の郵便番号から得た町域だけの場合、安全に管理状態を復元します。
- 郵便番号変更後に古い検索応答が返った場合、その応答を無視するようにしました。
1.1.13
- 郵便番号変更時に、以前WJAHが補完した町域を新しい郵便番号の町域へ安全に置換するようにしました。
- 空欄のみ補完モードでは、利用者が入力した番地などの詳細住所を維持します。
- WooCommerce Checkout Blocksの顧客データにも同じ安
Follow this listing's changes (Atom feed)