Black Friday: 30% off all plugins from 24 Nov · Join the list for early access →

Overview

Sell products or categories only to some countries, or everywhere except some: a clear line on the product page and a blocked checkout when the address does not match.

  • Sell where you can deliver
  • Clear notice on product pages
  • Checkout blocked when needed

Best for: Alcohol, batteries, plants and fresh food

Installation

  1. Download restrictly-country-restrictions.zip from My account › My plugins or from your order email. Do not unzip it.
  2. In WordPress, go to Plugins › Add New Plugin › Upload Plugin, choose the zip and click Install Now, then Activate.

Requires WordPress 6.0+, PHP 7.4+, WooCommerce 7.0+. Works with any theme, block themes and page builders.

Features

  • Up to 8 rules by category or product
  • Only to these countries, or everywhere except
  • Line on the product page, e.g. “Ships only to: France, Belgium”
  • Warning in the cart
  • Checkout blocked with a clear message
  • Uses the shipping address, or billing for digital orders
  • Classic and block checkout

Shortcodes

Paste a shortcode in any page, post, widget or page builder text block.

  • [restrictly_preview]

Options of each shortcode are described in the Features above and in the plugin settings page.

For developers

Customize the plugin from your theme’s functions.php or a small plugin, without editing its files (your changes survive updates).

Filters

  • restrictly_active
  • restrictly_sanitize
add_filter( 'restrictly_active', function ( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Actions

  • restrictly_admin_after_form
  • restrictly_admin_before_form
  • restrictly_admin_form_end

Updates

Updates are free. When a new version is out, it appears in Dashboard › Updates of your WordPress site and you can install it in one click, or turn on automatic updates in Plugins. This works for the zip downloaded from your Woo-Plugins account; older copies can be replaced by downloading the latest version from My plugins. See the changelog.

Frequently asked questions

Which address is checked?

The shipping address when the order is shipped, otherwise the billing address.

Can I hide the line on product pages?

Yes, in the settings.

Still stuck?

Write to us with your WordPress and WooCommerce versions and what you tried: we answer by email.

Contact support