Linux 软件免费装
Banner图

Moradas — Portuguese Address Autocomplete for WooCommerce

开发者 moradasdev
更新时间 2026年10月22日 19:32
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

address autocomplete woocommerce checkout postcode portugal postal code

下载

0.2.1 0.3.0

详情介绍:

Customers type their address once, in one line, and pick it from a list. The plugin fills in the street, the postal locality and the exact seven-digit Portuguese postal code (código postal, CP7): the code carriers need on the shipping label, chosen by door number. Moradas is Portuguese for "addresses". It is built for stores that ship to Portugal. Missing accents, abbreviations and small typos are understood ("av liberdade lisboa 196" becomes Avenida da Liberdade, Lisboa, 1250-147), and a postal code typed on its own fills in the street and the locality. The service behind the plugin is free and public: no API key, no account, and the typed text is not stored. How it works
  1. The customer starts typing in the address field of the checkout: street, locality and door number, all in one line.
  2. Suggestions appear under the field as they type, each with its postal code. When a street has several postal codes and the door number is still missing, the suggestion says so.
  3. The customer picks one. Street, locality and postal code are filled in, and every field stays editable.
What you get in the checkout Privacy Compatibility Free, no API key The service at https://moradas.dev is public and free, including for commercial use. There is no key to paste and no account to create. Fair-use limits are described at https://moradas.dev/docs. Stores that run their own instance of the service can point the plugin to it under WooCommerce → Settings → Advanced → Moradas. Portuguese translation included The plugin's interface text (the settings, the admin notices and the "enter the door number" hint in the checkout) ships with a Portuguese (Portugal) translation. The suggestions themselves are addresses, so they read the same in any language. External services This plugin connects to the Moradas address API (https://moradas.dev), a free public service run by the authors of this plugin, to turn what the customer types into address suggestions and into the exact postal code. Without this service the plugin has nothing to suggest. When it is used: only on the checkout page and only when the country is Portugal, while the customer types in the address field, and once more when a suggestion is picked. Nothing is sent when the plugin is activated, in the WordPress admin, or on any other page. What is sent: the text typed in the address field (for example "av liberdade lisboa 196") and, when a postal code has to be resolved, the identifier of the chosen street together with the door number. No name, e-mail, phone number, order or account data is sent. The requests go from the customer's browser straight to the API, without cookies; like any web request, they include the browser's IP address and user agent. The service does not store the typed text and keeps only hourly aggregate usage counts. Terms of use and usage limits: https://moradas.dev/docs Privacy policy: https://moradas.dev/privacy

安装:

  1. Install and activate the plugin.
  2. Activation switches on WooCommerce → Settings → General → "Address autocomplete" if your store has never used another address provider. You can turn it off there at any time.
  3. That is all. Suggestions are active for addresses in Portugal.
The API endpoint can be changed under WooCommerce → Settings → Advanced → Moradas, for stores that run their own instance of the service.

屏幕截图:

  • After picking a suggestion: address, locality and postal code filled in, every field still editable.
  • A street with several postal codes: the suggestion asks for the door number; with the number added, the exact CP7 appears.
  • The same suggestions in the classic shortcode checkout.
  • On a phone: the suggestion list in the Checkout Blocks.

升级注意事项:

0.3.0 Updates the bundled checkout widget to 0.3.0. Nothing to configure. 0.2.1 Fixes a debug notice about translations loading too early. 0.2.0 First public release.

常见问题:

Does it work without an API key or an account?

Yes. The service at https://moradas.dev is public and free, including for commercial use. Install, activate, done. Contact: dev@moradas.dev

What happens if the service is unreachable?

The checkout keeps working as a plain form: no suggestions appear and the customer types the address by hand, exactly as without the plugin. Nothing blocks the order.

Why only Portugal?

The service covers Portuguese addresses (moradas) and their seven-digit postal codes, nothing else. Suggestions appear only when the selected country is Portugal; for every other country the checkout is untouched.

How does it find the exact postal code from the door number?

In Portugal a street is often split into several postal codes, each covering a range of door numbers. The service keeps these ranges, so as soon as the door number is in the address line it picks the code that matches. Until the number is known, the suggestion says "enter the door number" and the postal code stays empty; the moment the customer adds the number, the exact CP7 is offered.

What about the GDPR?

The personal data involved is the address text the customer types, which is sent to the service to produce suggestions, together with the technical data of any web request (IP address, user agent). No name, e-mail, phone number, order or account data is sent, no cookies are set, and the service does not store the typed text. If your privacy policy lists the services your checkout talks to, add Moradas and link to https://moradas.dev/privacy.

How do I switch it off?

Deactivate the plugin: it puts the WooCommerce "Address autocomplete" setting back the way it was. To pause suggestions without deactivating, turn off WooCommerce → Settings → General → "Address autocomplete".

A street or locality is missing or wrong. How do I report it?

Write to dev@moradas.dev with the address as the customer would write it and, if you know it, the postal code. The data behind the service is refreshed regularly, and reports are checked against the next refresh.

Is there a version for PrestaShop or other platforms?

Yes. The same service has a PrestaShop module, a JavaScript widget for any address form and an API for custom integrations. See https://moradas.dev/docs.

更新日志:

0.3.0 0.2.1 0.2.0