Linux 软件免费装
Banner图

GeoShield - Country Restrictions Lite for WooCommerce

开发者 sabbir37
更新时间 2026年4月24日 19:06
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce geolocation product visibility country restriction restrict products

下载

1.0.0

详情介绍:

GeoShield Lite is a geolocation-based product restriction plugin for WooCommerce. It gives store owners control over which products are visible or purchasable based on a visitor's country. This is useful for stores that need to comply with international licensing agreements, regional distribution contracts, or country-specific product availability rules. How It Works GeoShield Lite primarily uses the built-in WooCommerce geolocation system (MaxMind GeoIP database) to detect a visitor's country. To ensure a seamless "out-of-the-box" experience for stores without a MaxMind configuration, the plugin includes a fail-safe fallback to a legitimate third-party geolocation service. Based on per-product restriction rules you configure, the plugin can either hide products entirely or disable the purchase button for visitors from specified countries. All restriction logic runs locally using WordPress metadata — external API calls are used strictly as a fallback for country identification when local detection is unavailable. Features Configuration After activation, configure restrictions on individual products:
  1. Edit any WooCommerce product.
  2. Open the Country Restrictions tab in the Product Data panel.
  3. Enable restrictions and select your target countries.
  4. Choose between Hide Product or Disable Purchase.
  5. Save the product.
Global settings are available under the GeoShield > Settings menu.

安装:

  1. Upload the geoshield-country-restrictions-lite directory to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to WooCommerce > Settings > General and set Default Customer Location to "Geolocate".
  4. Edit any product and use the Country Restrictions tab to set up restrictions.

屏幕截图:

  • **Global Settings** — Configure global restriction behavior and messages.
  • **Product Settings** — The Country Restrictions tab within the product editor.
  • **Frontend Notice** — Restriction message displayed to visitors from restricted regions.

常见问题:

How does the plugin detect a visitor's country?

GeoShield Lite uses the WooCommerce geolocation system, which determines a visitor's approximate location based on their IP address using the MaxMind GeoIP database.

Can I restrict individual product variations?

Yes. Each variation can have its own independent restriction rules, separate from the parent product.

What happens when a product is hidden?

When set to "Hide Product", the product is removed from the shop catalog, search results, and category pages. Direct URL access returns a 404 page by default, though you can configure it to redirect to the shop page instead.

What happens when purchase is disabled?

When set to "Disable Purchase", the product remains visible in the catalog and on its single product page, but the Add to Cart button is disabled and a restriction message is displayed.

Does this work with caching plugins?

Yes. The plugin follows WooCommerce geolocation best practices, which includes compatibility with popular caching solutions.

Does this hide products from search engines?

Search engine crawlers are typically geolocated to a specific region. Products will remain crawlable unless you explicitly restrict them for that region.

更新日志:

1.0.0